[PHP] images no appearing
Hi, I wrote a php script to create a dynamic graph (image/jpeg). On my development system the image appears on my website it gives Image/Jpeg support not compiled. Below are the config settings: My system: Configure Command ^@ './configure' '--prefix=/usr' ^@'--with-config-file-path=/etc' '--disable-debug' ^@'--enable-pic' '--enable-inline-optimization' ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs' ^@'--disable-static' '--with-exec-dir=/usr/bin' ^@'--with-regex=system' '--with-gd' ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm' ^@'--enable-debugger' '--enable-magic-quotes' ^@'--enable-safe-mode' '--enable-track-vars' ^@'--enable-ftp' '--with-mysql' '--with-xml' ^@'--enable-trans-sid' ^@'--with-readline=/usr/include/readline' My webserver the info can be got from vvmm.net/phpinfo.php. They my provider has given --with-jpeg-dir=/usr/lib still the image does not appear. Even in the gd section it does not give JPG Support enabled. Only give. Right now I have changed the program to work with gif. My question, why not Jpg?? Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: ucwords added functionality?
i could roll my own, and for now will just use a str_replace after ucwords, but would it be possible to add an optional parameter to ucwords which would be an array of words to skip? i would think this would be useful to many. that sounds like a good idea to me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] images no appearing
Hi, I wrote a php script to create a dynamic graph (image/jpeg). On my development system the image appears on my website it gives Image/Jpeg support not compiled. Below are the config settings: My system: Configure Command ^@ './configure' '--prefix=/usr' ^@'--with-config-file-path=/etc' '--disable-debug' ^@'--enable-pic' '--enable-inline-optimization' ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs' ^@'--disable-static' '--with-exec-dir=/usr/bin' ^@'--with-regex=system' '--with-gd' ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm' ^@'--enable-debugger' '--enable-magic-quotes' ^@'--enable-safe-mode' '--enable-track-vars' ^@'--enable-ftp' '--with-mysql' '--with-xml' ^@'--enable-trans-sid' ^@'--with-readline=/usr/include/readline' My webserver the info can be got from vvmm.net/phpinfo.php. They my provider has given --with-jpeg-dir=/usr/lib still the image does not appear. Even in the gd section it does not give JPG Support enabled. Only give. Right now I have changed the program to work with gif. My question, why not Jpg?? Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Undelivered Mail Returned to Sender (fwd)
-- Forwarded message -- Date: Mon, 24 Sep 2001 08:35:03 +0200 (CEST) From: Mail Delivery System [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Undelivered Mail Returned to Sender This is the Postfix program at host mail.aaz-netmarketing.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: can't create user output file. Command output: procmail: Error while writing to /var/spool/mail/dtt Reporting-MTA: dns; mail.aaz-netmarketing.com Arrival-Date: Mon, 24 Sep 2001 08:35:03 +0200 (CEST) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; can't create user output file. Command output: procmail: Error while writing to /var/spool/mail/dtt Hi, I wrote a php script to create a dynamic graph (image/jpeg). On my development system the image appears on my website it gives Image/Jpeg support not compiled. Below are the config settings: My system: Configure Command ^@ './configure' '--prefix=/usr' ^@'--with-config-file-path=/etc' '--disable-debug' ^@'--enable-pic' '--enable-inline-optimization' ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs' ^@'--disable-static' '--with-exec-dir=/usr/bin' ^@'--with-regex=system' '--with-gd' ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm' ^@'--enable-debugger' '--enable-magic-quotes' ^@'--enable-safe-mode' '--enable-track-vars' ^@'--enable-ftp' '--with-mysql' '--with-xml' ^@'--enable-trans-sid' ^@'--with-readline=/usr/include/readline' My webserver the info can be got from vvmm.net/phpinfo.php. They my provider has given --with-jpeg-dir=/usr/lib still the image does not appear. Even in the gd section it does not give JPG Support enabled. Only give. Right now I have changed the program to work with gif. My question, why not Jpg?? Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: mysql_connect failes w/ variables and defines. why?
Can you show us some code? Dana Holt [EMAIL PROTECTED] wrote in message 000501c143df$dcedbb20$6400a8c0@MORPHEUS">news:000501c143df$dcedbb20$6400a8c0@MORPHEUS... Does anyone know why if I pass mysql_connect() or mysql_select_db() parms as variables or defined constants the connection always fails? If I copy and paste the values I assign to the variable or the defined constant it works like a champ. Can anyone explain this? Thanks in advance. -- Dana Holt / [EMAIL PROTECTED] Xenos Online http://www.xenosonline.com/ --- http://www.theydidmewrong.com/ http://www.shedidmewrong.com/ http://www.hedidmewrong.com/ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why this error to this newsgroup?
This is the same error I get. The question is why the mails is going to: mail.aaz-netmarketing.com when it should be going to : pb1.pair.com Adrian On Sat, 22 Sep 2001, hvm wrote: Hi I have the same and I don't know if some one even get my questions, I never get a response. Maybe the questions are to difficult. Yours Hans. - Original Message - From: Gaylen Fraley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 22, 2001 6:34 PM Subject: [PHP] Why this error to this newsgroup? Every message that I post to news.php.net gets posted, but I receive this email: This is the Postfix program at host mail.aaz-netmarketing.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: can't create user output file. Command output: procmail: Error while writing to /var/spool/mail/dtt -- This just started, I believe, this week. Is there some kind of an auto-responder that isn't working correctly? -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why this error to this newsgroup?
On Mon, 24 Sep 2001 17:09, Adrian D'Costa wrote: This is the same error I get. The question is why the mails is going to: mail.aaz-netmarketing.com when it should be going to : pb1.pair.com Adrian Well, if you think about it for a minute, you'll realise that it _does_ go to lists.php.net (handled by pb1.pair.com). But then what happens? Your message is sent to every address on the PHP mailing list, and still has your address as the From address. So, not surprisingly, your message is sent to the list subscriber whose address is [EMAIL PROTECTED] and the reply from there goes to - guess who? The From address on the incoming message. Odds are someone (dtt?) has screwed up the permissions on their mailbox. Incidentally, there is a list admin address in the footer of every message from the PHP list; that's where you should report this sort of thing; then the list admin can quietly unsubscribe the offender. On Sat, 22 Sep 2001, hvm wrote: Hi I have the same and I don't know if some one even get my questions, I never get a response. Maybe the questions are to difficult. Yours Hans. - Original Message - From: Gaylen Fraley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 22, 2001 6:34 PM Subject: [PHP] Why this error to this newsgroup? Every message that I post to news.php.net gets posted, but I receive this email: This is the Postfix program at host mail.aaz-netmarketing.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: can't create user output file. Command output: procmail: Error while writing to /var/spool/mail/dtt -- This just started, I believe, this week. Is there some kind of an auto-responder that isn't working correctly? -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Every morning is the dawn of a new error... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP Dreamweaver / Fireworks
Sometimes I find it easier to build web tables inside fireworks, but I also need to embed PHP code into the table (ie. to display the date, logged in user, etc). Well, this is a pain because fireworks overwrites the entire PHP file every time I make a change to it. If there's no PHP to embed I just require the HTML file with the fireworks output in it. I am tired of cutting and pasting my PHP code! ;-) How do you guys handle things like this? Thanks. I don't USE a wysiwyg program to edit tables or html. Unless it's made for php (yeah right i'd liek to see that) it's not gonna be able to tell what you want. Maybe get phakt for Ultradev or something. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] 404 error
But how did you get the PHP code to run if the file doesn't exist? If a file with a php extension is requested Apache thinks the error returned by the PHP parser is a valid response to the request and auto_prepend only seems to work after the parser has got the file for parsing. I've tried everything I can to solve this. Has no-one else out there found this a problem? Tim Ward -- From: Richard Baskett [SMTP:[EMAIL PROTECTED]] Sent: 23 September 2001 22:22 To: Christian Reiniger Cc: PHP General Subject: Re: [PHP] 404 error Thank you :) Yeah someone mentioned using phpinfo() to figure out what I wanted and it worked beautifully and $REQUEST_URI was indeed the one I needed. Thank you! Rick On Sunday 23 September 2001 20:46, Richard Baskett wrote: I don't think I said it clear enough :) Sorry abou that. This is what I did: ? echo Page with error: $HTTP_REFERERbr; echo Error Link: $PHP_SELF; ? Try $REQUEST_URI -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Those who will not reason, are bigots, those who cannot, are fools, and those who dare not, are slaves. - George Gordon Noel Byron (1788-1824), [Lord Byron] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Installation Problem :PHP 4.06 + NT4 Server + Service Pack 6
Anyone successfully doing the installation on following combination. PHP 4.06 (ISAPI) + NT4 Server + Service Pack 6 Installation is run smooth but it seem that the php engine down after operate for a minute only. TIA, Kin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP Dreamweaver / Fireworks
I use Edit Plus on a windows machine - great text editor - check it out, easy to make tables as well. http://www.editplus.com/ the best program I ever purchased! DRB Adam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Sometimes I find it easier to build web tables inside fireworks, but I | also | need to embed PHP code into the table (ie. to display the date, logged in | user, etc). Well, this is a pain because fireworks overwrites the entire | PHP | file every time I make a change to it. If there's no PHP to embed I just | require the HTML file with the fireworks output in it. | | I am tired of cutting and pasting my PHP code! ;-) | | How do you guys handle things like this? | | Thanks. | | I don't USE a wysiwyg program to edit tables or html. Unless it's made for | php (yeah right i'd liek to see that) it's not gonna be able to tell what | you want. Maybe get phakt for Ultradev or something. | | -Adam | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Assistance Please - Two-Dimension Arrays
Congratulations. You just described a multidimensional array :-) No he didn't ... a 2 dimensional array would have a set 2 dimensional structure. Each row would have to have the same number of columns. An array of arrays may be built in such a way as to be able to be presented as if it were a 2d array but IT ISN'T. It cannot be manipulated as if it were. $element[0][id] and $element[1][id] are NOT members of the same array. Tim Ward -- From: Christian Reiniger [SMTP:[EMAIL PROTECTED]] Sent: 23 September 2001 11:38 To: Jason G.; Mark van Proctor; [EMAIL PROTECTED] Subject: Re: [PHP] Assistance Please - Two-Dimension Arrays On Sunday 23 September 2001 06:54, Jason G. wrote: Mark, PHP, at this point, does not support MultiDimension arrays. However, you can get around this by placing array's inside arrays. Thus: $myarray[0] = array(element00, element01,element02); $myarray[1] = array(element10, element11,element12); $myarray[2] = array(element20, element21,element22); You would refrence element11 by $myarray[1][1]; -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) These are the people who proudly call themselves hackers -- not as the term is now abused by journalists to mean a computer criminal, but in its true and original sense of an enthusiast, an artist, a tinkerer, a problem solver, an expert. - ESR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] WEB LOG
hi all! I'm just about to try to make my first weblog page. I find some problem. I want to make the user not being able to go to the destination page if the password does match. how do I do that? any help would be greatly appreciated. Thanks alot! Ardani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ucwords added functionality?
I came up with a function to to that last month; see the PHP archives: http://marc.theaimsgroup.com/?l=php-generalm=99778991424637w=2 -steve At 11:20 PM -0400 9/23/01, Jack Dempsey wrote: i could roll my own, and for now will just use a str_replace after ucwords, but would it be possible to add an optional parameter to ucwords which would be an array of words to skip? i would think this would be useful to many. any thoughts? -- + Open source questions? + | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- http://pgfsun.ucdavis.edu/open-source-tools.html ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 404 error
On Monday 24 September 2001 10:08, Tim Ward wrote: But how did you get the PHP code to run if the file doesn't exist? If a file with a php extension is requested Apache thinks the error returned by the PHP parser is a valid response to the request and auto_prepend only seems to work after the parser has got the file for parsing. Simple :) You tell apache to serve, say, 404.php on a 404, and in *that* file you place the code :) If you want to send a 404 from an existing php file, do a header ('HTTP/1.0 404 Not Found'); include (404.php); exit (); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Assistance Please - Two-Dimension Arrays
On Monday 24 September 2001 11:15, Tim Ward wrote: Congratulations. You just described a multidimensional array :-) No he didn't ... a 2 dimensional array would have a set 2 dimensional structure. Each row would have to have the same number of columns. An array of arrays may be built in such a way as to be able to be presented as if it were a 2d array but IT ISN'T. It cannot be manipulated as if it were. $element[0][id] and $element[1][id] are NOT members of the same array. If you see it that way, PHP doesn't even have single-dimensional arrays (because all arrays are associative). -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] 404 error
But if the file has an extension that you have told Apache to associate with PHP, it gets sent to the parser before Apache checks to see if it exists. The paresr then sends back an html page with the error on, so Apache thinks it has found the page. At least that's what happens on our server. Am I missing something in Apache that will tell the server to check a file exits before it sends the request to the server? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Christian Reiniger [SMTP:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 11:10 AM To: Tim Ward Cc: PHP General Subject: Re: [PHP] 404 error On Monday 24 September 2001 10:08, Tim Ward wrote: But how did you get the PHP code to run if the file doesn't exist? If a file with a php extension is requested Apache thinks the error returned by the PHP parser is a valid response to the request and auto_prepend only seems to work after the parser has got the file for parsing. Simple :) You tell apache to serve, say, 404.php on a 404, and in *that* file you place the code :) If you want to send a 404 from an existing php file, do a header ('HTTP/1.0 404 Not Found'); include (404.php); exit (); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 404 error
You need to create an .htaccess file with this inside of it: ErrorDocument 404 /yourfulldirectory/404.php What this does is tells your server where to look when it has a 404 error. You can put an .htaccess file in each directory so each directory will have a different 404 error. Or you can put it in the root /404.php since the file is recursive within directories. And then I have inside my 404.php file a little script that emails me the referrer page and the link that created the error, plus a little to tell the user that the page was not found of course :) The Page with error is $HTTP_REFERER The Link on that Page is $REDIRECT_SCRIPT_URI I hope that helps! Rick But if the file has an extension that you have told Apache to associate with PHP, it gets sent to the parser before Apache checks to see if it exists. The paresr then sends back an html page with the error on, so Apache thinks it has found the page. At least that's what happens on our server. Am I missing something in Apache that will tell the server to check a file exits before it sends the request to the server? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From:Christian Reiniger [SMTP:[EMAIL PROTECTED]] Sent:Monday, September 24, 2001 11:10 AM To:Tim Ward Cc:PHP General Subject:Re: [PHP] 404 error On Monday 24 September 2001 10:08, Tim Ward wrote: But how did you get the PHP code to run if the file doesn't exist? If a file with a php extension is requested Apache thinks the error returned by the PHP parser is a valid response to the request and auto_prepend only seems to work after the parser has got the file for parsing. Simple :) You tell apache to serve, say, 404.php on a 404, and in *that* file you place the code :) If you want to send a 404 from an existing php file, do a header ('HTTP/1.0 404 Not Found'); include (404.php); exit (); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 404 error
On Monday 24 September 2001 12:30, Tim Ward wrote: But if the file has an extension that you have told Apache to associate with PHP, it gets sent to the parser before Apache checks to see if it exists. No. If it really does that you misconfigured apache. The paresr then sends back an html page with the error on, so Apache thinks it has found the page. At least that's what happens on our server. Am I missing something in Apache that will tell the server to check a file exits before it sends the request to the server? Check your ErrorDocument clauses -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Assistance Please - Two-Dimension Arrays
fair point, ... but you can manipulate them as if they were. This isn't the case with arrays of arrays and multi-d arrays. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Christian Reiniger [SMTP:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 11:12 AM To: Tim Ward; [EMAIL PROTECTED] Subject: Re: [PHP] Assistance Please - Two-Dimension Arrays On Monday 24 September 2001 11:15, Tim Ward wrote: Congratulations. You just described a multidimensional array :-) No he didn't ... a 2 dimensional array would have a set 2 dimensional structure. Each row would have to have the same number of columns. An array of arrays may be built in such a way as to be able to be presented as if it were a 2d array but IT ISN'T. It cannot be manipulated as if it were. $element[0][id] and $element[1][id] are NOT members of the same array. If you see it that way, PHP doesn't even have single-dimensional arrays (because all arrays are associative). -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] WEB LOG
Oops, I looked through this too fast; I might have worked out what really needs to be done... if $pwd == $real_pwd { header (Location: http://actualdestinedsite;); } elsif { header (Location: http://evilsitethathasanerror;); } - Original Message - From: Ardani Sarjito [EMAIL PROTECTED] To: php_list [EMAIL PROTECTED] Sent: Sunday, September 23, 2001 9:35 PM Subject: [PHP] WEB LOG hi all! I'm just about to try to make my first weblog page. I find some problem. I want to make the user not being able to go to the destination page if the password does match. how do I do that? any help would be greatly appreciated. Thanks alot! Ardani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] WEB LOG
OOPS, again, elseif isn't what needs to be done. Ok, here we go. if $pwd == $real_pwd { header (Location: http://therealsite;); } else { header (Location: http://badsite;); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] include XHTML document
Hi I wrote my new page in XHTML 1.0, split it and wanted to include the top part of the file with the include( page_top.htm). The problem is, that the valid XHTML document has to begin with ?xml version=1.0 encoding=iso-8859-1? The problem now is, that ? is interpreted as a begin of php commands. I for myself use ?php when starting commands, but the compiler also use ?. Is there a way to work around? I by myself would appreciate if php commands would always start with ?php and the ? would be irgnored in future. Christian Weiske Christian Weiske, RealDreams [EMAIL PROTECTED] www.cweiske.de Always forgetting birthdays? Try RealDreams birthday reminder! http://www.cweiske.de/index.php3?goto=birthday -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] An Email RE: [PHP] include XHTML document has been trapped
The email RE: [PHP] include XHTML document from [EMAIL PROTECTED] to [EMAIL PROTECTED] [EMAIL PROTECTED] contained script similar to known Worm viruses. As a precaution this has been held in quarantine. The message will be held for up to 20 days, for further checking. Please notify the sender that you have not received their email. An automated message to the sender will also have been delivered. If you believe that this message has been blocked in error, please forward this message to: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Hello, I'm new one here
Hello there! I'm new one on this mailing list, and at the begining of this mail I would like to excuse myself for my poor english. I have a question about cURL library in Apache: Is it capable of making SSL (https) link to specific server using specific CRT formatted certificate? Command: 'curl_setopt($curl_handle, CURLOPT_SSLCERT, "file" )' doesn't work. Kamil 'Hilarion' Nowicki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] include XHTML document
On Mon, 2001-09-24 at 08:04, cweiske wrote: I wrote my new page in XHTML 1.0, split it and wanted to include the top part of the file with the include( page_top.htm). The problem is, that the valid XHTML document has to begin with ?xml version=1.0 encoding=iso-8859-1? The problem now is, that ? is interpreted as a begin of php commands. I for myself use ?php when starting commands, but the compiler also use ?. Look in the manual sections on php.ini and the short_tags feature. That option controls the interpretation of the ? tag. - Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Thank you
Hey, thank you! The short_open_tag worked ;) But, wouldn't it be good to take out this feature? More and more pages are being written in XHTML, and XML support is growing. So this function just causes errors - take it out, be more strict! Christian Weiske Christian Weiske, RealDreams [EMAIL PROTECTED] www.cweiske.de Always forgetting birthdays? Try RealDreams birthday reminder! http://www.cweiske.de/index.php3?goto=birthday -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle
Jeffrey, Ensure your ORACLE_SID is also set. This is a case of Oracle environment variables. Log in as the oracle user and look at the output of an 'env'. You are missing something there. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology Providers -Original Message- From: Jeffrey Iskandar Ahmad [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 1:04 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle I have reinstalled but still cannot work. How i compile: ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs \ --with-ldap=/home/jeffrey/download/directory/install --with-oci8=/home/oracl e Apache server stop and started. Im using redhat 7. Oracle 8i installed as programmer, apache_1.3.14. Remote oracle server version is 8.0.5 My bash env as below: ORACLE_HOME=/home/oracle TNS_ADMIN=$ORACLE_HOME/network/admin PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/bin LD_LIBRARY_PATH=$ORACLE_HOME/lib ORA_NLS33=/home/oracle/ocommon/nls/admin/data my php content: putenv('TNS_ADMIN=/home/oracle/network/admin'); putenv(ORACLE_HOME=/home/oracle); $db = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = patin)(PORT = 1521)) ) (CONNECT_DATA = (SID = I32) ) ); $c1 = ocilogon(ims,ims,$db); if ($c1 == false){ echo OCIError($c1).; } else { echo success; } I still get the same error OCISessionBegin: Error while trying to retrieve text for error ORA-03106 meening : fatal two-task communication protocol error) I have tested using sqlplus(same php server) connect to remote server, there is no problem. Do you have sample configuration how to do it.. please.. :) Jeffrey Iskandar Ahmad System Engineer Technology Division TIME dotNet -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 11:31 PM To: Jeffrey Iskandar Ahmad; [EMAIL PROTECTED] Subject: RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle Ensure that this is sent in the envrionment before compiling php and starting apache as well. Cheers, Andrew -Original Message- From: Jeffrey Iskandar Ahmad [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 11:50 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle I did but didnt work. Jeffrey Iskandar Ahmad System Engineer Technology Division TIME dotNet -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 9:09 PM To: Jeffrey Iskandar Ahmad; [EMAIL PROTECTED] Subject: RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle Jeffrey, Set your ORACLE_HOME environment variable. putenv(ORACLE_HOME=/path/to/oracle/home/dir); etc. HTH Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology Providers -Original Message- From: Jeffrey Iskandar Ahmad [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 5:47 AM To: [EMAIL PROTECTED] Subject: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle I cannot connect to remote oracle database. I get the error below. OCISessionBegin: Error while trying to retrieve text for error ORA-03106 (meening : fatal two-task communication protocol error) My env is all correct. My test.php: $db = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = patin)(PORT = 1521)) ) (CONNECT_DATA = (SID = I32) ) ); $c1 = ocilogon(ims,ims,$db); if ($c1 == false){ echo OCIError($c1).; exit; } else { echo success; } Jeffrey Iskandar Ahmad System Engineer Technology Division TIME dotNet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To
Re: [PHP] WEB LOG
At 07:08 AM 9/24/2001, Chris Herring wrote: OOPS, again, elseif isn't what needs to be done. Ok, here we go. if $pwd == $real_pwd { header (Location: http://therealsite;); } else { header (Location: http://badsite;); } For the record, that won't stop someone from going to the destination page if the password doesn't match, which is what the person asked about. All this will do is send them a redirect to an error page if the password doesn't match, it doesn't prevent anyone at all from hitting, in your example, http://therealsite. -j Jeffrey Paul [EMAIL PROTECTED] (877) 748 3467 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749 PGP: 0xF50BB9D7 A21AFD828C30EC77545DA0B3F501F50BB9D7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] WEB LOG
On Monday 24 September 2001 16:04, Jeffrey Paul wrote: Well. If you check the HTTP_REFERER on the target-site it would work and give you at least some security. However it is still not really secure. At 07:08 AM 9/24/2001, Chris Herring wrote: OOPS, again, elseif isn't what needs to be done. Ok, here we go. if $pwd == $real_pwd { header (Location: http://therealsite;); } else { header (Location: http://badsite;); } For the record, that won't stop someone from going to the destination page if the password doesn't match, which is what the person asked about. All this will do is send them a redirect to an error page if the password doesn't match, it doesn't prevent anyone at all from hitting, in your example, http://therealsite. -j Jeffrey Paul [EMAIL PROTECTED] (877) 748 3467 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749 PGP: 0xF50BB9D7 A21AFD828C30EC77545DA0B3F501F50BB9D7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] search engine submission
You can find this code all over the web, an example of it can be seen at most search engines on the Add a URL page :-) What are you trying to do? Cheers Jon -Original Message- From: Krushna Kumar R [mailto:[EMAIL PROTECTED]] Sent: 24 September 2001 15:08 To: [EMAIL PROTECTED] Subject: [PHP] search engine submission Hi, Can someone help me by where i could get some free code for search engine submission Regards Krushna Kumar ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] WEB LOG
Hi all, I'm new to php but I would look at the concept of setting a cookie on the log-in page and then testing for that cookie on the http://therealsite page and redirecting failues accordingly. In fact that could be set into every page to make sure that people have to go thru the log-in page. You still check for the password though. George, a php newbie - Original Message - From: Andreas Gietl [EMAIL PROTECTED] To: Jeffrey Paul [EMAIL PROTECTED]; Chris Herring [EMAIL PROTECTED]; php list [EMAIL PROTECTED] Sent: Monday, September 24, 2001 3:09 PM Subject: Re: [PHP] WEB LOG On Monday 24 September 2001 16:04, Jeffrey Paul wrote: Well. If you check the HTTP_REFERER on the target-site it would work and give you at least some security. However it is still not really secure. At 07:08 AM 9/24/2001, Chris Herring wrote: OOPS, again, elseif isn't what needs to be done. Ok, here we go. if $pwd == $real_pwd { header (Location: http://therealsite;); } else { header (Location: http://badsite;); } For the record, that won't stop someone from going to the destination page if the password doesn't match, which is what the person asked about. All this will do is send them a redirect to an error page if the password doesn't match, it doesn't prevent anyone at all from hitting, in your example, http://therealsite. -j Jeffrey Paul [EMAIL PROTECTED] (877) 748 3467 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749 PGP: 0xF50BB9D7 A21AFD828C30EC77545DA0B3F501F50BB9D7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] WEB LOG
At 10:09 AM 9/24/2001, Andreas Gietl wrote: Well. If you check the HTTP_REFERER on the target-site it would work and give you at least some security. However it is still not really secure. Wrong. Many browsers don't send the Referer: header, not to mention it's downright trivial to spoof it. This doesn't afford any more security at all. -j Jeffrey Paul [EMAIL PROTECTED] (877) 748 3467 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749 PGP: 0xF50BB9D7 A21AFD828C30EC77545DA0B3F501F50BB9D7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Site Search
I posted an example Site Search program to zend. You can view it here http://www.zend.com/codex.php?id=452single=1 Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: vishal khialani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 11:14 PM Subject: [PHP] Site Search Hi, I need to have a search on my site and was about to start working on it. Can anyone pls send their code if they have made one allready ? Thanks, Vishal _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Need help with auto_prepend_file
Our website relies heavily on include files. We have a single include file that is 'auto prepended' to every php file on the site using the auto_prepend_file directive in php.ini. This include file does an include_once on other include files. Also, most parts of our code include other page components such as our menu bar from other .inc files. Should we be using auto_prepend_file? It seems like this does not do an include_once and when we turn error_reporting = E_ALL we are seeing a lot of errors on variables that have already been defined and such. Thanks in advance for any replies. Mike ** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: include XHTML document
echo '?'; ? xml version=1.0 encoding=iso-8859-1? That's how I am putting my XHTML on SF. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net Cweiske [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I wrote my new page in XHTML 1.0, split it and wanted to include the top part of the file with the include( page_top.htm). The problem is, that the valid XHTML document has to begin with ?xml version=1.0 encoding=iso-8859-1? The problem now is, that ? is interpreted as a begin of php commands. I for myself use ?php when starting commands, but the compiler also use ?. Is there a way to work around? I by myself would appreciate if php commands would always start with ?php and the ? would be irgnored in future. Christian Weiske Christian Weiske, RealDreams [EMAIL PROTECTED] www.cweiske.de Always forgetting birthdays? Try RealDreams birthday reminder! http://www.cweiske.de/index.php3?goto=birthday -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Windows question
Can PHP kick off an exe or batch file? IF it can, how does one go about doing so? Thanks, Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Need help with auto_prepend_file
Original message From: Michael Champagne [EMAIL PROTECTED] Date: Mon, Sep 24, 2001 at 09:28:01AM -0500 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Need help with auto_prepend_file Our website relies heavily on include files. We have a single include file that is 'auto prepended' to every php file on the site using the auto_prepend_file directive in php.ini. This include file does an include_once on other include files. Also, most parts of our code include other page components such as our menu bar from other .inc files. Should we be using auto_prepend_file? It seems like this does not do an include_once and when we turn error_reporting = E_ALL we are seeing a lot of errors on variables that have already been defined and such. Thanks in advance for any replies. Mike /Original message Reply What you can do is check on some constant that you define the first time the file is included. The auto prepended file will then look something like: --- Pseudo code --- - if constant A is not defined -- define constant A -- your code --- End of Pseudo code --- This will make sure function, variables and/or constants will only be defined once. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Receiving mySQL result from remote server?
Is it possible to have a script at xyz.com retrieve data from a mySQL database on abc.com? Jeff
[PHP] PHP and GD
I am trying to create PNG images on the fly using the following code. if(file_exists($key)) { $diff = time() - filemtime($key); if($diff = 600) { unlink($key); } } $im = ImageCreateFromPNG($value); $isCreated = imagePNG($im, $key, '80'); //error occurs here I recieve the following error on the line indicated above. imagepng: unable to open '/images/image1.png' for writing When I run phpinfo it shows PHP as begin copiled with GD support with PNG enable on GD (see below) GD Support enabled GD Version 1.6.2 or higher PNG Support enabled WBMP Support enabled The only other issue i could think of was permissions, but i have changed permissions to rwx all the way across for the directory and all files inside the directory. Any one have any ideas??? Thanks. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem with simple classes to connect/query to SYBASE database
Hi, I have simple PHP code. ?php /** DB **/ class db { var $connect_id; function open( $database, $host, $user, $password ) { $this-connect_id = @sybase_connect( $host, $user, $password ); if ( $this-connect_id ) { $result = @sybase_select_db( $database ); if ( !$result ) { $this-connect_id = $result; } return $this-connect_id; } else { return 0; } } }; // End class /** QUERY ***/ class query { var $result; var $was_error; function query( $db, $query = ) { global $php_errormsg; global $GLOBALS; $this-was_error=0; //remove comment sings at line below to get OK result //$query = select * from mytab; $this-result = @sybase_query( $query, $db-connect_id ); if( $this-result == FALSE ) { $fh = fopen( /tmp/syberror.log, a ); fwrite( $fh, 'PHP_ERRORMSG:' . $php_errormsg . \n ); fwrite( $fh, 'PHP_ERRORMSG:' . $GLOBALS[ php_errormsg ] . \n ); fwrite( $fh, $query.\n ); fclose( $fh ); $this-was_error = 1; } } function error() { if( $this-was_error ) $result = 1; else $result = 0; return $result; } }; // End class $dbName='mydb'; $dbUser='sa'; $dbPass=''; $dbServer='SYBASE'; $DB = new db(); $DB-open( $dbName, $dbServer, $dbUser, $dbPass ); $q = new query($DB); //dummy query for generic operations $query = select * from mytab; $q-query( $DB, $query ); //there is called query if ( $q-error() ) { //I always get WRONG when doesn't change the value of $query paramater inside query() method print( 'WRONG' ); } else { //I always get OK when change the value of $query paramater inside query() method print( 'OK' ); } ? When I run script above I got WRONG message. Then I changed value of the $query parameter inside query method of query class and rerun the script then I got OK. Funny, isn't it ???. What is it wrong ??? It is NOT MY FIRST TIME when I'm using PHP, Apache and Sybase Adaptive Server Enterprise. Till this time I've never used class for connecting and querying database. I have my own scripts to connect/query SYBASE database, but I tried to use classes. It's more useful and powerful. Second problem. How to get values of the global variables inside methods of any class ??? Code inside method query() doesn't return values of global variable $php_errormsg (trace error flag is ON). Thanks for any help Krzysztof Kocjan --R--E--K--L--A--M--A--- Zapal lampe w sypialni! Swiatlo wzmaga apetyt na seks. http://www.polki.interia.pl/seks/erotyka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Receiving mySQL result from remote server?
Yes, in fact it is normal. Having dedicated MySQL box is a good idea. A lot of the MySQL security is based around this. To find out how look in the MySQL manual (download .pdf from www.mysql.com) or go on the mysal mailing list (same domain) or if you have a decent isp get primer from there support website (you could have a look at www.pair.com/support). Neb Jeff Lewis [EMAIL PROTECTED] on 24/09/2001 15:52:24 Please respond to Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: [PHP] Receiving mySQL result from remote server? Is it possible to have a script at xyz.com retrieve data from a mySQL database on abc.com? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and GD
That directory is VERY close to root. Is that what you intended? J. Anderson Scarbrough [EMAIL PROTECTED] on 24/09/2001 15:59:04 To: [EMAIL PROTECTED] cc: Subject: [PHP] PHP and GD I am trying to create PNG images on the fly using the following code. if(file_exists($key)) { $diff = time() - filemtime($key); if($diff = 600) { unlink($key); } } $im = ImageCreateFromPNG($value); $isCreated = imagePNG($im, $key, '80'); //error occurs here I recieve the following error on the line indicated above. imagepng: unable to open '/images/image1.png' for writing When I run phpinfo it shows PHP as begin copiled with GD support with PNG enable on GD (see below) GD Support enabled GD Version 1.6.2 or higher PNG Support enabled WBMP Support enabled The only other issue i could think of was permissions, but i have changed permissions to rwx all the way across for the directory and all files inside the directory. Any one have any ideas??? Thanks. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Getting my head around nulls.
First recap (been doing RDBMS stuff for over 10 years so reckon this is correct). Nulls and blank are NOT the same in RDBMS (in fact there are actually several types of nulls). MySQL implements this correctly (Unlike Oracle which treats null and blank the same). Up to now I am OK but when it comes to codeing in PHP I am not to sure about best practice. The app I am working on for number datatypes inserts 0 if no data is entered in form. I can see why, I am inserting a blank into the database and MySQL goes (Hang on this is a number fields and as you are not inserting NULL you obviously mean zero). So I guess I need to do some conditional stuff so the blanks are not actually inserted or put null into the PHP variable and insert this (Can PHP vars be null but exist?). Or is their another option? The second half of the issue is getting data from the database. I added a couple of columns to database but then I tried to retrieve them as $row[index]. I got a variable x douse not exist error. This really through me until I realised it was because the value in the database was null and it kind of makes sense not to create the var for nulls (although it makes coding a pig). So again, it seems I need to do a lot of isset() stuff which is going to be a pain. Any other insight. Nulls with varchar/char types are not so much of a problem as long as you don't mind all fields in the database being blank rather than null after you first insert data into them. It would be good to get peoples advice on this. And remember 0 as a number is as important as any other number. Regards, Ben -- If you criminals strong encryption ONLY the criminals will have it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ereg expr guru
text file [other stuff] #%start dynamic %# #%start site [identifier] %# [contents] #%stop site [identifier] %# #%start site [identifier] %# [contents] #%stop site [identifier] %# #%start site [identifier] %# [contents] #%stop site [identifier] %#... #%stop dynamic %# [other stuff] already have the ability to parse out all the dynamic stuff (stuff between the start and stop dynamic tags). Once we have the string of all the sites, am having problems getting that to parse out into a usabe array. need to parse the content between the dynamic tags and return an array with [identifier] = [contents] [identifier] = [contents]... ideas? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Receiving mySQL result from remote server?
I am assuming that all I need to change is the host/domain so that instead of localhost it would be something else. Am I assuming right? So I could have www.abc.com or the IP? Jeff - Original Message - From: [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, September 24, 2001 10:52 AM Subject: Re: [PHP] Receiving mySQL result from remote server? Yes, in fact it is normal. Having dedicated MySQL box is a good idea. A lot of the MySQL security is based around this. To find out how look in the MySQL manual (download .pdf from www.mysql.com) or go on the mysal mailing list (same domain) or if you have a decent isp get primer from there support website (you could have a look at www.pair.com/support). Neb Jeff Lewis [EMAIL PROTECTED] on 24/09/2001 15:52:24 Please respond to Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: [PHP] Receiving mySQL result from remote server? Is it possible to have a script at xyz.com retrieve data from a mySQL database on abc.com? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] array
Hello everyone. I'm encountering difficulties using my arrays. while ($row = mysql_fetch_array($result)) { $link[$c] = $row['link']; $c = $c + 1; } This is where I try using it. while ($row = mysql_fetch_array($result)) { $date = $row['date']; $path = $row['path']; $entry_name = $row['entry_name']; $company_name = $row['company_name']; $file = basename ($path); while ($c = 0) { echo $link[$c]; if($file == $link[$c]) { $file = This is new; } $c = $c -1; } $contact_list2 .= $date $file $entry_name $company_name\n; } Comment: Theecho $link[$c] works fine. It displays what it should. However the if statement does not because $file and $link[$c] are equal on several occasions yet the content of $file doesn't change... Thank You. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] WEB LOG
This is the reason why i wrote it is just some security. On Monday 24 September 2001 16:15, Jeffrey Paul wrote: At 10:09 AM 9/24/2001, Andreas Gietl wrote: Well. If you check the HTTP_REFERER on the target-site it would work and give you at least some security. However it is still not really secure. Wrong. Many browsers don't send the Referer: header, not to mention it's downright trivial to spoof it. This doesn't afford any more security at all. -j Jeffrey Paul [EMAIL PROTECTED] (877) 748 3467 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749 PGP: 0xF50BB9D7 A21AFD828C30EC77545DA0B3F501F50BB9D7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] search engine submission
I believe that he wants an automated URL submission script. I've seen one that just been released like a week or two ago. It's good script from what I remember looking at the code with success page verification. If I can find the URL, I'll be sure to reply. I can't seem to find it my IE's history. I think the Windows XP Pro upgrade on Win2k did something to the browser's history. I have ported my PERL submission script to PHP, however I'm waiting for a particular feature in PHP, rather a function to be more developed before I release my port. Jon Haworth [EMAIL PROTECTED] wrote in message 67DF9B67CEFAD4119E4200D0B720FA3FB5F105@BOOTROS">news:67DF9B67CEFAD4119E4200D0B720FA3FB5F105@BOOTROS... You can find this code all over the web, an example of it can be seen at most search engines on the Add a URL page :-) What are you trying to do? Cheers Jon -Original Message- From: Krushna Kumar R [mailto:[EMAIL PROTECTED]] Sent: 24 September 2001 15:08 To: [EMAIL PROTECTED] Subject: [PHP] search engine submission Hi, Can someone help me by where i could get some free code for search engine submission Regards Krushna Kumar ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Getting my head around nulls.
And remember 0 as a number is as important as any other number. I wish the rest of the world saw it that way! But not so... You may want to look at MySQL's IS_NULL function for retrieving data. Other than that, I don't have any good advice. It seems that if you retrieve a NULL from the database and try to assign it to a PHP variable, that variable gets destroyed. AFAIK, yes, you need a bunch of data checks, both putting data in and pulling it back out. Kirk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 8:59 AM To: [EMAIL PROTECTED] Subject: [PHP] Getting my head around nulls. First recap (been doing RDBMS stuff for over 10 years so reckon this is correct). Nulls and blank are NOT the same in RDBMS (in fact there are actually several types of nulls). MySQL implements this correctly (Unlike Oracle which treats null and blank the same). Up to now I am OK but when it comes to codeing in PHP I am not to sure about best practice. The app I am working on for number datatypes inserts 0 if no data is entered in form. I can see why, I am inserting a blank into the database and MySQL goes (Hang on this is a number fields and as you are not inserting NULL you obviously mean zero). So I guess I need to do some conditional stuff so the blanks are not actually inserted or put null into the PHP variable and insert this (Can PHP vars be null but exist?). Or is their another option? The second half of the issue is getting data from the database. I added a couple of columns to database but then I tried to retrieve them as $row[index]. I got a variable x douse not exist error. This really through me until I realised it was because the value in the database was null and it kind of makes sense not to create the var for nulls (although it makes coding a pig). So again, it seems I need to do a lot of isset() stuff which is going to be a pain. Any other insight. Nulls with varchar/char types are not so much of a problem as long as you don't mind all fields in the database being blank rather than null after you first insert data into them. It would be good to get peoples advice on this. And remember 0 as a number is as important as any other number. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Screen Resolution in PHP?
Is there a way to get the client's screen resolution in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Time conversion from iso8601 to unixtime
Hi, I'm trying to find a function doing the time conversion from iso8601 to unixtime. http://www.w3.org/TR/NOTE-datetime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Screen Resolution in PHP?
Jay Paulson wrote: Is there a way to get the client's screen resolution in php? No. Use JavaScript. -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Screen Resolution in PHP?
ACK! Just saw a post that answered this question. Sorry bout this post should have checked with archives first. - Original Message - From: Jay Paulson [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, September 24, 2001 10:50 AM Subject: [PHP] Screen Resolution in PHP? Is there a way to get the client's screen resolution in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sessions just don't work on my machine. (Trying this again)
I have written here several times on this subject and in the end those who have gratiously helped me have ended up just telling me they have no clue why it doesn't work. It HAS to be my server setup but I don't know what it could be. Sessions just don't work on my machine... The heart of the problem is the session_start() function. The first time you start a session with this function it creates a new session, that's fine. The problem happens when it's run and no matter if the SSID is in a cookie or passed via a form, it will still create a new session, every single time. It will not pickup the old session. Here is the app I setup to demonstrate the problem: http://fromtheduke.com/session/ The first page initiates the session, the variable is posted to the next page, the next page should retrieve the session and display the first two variables which were registered in the session, then display the third var. You'll see the third var showsup, the first two don't. The session ID may or may not remain the same. If you manually remove the index2.php file and reload the first page, the SSID will have changed. Source of the files: index.php: ? session_start(); session_register(var1); session_register(var2); $var1 = My var 1; $var2 = My var 2; ?HTML HEAD TITLESession Page 1/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR FORM ACTION=index2.php METHOD=POST VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM /BODY /HTML -- Source of index2.php: ? session_start();// start session session_register(var3); // register var 3 session variable $var3 = $myvar3; ?HTML HEAD TITLESession Page 2/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR VAR3: ? echo $var3; ?BR /BODY /HTML -- I have tried session_name() to force the session ID. I was told though this function doesn't set the SSID. It gives the SSID a name or something. I have been told this is all setup correctly, yet, you can see it doesn't work. The permissions on my /tmp directory look like this: drwxrwxrwt /tmp Does this have anything to do with this? I don't know much about the permissions part of things. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
Dont use sessions, they are a little flaky anyway. Use a mixture of holding data in database and passing sid/userid/hash around on the URL. You wont regret it. I have written here several times on this subject and in the end those who have gratiously helped me have ended up just telling me they have no clue why it doesn't work. It HAS to be my server setup but I don't know what it could be. Sessions just don't work on my machine... The heart of the problem is the session_start() function. The first time you start a session with this function it creates a new session, that's fine. The problem happens when it's run and no matter if the SSID is in a cookie or passed via a form, it will still create a new session, every single time. It will not pickup the old session. Here is the app I setup to demonstrate the problem: http://fromtheduke.com/session/ The first page initiates the session, the variable is posted to the next page, the next page should retrieve the session and display the first two variables which were registered in the session, then display the third var. You'll see the third var showsup, the first two don't. The session ID may or may not remain the same. If you manually remove the index2.php file and reload the first page, the SSID will have changed. Source of the files: index.php: ? session_start(); session_register(var1); session_register(var2); $var1 = My var 1; $var2 = My var 2; ?HTML HEAD TITLESession Page 1/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR FORM ACTION=index2.php METHOD=POST VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM /BODY /HTML -- Source of index2.php: ? session_start();// start session session_register(var3); // register var 3 session variable $var3 = $myvar3; ?HTML HEAD TITLESession Page 2/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR VAR3: ? echo $var3; ?BR /BODY /HTML -- I have tried session_name() to force the session ID. I was told though this function doesn't set the SSID. It gives the SSID a name or something. I have been told this is all setup correctly, yet, you can see it doesn't work. The permissions on my /tmp directory look like this: drwxrwxrwt /tmp Does this have anything to do with this? I don't know much about the permissions part of things. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED]+44 (0)7970 269 522 http://www.subvertise.org -- Altering the Corporate Image http://www.criticaldistribution.org -- Buy Alternative Video Online http://www.videonetwork.org -- Community/Radical Video http://www.spamcop.net/ -- Killing SPAM feels good! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
I had the exact same problem.. don't know if you had this advice yet or not but what I did is when I started a session I would grab the session id for that session and put it in a variable and then just pass that session id everywhere I went.. turn on the trans_id or add the session id to the end of every link so it gets pass throughout all the links/forms you have on the site. start_session(); $SID = session_id(); That's what I do and then I just pass the $SID on all the links and forms and it works for me. Hope that helps or is at least something new for you to try. jay - Original Message - From: Thomas Deliduka [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Monday, September 24, 2001 10:56 AM Subject: [PHP] Sessions just don't work on my machine. (Trying this again) I have written here several times on this subject and in the end those who have gratiously helped me have ended up just telling me they have no clue why it doesn't work. It HAS to be my server setup but I don't know what it could be. Sessions just don't work on my machine... The heart of the problem is the session_start() function. The first time you start a session with this function it creates a new session, that's fine. The problem happens when it's run and no matter if the SSID is in a cookie or passed via a form, it will still create a new session, every single time. It will not pickup the old session. Here is the app I setup to demonstrate the problem: http://fromtheduke.com/session/ The first page initiates the session, the variable is posted to the next page, the next page should retrieve the session and display the first two variables which were registered in the session, then display the third var. You'll see the third var showsup, the first two don't. The session ID may or may not remain the same. If you manually remove the index2.php file and reload the first page, the SSID will have changed. Source of the files: index.php: ? session_start(); session_register(var1); session_register(var2); $var1 = My var 1; $var2 = My var 2; ?HTML HEAD TITLESession Page 1/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR FORM ACTION=index2.php METHOD=POST VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM /BODY /HTML -- Source of index2.php: ? session_start();// start session session_register(var3); // register var 3 session variable $var3 = $myvar3; ?HTML HEAD TITLESession Page 2/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR VAR3: ? echo $var3; ?BR /BODY /HTML -- I have tried session_name() to force the session ID. I was told though this function doesn't set the SSID. It gives the SSID a name or something. I have been told this is all setup correctly, yet, you can see it doesn't work. The permissions on my /tmp directory look like this: drwxrwxrwt /tmp Does this have anything to do with this? I don't know much about the permissions part of things. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)
on 9/24/01 10:56 AM, Thomas Deliduka at [EMAIL PROTECTED] wrote: FORM ACTION=index2.php METHOD=POST VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM I dont see where the SID is being passed to the next page. I recently struggled through getting sessions to work, and for me I had to send SID myself manually, the server wouldn't send it via a cookie. I have mine set up a little differently, something like //index.php ?php session_register(var1); session_register(var2); $var1 = the session...; $var2 = worked; ? html body a href=index2.php??=SID?Go to page two/a /body /html //index2.php ?php session_start(); echo var1 is $var1 and var2 is $var2; session_destroy(); ? --- You can also send the SID in a form via form method=post action=nextpage.php??=SID? I use the constant SID and the shorthand ?=SID? because that is what is recommended and demonstrated on php.net Matt _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Even more text document stuff!!
look into the following functions (in the manual), play with the examples then eventually implement the concepts into your script : file() fopen() fread() fgets() the manual entries for the above functions contain examples that essentially do what you want. most likely you'll use file(). you should get comfortable with arrays too. also, look into stristr(). regards, Philip Olson On Mon, 24 Sep 2001, Kyle Smith wrote: Is i possible to make PHP CUT all of the contents of a text document out of it and make it into a variable? (yes i know, i havnt got to the mySQL section of the book yet!!!) -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)
On 9/24/2001 12:02 PM this was written: Dont use sessions, they are a little flaky anyway. Use a mixture of holding data in database and passing sid/userid/hash around on the URL. You wont regret it. That's what I do. Except I want to install: http://www.phplinks.org/ Which requires them. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)
I see I'm relying on cookies in my code. Lemme see if I can pass it. On 9/24/2001 12:04 PM this was written: I had the exact same problem.. don't know if you had this advice yet or not but what I did is when I started a session I would grab the session id for that session and put it in a variable and then just pass that session id everywhere I went.. turn on the trans_id or add the session id to the end of every link so it gets pass throughout all the links/forms you have on the site. start_session(); $SID = session_id(); That's what I do and then I just pass the $SID on all the links and forms and it works for me. Hope that helps or is at least something new for you to try. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)
I see I'm relying on cookies in my code. Lemme see if I can pass it. Thanks. On 9/24/2001 12:11 PM this was written: I dont see where the SID is being passed to the next page. I recently struggled through getting sessions to work, and for me I had to send SID myself manually, the server wouldn't send it via a cookie. I have mine set up a little differently, something like //index.php ?php session_register(var1); session_register(var2); $var1 = the session...; $var2 = worked; ? html body a href=index2.php??=SID?Go to page two/a /body /html //index2.php ?php session_start(); echo var1 is $var1 and var2 is $var2; session_destroy(); ? --- You can also send the SID in a form via form method=post action=nextpage.php??=SID? I use the constant SID and the shorthand ?=SID? because that is what is recommended and demonstrated on php.net -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)
On 9/24/2001 12:22 PM this was written: Try to use constant SID, maybe that will work, and it is more likely that it will work on other intallations with other session variable names. I just tried using SID in my index.php and there is nothing that displays. Hmmm. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On Monday 24 September 2001 18:20, Thomas Deliduka wrote: On 9/24/2001 12:22 PM this was written: Try to use constant SID, maybe that will work, and it is more likely that it will work on other intallations with other session variable names. I just tried using SID in my index.php and there is nothing that displays. Hmmm. The try this link almost works for me. You just forget the ? sign before the SID. Arpi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)
On 9/24/2001 12:28 PM this was written: On Monday 24 September 2001 18:20, Thomas Deliduka wrote: On 9/24/2001 12:22 PM this was written: Try to use constant SID, maybe that will work, and it is more likely that it will work on other intallations with other session variable names. I just tried using SID in my index.php and there is nothing that displays. Hmmm. The try this link almost works for me. You just forget the ? sign before the SID. I guess I did. But hey. On internet Explorer for the PC I get the proper 'try this link' value. Not to mention that I get a warning above that PHPSESSID doesn't exist. But on IE for the Mac PHPSESSID above prints out fine but the 'try this link' HREF has not PHPSESSID. I used ?=SID? to echo it and it doesn't show up. What is up with that?! is this platform specific?! -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sessions just don't work on my machine. (Trying this again)
Perhaps you could post the [Session] section of your php.ini file. It appears that session.cookie_lifetime is not set to 0, which is what you want for a session cookie. Perhaps we can find another setting that needs a change. Kirk Sessions just don't work on my machine... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)
After reloading IE on the PC now the SID constant doesn't echo anything at all. On 9/24/2001 12:28 PM this was written: On 9/24/2001 12:28 PM this was written: On Monday 24 September 2001 18:20, Thomas Deliduka wrote: On 9/24/2001 12:22 PM this was written: Try to use constant SID, maybe that will work, and it is more likely that it will work on other intallations with other session variable names. I just tried using SID in my index.php and there is nothing that displays. Hmmm. The try this link almost works for me. You just forget the ? sign before the SID. I guess I did. But hey. On internet Explorer for the PC I get the proper 'try this link' value. Not to mention that I get a warning above that PHPSESSID doesn't exist. But on IE for the Mac PHPSESSID above prints out fine but the 'try this link' HREF has not PHPSESSID. I used ?=SID? to echo it and it doesn't show up. What is up with that?! is this platform specific?! -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Screen Resolution in PHP?
So sprach »Jay Paulson« am 2001-09-24 um 10:50:02 -0500 : Is there a way to get the client's screen resolution in php? no, because, as you say, it's the client's screen resolution and PHP runs on the server. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 6 hours 11 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On 9/24/2001 12:28 PM this was written: Perhaps you could post the [Session] section of your php.ini file. It appears that session.cookie_lifetime is not set to 0, which is what you want for a session cookie. Perhaps we can find another setting that needs a change. My php.ini: [Session] session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = PHPSESSID session.auto_start= 0 session.cookie_lifetime = 3600 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability= 1 session.gc_maxlifetime= 1440 session.referer_check = 0 session.entropy_length= 0 session.entropy_file = ; session.entropy_length= 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sessions just don't work on my machine. (Trying this again)
After reloading IE on the PC now the SID constant doesn't echo anything at all. SID is always defined on the first page request. It is only defined on later page requests if cookies are disabled in the browser. Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sessions just don't work on my machine. (Trying this ag ain)
Try these changes: session.cookie_lifetime = 0 session.use_trans_sid = 1 Also, what version of PHP are you using? My php.ini: [Session] session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = PHPSESSID session.auto_start= 0 session.cookie_lifetime = 3600 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability= 1 session.gc_maxlifetime= 1440 session.referer_check = 0 session.entropy_length= 0 session.entropy_file = ; session.entropy_length= 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On 9/24/2001 12:32 PM this was written: After reloading IE on the PC now the SID constant doesn't echo anything at all. SID is always defined on the first page request. It is only defined on later page requests if cookies are disabled in the browser. So, I shouldn't use that if I'm depending on SID to display on pages to pass the session ID. Or what, disable cookie support in my php.ini? -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On 9/24/2001 12:39 PM this was written: Try these changes: session.cookie_lifetime = 0 session.use_trans_sid = 1 Also, what version of PHP are you using? PHP: 4.0.6 In the past I had problems with trans_sid with urls that already had querystrings being passed. They would mess up the querystrings, has that been fixed? -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Modem communcation using PHP
Hi ya all! I can't find the PHP documentation on using the php code to initalize, configure, dail, send and receive data using the modem. Anyone know anything about it. I'm kind of stuck on this project. Will appreciate it on anyone who can point it out for me. Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On 9/24/2001 12:39 PM this was written: Try these changes: session.cookie_lifetime = 0 session.use_trans_sid = 1 I see no changes to my problems. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
I'm finding my script on www.fromtheduke.com/session/ still doesn't work even with the ?=SID? in the link or passing it along in the form. On 9/24/2001 12:49 PM this was written: On Monday 24 September 2001 18:39, Thomas Deliduka wrote: On 9/24/2001 12:32 PM this was written: After reloading IE on the PC now the SID constant doesn't echo anything at all. SID is always defined on the first page request. It is only defined on later page requests if cookies are disabled in the browser. So, I shouldn't use that if I'm depending on SID to display on pages to pass the session ID. Or what, disable cookie support in my php.ini? No, SID constant is especially usefull when you don't know if the user accepts cookies or not. SID will have a real value (e.g. PHPSESSID=lk123s) when you should add it to the url, and will have an empty value when you don't need to deal with it (because it's been stored in cookie). -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this ag ain)
On Monday 24 September 2001 18:51, Thomas Deliduka wrote: I'm finding my script on www.fromtheduke.com/session/ still doesn't work even with the ?=SID? in the link or passing it along in the form. Please send us your latest code again, then we can help you, not just guessing what you've might done. Arpi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On 9/24/2001 1:05 PM this was written: On Monday 24 September 2001 18:51, Thomas Deliduka wrote: I'm finding my script on www.fromtheduke.com/session/ still doesn't work even with the ?=SID? in the link or passing it along in the form. Please send us your latest code again, then we can help you, not just guessing what you've might done. Latest code: index.php: ? error_reporting(E_ALL); session_start(); session_register(var1); session_register(var2); $var1 = My var 1; $var2 = My var 2; ?HTML HEAD TITLESession Page 1/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR FORM ACTION=index2.php METHOD=POST Passing sessid: INPUT TYPE=TEXT VALUE=? echo $PHPSESSID; ? SIZE=40 NAME=PHPSESSIDBR VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM BR A HREF=index2.php??=SID?Try this link/A /BODY /HTML index2.php: ? error_reporting(E_ALL); session_start();// start session session_register(var3); // register var 3 session variable $var3 = $myvar3; ?HTML HEAD TITLESession Page 2/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR VAR3: ? echo $var3; ?BR /BODY /HTML -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On 9/24/2001 1:15 PM this was written: OK, now the session ID is getting passed like it should. Now for the two missing variables. Try moving the two assignment statements ahead of the two session_register() calls - assign, then register. I have never seen this make a difference, but the pros on this list say that is the way it needs to be done. Done, I switched the four lines around. ? error_reporting(E_ALL); session_start(); $var1 = My var 1; $var2 = My var 2; session_register(var1); session_register(var2); ?HTML HEAD TITLESession Page 1/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo $PHPSESSID; ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR FORM ACTION=index2.php METHOD=POST Passing sessid: INPUT TYPE=TEXT VALUE=? echo $PHPSESSID; ? SIZE=40 NAME=PHPSESSIDBR VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM BR A HREF=index2.php??=SID?Try this link/A /BODY /HTML -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
On 9/24/2001 1:18 PM this was written: OK, now the session ID is getting passed like it should. Now for the two missing variables. Try moving the two assignment statements ahead of the two session_register() calls - assign, then register. I have never seen this make a difference, but the pros on this list say that is the way it needs to be done. Done, I switched the four lines around. Same result. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sovket help?
Hi I'm trying to listen to port 119 with a socket connection. The script looks like this: It works fine until this line if(($ac=accept_connect($sock))0){ Thats where the problem is, it never accepts a connection it just keeps on running. ? $sock = socket (AF_INET, SOCK_STREAM, 0); $bin = bind($sock, '127.0.0.1', '119'); $lis = listen($sock, 4); echo strerror($sock). BR; echo strerror($bin) . BR; echo strerror($lis). BR; if(($ac=accept_connect($sock))0){ echo strerror($ac). BR; } else { $str =''; echo $ac; $re =read($ac, $str, 1); } echo strerror($re) . BR; echo $re . BR; ? thanks Shimon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sessions just don't work on my machine. (Trying this ag ain)
OK, do you have access to your /tmp directory? If so, close your browser, then open it and request your index page. Now sort the files in /tmp by creation time, to find the newly created session file. Look at its contents, and see if the 2 variables have values assigned to them in the file. Do this before you click submit on index. BTW, I don't think $PHPSESSID is ever defined on the first request. Instead, you can do this to see the new session ID on the first page. That will also help you find the correct session file to inspect. echo session id is . session_id() . br\n; Kirk -Original Message- From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 11:19 AM To: PHP List Subject: Re: [PHP] Sessions just don't work on my machine. (Trying this ag ain) On 9/24/2001 1:18 PM this was written: OK, now the session ID is getting passed like it should. Now for the two missing variables. Try moving the two assignment statements ahead of the two session_register() calls - assign, then register. I have never seen this make a difference, but the pros on this list say that is the way it needs to be done. Done, I switched the four lines around. Same result. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
Thank you everyone for your continued help with this. It's still not fixed but I have to leave to a dr. appt. I hope that most--If not all--of you are on when I get back. I just wanted to alert you as to why I wouldn't be responding to your questions/messages. Here is the last information I sent Tamas: I find as exepcted, it's creating a new PHPSESSID every time I post to the index2.php As I mentioned in the first e-mail, it ust creates a new session. But this is something I find interesting. I start the session for the first time, it regsiters var1 and var2. Then I post to the next page, the PHPSESSID values are posted perfectly fine but on the server a new session with a different vale is created with var3 in it. Then I will reload the first page again by erasing index2.php and hitting enter and it will display a new sess id number and show the first page, as normal but that sessid number is equal t the new session created on the server and the value of it is: var3; var1; var2 This is stranger than strange. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Warning: Undefined variable when used locally, but fine on remote server
I have recently installed Apache 1.3.2 and PHP 4.0.6 using the instructions at http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming on a Win98 machine which I will later use as an intranet server (NT workstation refuses to detect NT server, and the machine is too slow for Win2k). When I run scripts on this instalation that work fine on my free webspace at uklinux.net, they return Warning: Undefined variable: sub at every occurance of my menu system which uses sub as it its main vairable, if i specify the variable in the URL that partiular page will work, but only of the links -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Php-Mysql Work Wanted
Hi, If anyone has some good separate projects or part-time php-mysql related job to offer, I would appreciate if you let me know. I know phpmysql pretty good and have also some pretty nice things in my portfolio (both programming and design). For more information I can be contacted at [EMAIL PROTECTED] Best wishes, Siim EInfeldt EIP - Everything is Possible -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to increase number of supported servers?
PHP 3.0.18 stops working after i add over 125 virtual hosts in my httpd.conf file. PHP 4.0.6 still working. After reaching this limit PHP3 completele stopps delivering pages. Searching the archives i recognized, that nearly the same problem was reported on http://bugs.php.net, reading Bug Id #5316 and #6842. Im running Apache 1.3.20 with PHP 4.0.6 and PHP 3.0.18 on Solaris 2.7 Unforenatly i can´t stop serving PHP3 at this moment, so i really need for a solution to break through this PHP3 limitation. In addition it seems, that PHP4 (at laest after the 4.0.3pl1 release) hasn´t the problem or has a higher limit level. Question 1: Any chance to configure/patch PHP3 to support more than 255 file handles? (equal to support more than 125 virtual servers in my production environment)? Question 2: Is the problem reported in the two bug reports above solved in PHP 4.0.6? Or is it pushed to a later appearance by optimising file handle consumption? Any one out there who knows more about this? Any hints? Thanks in advance. --Buchholz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this ag ain)
Then I will reload the first page again by erasing index2.php and hitting enter and it will display a new sess id number and show the first page, as normal but that sessid number is equal t the new session created on the server and the value of it is: var3; var1; var2 This is stranger than strange. This isn't so strange. The session id is stored in a cookie. But.. I turned off cookies (debuging can be done much easier), and played a little. I found that the session is created properly on the first page and the 2 variables are registered too. But on the second page they aren't set on the first view (that's stange!). If I reload the page (of course the same sid is in the url), the 2 variables this time are set, with their value that were given on the first page (that's why I told above they were registered, and their values are stored properly, so it's not a problem of rights, session save paths, etc..) So that's what I've found, but I have to go home now sorry. On the other hand the 2 source file you've sent me worked fine on my computer, without any problems (and warnings). Arpi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this ag ain)
On Monday 24 September 2001 18:39, Thomas Deliduka wrote: On 9/24/2001 12:32 PM this was written: After reloading IE on the PC now the SID constant doesn't echo anything at all. SID is always defined on the first page request. It is only defined on later page requests if cookies are disabled in the browser. So, I shouldn't use that if I'm depending on SID to display on pages to pass the session ID. Or what, disable cookie support in my php.ini? No, SID constant is especially usefull when you don't know if the user accepts cookies or not. SID will have a real value (e.g. PHPSESSID=lk123s) when you should add it to the url, and will have an empty value when you don't need to deal with it (because it's been stored in cookie). Arpi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Modem communcation using PHP
Try this.. ? $fp = fopen(/dev/modem, w+); fputs($fp, ATA\n); echo fgets($fp, 1024); fclose($fp); ? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 9:46 AM To: [EMAIL PROTECTED] Subject: [PHP] Modem communcation using PHP Hi ya all! I can't find the PHP documentation on using the php code to initalize, configure, dail, send and receive data using the modem. Anyone know anything about it. I'm kind of stuck on this project. Will appreciate it on anyone who can point it out for me. Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] global variables
Hi, I am have a function in which I have created a variable in it called $genpassword. I find that I am unable to carry this variable over to the the other scripts to use because it is a local variable and its value exists only in the function. Is there anyway that I can take the value in $genpassword, a local variable and change it into a global variable so that other scripts will recognize it? Thanks. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Even more text document stuff!!
Read the manual. (Déjà vu?) http://www.php.net/manual/en/function.fread.php Even has an example that says -- get contents of a file into a string -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 7:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Even more text document stuff!! Is i possible to make PHP CUT all of the contents of a text document out of it and make it into a variable? (yes i know, i havnt got to the mySQL section of the book yet!!!) -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] global variables
global $genpasswd; ___ Justin Bain Rodino Technology Analyst/Systems Engineer p. 219.524.1000 f. 219.524.1001 e. [EMAIL PROTECTED] -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 1:28 PM To: PHP List Subject: [PHP] global variables Hi, I am have a function in which I have created a variable in it called $genpassword. I find that I am unable to carry this variable over to the the other scripts to use because it is a local variable and its value exists only in the function. Is there anyway that I can take the value in $genpassword, a local variable and change it into a global variable so that other scripts will recognize it? Thanks. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP isn't reading the php.ini
Hello, I had a computer running a MSSQL server and apache with PHP on it for development. I got hit by the nimda Virus and have had to start all over. I am trying to get MSSQL support with PHP but I am having the following problems. Thanks for any help ahead of time. When I uncomment the like for php_mssql.dll it doesn't seem to do anything. It just says call to undifiened function. I removed the php.ini from the winnt folder and still php runs. I am wondering if php is even reading the php.ini. Is it possible for it to run with out it? If you have any idea what could be happing please pet me know. Thanks Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
Yeah, I think it's my server setup, or something I have going on on my server because others have said that it works fine for them but not on my machine. I'm running red hat linux 6.1 apache+mod_ssl 1.3.20 On 9/24/2001 2:08 PM this was written: Then I will reload the first page again by erasing index2.php and hitting enter and it will display a new sess id number and show the first page, as normal but that sessid number is equal t the new session created on the server and the value of it is: var3; var1; var2 This is stranger than strange. This isn't so strange. The session id is stored in a cookie. But.. I turned off cookies (debuging can be done much easier), and played a little. I found that the session is created properly on the first page and the 2 variables are registered too. But on the second page they aren't set on the first view (that's stange!). If I reload the page (of course the same sid is in the url), the 2 variables this time are set, with their value that were given on the first page (that's why I told above they were registered, and their values are stored properly, so it's not a problem of rights, session save paths, etc..) So that's what I've found, but I have to go home now sorry. On the other hand the 2 source file you've sent me worked fine on my computer, without any problems (and warnings). -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] FW: PHP isn't reading the php.ini
Hello, I had a computer running a MSSQL server and apache with PHP on it for development. I got hit by the nimda Virus and have had to start all over. I am trying to get MSSQL support with PHP but I am having the following problems. Thanks for any help ahead of time. When I uncomment the like for php_mssql.dll it doesn't seem to do anything. It just says call to undifiened function. I removed the php.ini from the winnt folder and still php runs. I am wondering if php is even reading the php.ini. Is it possible for it to run with out it? If you have any idea what could be happing please pet me know. Thanks Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions just don't work on my machine. (Trying this again)
I just tried this here below. Before trying this I changed any called to $PHPSESSID to session_id(). I turned off cookies Loaded the page... Created session id and file: sess_44074d3a54862b480c3407c9eb373f77 Contents: var1|s:8:My var 1;var2|s:8:My var 2; I submitted the form: PHPsessionid shows up as: 2f633e17c6752342d0c1e7e6191b4112 New file with same name contents: var3|s:8:My Var 3; I removed index2.php and went back to the first file. PHP SessID shows up as 68b482365d9086068edfa3e35d8dd41d Corresponding file with contents: var1|s:8:My var 1;var2|s:8:My var 2; This is different then what I previously said. But it's clear to me that each time session_start() is called, it doesn't open the existing session rather it creates a new one. When I click the 'try this link' instead when starting over. It still creates a new session ID on the server. On 9/24/2001 1:31 PM this was written: OK, do you have access to your /tmp directory? If so, close your browser, then open it and request your index page. Now sort the files in /tmp by creation time, to find the newly created session file. Look at its contents, and see if the 2 variables have values assigned to them in the file. Do this before you click submit on index. BTW, I don't think $PHPSESSID is ever defined on the first request. Instead, you can do this to see the new session ID on the first page. That will also help you find the correct session file to inspect. echo session id is . session_id() . br\n; -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Possible to store arrays in session variables?
Is it possible to store arrays inside of session variables? I mean is this a valid statement? $HTTP_SESSION_VARS[Crumbs][0] = 1; $HTTP_SESSION_VARS[Crumbs][1] = 2; foreach ($HTTP_SESSION_VARS[Crumbs] as $k = $v) { echo $v -; } Regards, Johnny Nguyen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Warning: Undefined variable when used locally, but fineon remote server
This has to do with error_reporting level setting set in php.ini echo $iamnotset; when E_NOTICE level is on, that will produce a Warning. Otherwise, it will not. I posted something similiar recently, see it here: http://marc.theaimsgroup.com/?l=php-generalm=100083224311516 On uklinux, either fix the code (yeah!) or use the error_reporting() function to suppress the warnings. Strange that a free host would have it on, actually, it's kinda cool :) regards, Philip Olson On Mon, 24 Sep 2001, Justin Colson wrote: I have recently installed Apache 1.3.2 and PHP 4.0.6 using the instructions at http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming on a Win98 machine which I will later use as an intranet server (NT workstation refuses to detect NT server, and the machine is too slow for Win2k). When I run scripts on this instalation that work fine on my free webspace at uklinux.net, they return Warning: Undefined variable: sub at every occurance of my menu system which uses sub as it its main vairable, if i specify the variable in the URL that partiular page will work, but only of the links -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to increase number of supported servers?
what does this mean? Warning: Cannot use a scalar value as an array I look at the line that is causing the warning and it's this: $errorMsg[error] = ; thanks, jay [EMAIL PROTECTED] wrote: PHP 3.0.18 stops working after i add over 125 virtual hosts in my httpd.conf file. PHP 4.0.6 still working. After reaching this limit PHP3 completele stopps delivering pages. Searching the archives i recognized, that nearly the same problem was reported on http://bugs.php.net, reading Bug Id #5316 and #6842. Im running Apache 1.3.20 with PHP 4.0.6 and PHP 3.0.18 on Solaris 2.7 Unforenatly i can´t stop serving PHP3 at this moment, so i really need for a solution to break through this PHP3 limitation. In addition it seems, that PHP4 (at laest after the 4.0.3pl1 release) hasn´t the problem or has a higher limit level. Question 1: Any chance to configure/patch PHP3 to support more than 255 file handles? (equal to support more than 125 virtual servers in my production environment)? Question 2: Is the problem reported in the two bug reports above solved in PHP 4.0.6? Or is it pushed to a later appearance by optimising file handle consumption? Any one out there who knows more about this? Any hints? Thanks in advance. --Buchholz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] what does this mean?
Warning: Cannot use a scalar value as an array what does that mean? i have in my code this: $errorMsg[error] = ; thanks, jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]