logs archiveIRC Archive / Freenode / #php / 2006 / March / 4 / 1
||cw
weasel00: no, they should also make a src.rpm of php that you can install, and compile the extention from it
carlos-the-man
Stormchaser sorry about that, but I am actually beyond script support and just end up doing my own scripting on top of the scripts database, so technically I am writing my own script
philip
if memory is a concern, and of course depending on what you're doing, perhaps doing an unbuffered query would benefit you
carlos-the-man: this is #php not #tep though, we do not know tep syntax
weasel00
(Action) apologizes for being such a newb
carlos-the-man
(Action) is proud of being less of a newb by learning however possible lol
||cw
weasel00: you could always complain to the FC people about the lack of php gd, or install a real distro that actualy provides the apps people want
weasel00
||cw: i didnt have this much trouble last year when installed it... but this time murphy hit me with a mac truck
philip
use debian :)
weasel00
havent used debian in many many years.... is it quite a bit better?
         

philip
what was 'bad' about it?
foo
Anyway I could generate something like this with PHP - ? urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6
weasel00
ease of install... like i said many years ago.. when none really had an easy install
Stormchaser
lack of cookies and other candy, philip
weasel00
not saying anything was bad about it ;)
philip
installing linux always has issues
weasel00
pretty much.. storm ratted me out ;P
(Action) goes in search of debian installatoin sources...
Julian|Work
foo, sure.
philip
i remember hating linux as it was so tough to install, so i used mandrake, so easy :)
zircu
well, i'd prefer fbsd
Julian|Work
rand()
foo
Julian|Work: That will do it?
oh, bleh.
weasel00
(Action) went deb, suse, mandrake, rh, fedora
Julian|Work
foo, it depends.
philip
i could never install gentoo
Julian|Work
foo, I suggest using md()-- that'll give you something that looks like f3ede926587776a8cd79fb2afe4e07b4
Then you use substr() and stick dashes in there.
md5(), that is, not md()
foo
Julian|Work: Actually, that might just work.
Yeah, I've used that beofre
Julian|Work
It'll definitely work.
philip
or, just create a routine to pick random numbers and letters
Julian|Work
But you need to md5() something random, so try md5(mt_rand())
         

foo
Julian|Work: Yeah, I know. Thanks
Akuma_
im using exceptions, but im wondering what the common practice is if i just want to issue a warning but not completely stop processing. Should i keep an error stack in global scope maybe? Any lit on that?
Julian|Work
Jymmm, did you just add that youtube link?
rofl
zircu
hehe.. what the hell is that german with spanish subtitles?
all i can get is he is trying to edit files with vim
DjKritical
Hey everyone, I've got a really weird problem... I've just uploaded a backup copy of our website to our third-party hosted server... and nothing with a .php extension will run... I'm getting internal server error... anyone have any ideas what I might try?
I've tried chmod 777 test.php
(The server helpdesk is close unfortunately and I don't have access to the error logs
zircu
DjKritical: first thing to check is the log files on 'internal server errors'
DjKritical
zircu: I wish =(
Thing is the site was working perfectly.. nothing has changed other than the files being re-uploaded
something has buggered up php tho...
zircu
DjKritical: your running php as a cgi I would assume
carlos-the-man
I want to program IF this does not exist, create it! (INSERT INTO `groups_to_products` VALUES (1, 28, 0);) how is it done?
DjKritical
zircu: looks like it
(Action) doesn't have any experience running php like that, I've always used the apache mod on my servers
gantal
Hey
zircu
DjKritical: there could be a few options
DjKritical
zircu: I'm dying to know =)
zircu
well, its been a while since i've use cgi with php but the first thing to note is the line endings aka the fileformat
i've seen #!/usr/bin/php\r\n cause this error when you realy want #!/usr/bin/php\n
DjKritical
aka \r\n ?
zircu
this usually occures when you ftp files onto a server
DjKritical
hmm.. I'm trying to think how I can test that theory
I'm ssh'd into the server now
If I create a file using vi... that should use \n right?
||cw
by default, yes
gantal
yes
zircu
it sort of depends on if your using vi or vim
DjKritical
just vi
pnk
carlos-the-man: Tried using REPLACE ? :)
DjKritical
I just created a testing.php file in vi.. still gives an error
any other ideas?"
zircu
without the logs it will be hard to know what the problem is
DjKritical
tell me about it =)
carlos-the-man
the idea is that "INSERT INTO `groups_to_products` VALUES (1, 28, 0)" is not executed so Ill run that in case it NEEDS to, if it exists tnen I do nothiung
Jymmm
Julian|Work : Before I say "that's a stupid question", could you please clarify?
zircu
Jymmm: i demand an english version
Jymmm
zircu: it's your video, talk in english next time
zircu
carlos-the-man: well, if you have your database setup properly the primary key insert will cause an error
Shaba1
Hello all
sjrussel
does php support displaying variables to the screen?
Shaba1
On a windows system when php script queries a database whose credentials are the query run under?
zircu
well damn, he doesn't give me enough time to answer
Shaba1
I mean the process that does the query
not the user from the mysql.user table
but the windows process the quiries the database.
I need to know because I am trying to implement a SSO scheme
carlos-the-man
http://pastebin.com/582625 this is my database, there is more data to create but I want to create defaults at the time something is updated, thats why I will need to do more "INSERT INTO `groups_to_products` VALUES (14, 31, 0);" things in case they dont exist
foo
Anyway to create a UUID in php?
carlos-the-man
foo md5(getmypid().uniqid(rand()).$_SERVER['SERVER_NAME']);
robinl1
can i spam for something?
foo
carlos-the-man: Hmm, that doesn't have dashes. And even if it did, a UUID is 33 chars long. Thanks, though
Ox41464b
robinl1: /msg php-bot guidelines
Shaba1
hello
CopyNinja
Hey! I want a user to be prompted to download a ZIP-file if accessing a php-document I have. after user have downloaded the ZIP-file the ZIP-file should be removed. The code I have is: header("Location: temp/members.zip"); unlink('temp/members.zip'); the thing is, it seems that the unlink() is executed before the header()... any ideas?
gantal
im kinda out of ideas to what i should program i want something simple but advanced can someone inspire me :)
Ox41464b
gantal: http://satria.web.id/files/task.html
check for #2
its simple, but advanced, like you said
Stormchaser
!+enter
php-bot
Don't use the enter key as puncuation. Think in complete thoughts, then type.
gantal
Ox41464b, hmmm
FBdev
hi everybody anyone would know why a Sybase stored procedure works on isql client but it does not using regular sybase_* PHP calls ?
Ox41464b
gantal, what? cant do that? i already see 3 people finish that in (40 minutes)
Julian|Work
Jymmm: I didn't see what the topic was before. Maybe somebody else added the link and you changed something else.
gantal
Ox41464b, i think so but it dosent sound like any fun :/
Shaba1
no takers on my question
??
Ox41464b
Shaba1, hello is not a question
CopyNinja
Never mind! I fixed it! It was all about using the correct headers :)
Tarantulafudge
Is there any way to store "metadata" in web pages?
Julian|Work
Tarantulafudge, describe metadata.
Tarantulafudge
Julian|Work, I have a modular page design, including neccessary pages, but I need a way to get the page title
lng
hi! do i need to prefix hex values?
Julian|Work
So you want to store page titles as metadata and draw from that?
lng: 0x
Renacor
how can you tell search engine bots not to store certain urls? like session variables
Tarantulafudge
Julian|Work, yea, essentially
lng
Julian|Work: thanx
Julian|Work
Tarantulafudge, sure, or you could have each module set the title.
Tarantulafudge
Julian|Work, until now I've just used a static config file, but its really hard for other people to make changes
Julian|Work
I don't see why you need to break out of the modular design.
albo
is there a function that rounds up if > .5 and down if less than ?
Julian|Work
albo: round()
Ox41464b
Tarantulafudge, you want to collect all <title> generated ? or... *sorry i dont really understand the question*
lng
how to make it proper: if($x<16xor$y<16xor$z<16)
Julian|Work
lng: what's proper?
lng
Julian|Work: we cant compare thing such way
Julian|Work
http://www.php.net/manual/en/language.operators.bitwise.php <-
Tarantulafudge
Ox41464b, well, in a variable or something, I'm having major problems making a modular site design that is easy to edit for other administrators
lng
i bet
Tarantulafudge
Ox41464b, since most of them use dreamweaver
DjKritical
does anyone know what /cgi-bin/php does?
Tarantulafudge
anyone know if theres a way to customize dreamweaver's templating system?
Julian|Work
Tarantulafudge, #web may be able to help more
Ox41464b
Tarantulafudge, if me, i will not edit one by one, grab the content before its output to browser how? php.net/ob_start what next? look for <title>contentInsideit</title>, replace anything inside it with your own
error403
Erm, just wanted a few opinions on what a good PHP IDE for linux would be (free preferably...)
I'm getting a little annoyed with eclipse
at the moment its giving me a HUGE memory leak :(
Tarantulafudge
Ox41464b, hmm
Ox41464b
Tarantulafudge, make sense already ?
Tarantulafudge
Ox41464b, I've been having them use a blank template until now
[talon]
Anyone have an opinion on the best way to go about writing XML in php? My need is simple but I would like to use a module to guarantee its written properly but I have no idea which to use. Any help would be great.
Ox41464b
*dogh* i guess i must take another english_class again, what the meaning of "I've been having them use" :(
[talon], Google for: PHP XML Class
Tarantulafudge
Ox41464b, argh, I hate dreamweaver *stabs*
DjKritical
Does anyone know... is it possible on some servers to require an .htaccess file for php to work?...
Ox41464b
Tarantulafudge, coder should be able to help "designer" not make them cannot design freely
[talon]
Tarantulafudge, if your using php, why use dreamweavers templating junk? Set up headers and footers and include them
DjKritical
also... does anyone know what /cgi-bin/php might do... could it have something to do with all .php files not working on my server? (I don't have access to logs)
Tarantulafudge
[talon], I have something like that setup, I don't use dreamweaver at all
[talon]
oh.... k
Ox41464b
[talon], for single person project perhaps you correct, but not for group of different background
lng
can i use multiple conditions: for($x,$y,$z;$x<256,$y<256,$z<256;$x++)?
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 next »