Re: [PHP] Change in 5.2.1 re. parsing of URL

2007-02-22 Thread Jan Reilink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Lucas wrote: | Lewis Kapell wrote: | Jochem Maas wrote: [snip] | this is nothing to do with php - it's down to your webserver settings. | | If this has nothing to do with PHP, maybe you can explain why the | behavior was broken when I upgraded

[PHP] remote file time -small issue

2007-02-22 Thread SJAMHO DBMS
Dear Sirs, I have a problem with the attached file. Run it or see it here: http://www.sjamho.com/update/remote.php The issue is: the timestamps are shown for every file in a subdirectory, but never for a file in the root of a domain. Can anyone tell me why? Kind regards, Jos -- PHP General

[PHP] Re: How to call image from mySql to php file

2007-02-22 Thread Colin Guthrie
Kevin Waterson wrote: This one time, at band camp, Haydar TUNA [EMAIL PROTECTED] wrote: Hello, Firstly, your image table field should be BLOB field then you create a image file (for example image.php). in this file, if your application is more secure, you can control the session

[PHP] Re: How to call image from mySql to php file

2007-02-22 Thread Colin Guthrie
Hi, Some points already given by others just reiterating: Chris Carter wrote: $sno = $_REQUEST['sno']; $_REQUEST is dodgy - you don't know what makes it up (cookies, post, get etc.), only use it when it when you are sure. $query=SELECT logos FROM table WHERE sno = '$sno'; NEVER do this.

Re: [PHP] Session problems with 4.4.5?

2007-02-22 Thread alex handle
On 2/16/07, Jochem Maas [EMAIL PROTECTED] wrote: Ken Williams wrote: Is anyone else having problems with session in 4.4.5? I'm under apache 1.3.27 in linux 2.4.34 and all my web sites break under 4.4.5. As soon as a page tries to register a session variable with session_register apache

[PHP] Re: Embeding HTMl into a XML doc

2007-02-22 Thread Mikey
Dwain Crackel wrote: The $dom-save(); command HTML encodes the text, as such I can't save html inside a XML node. Is there a way around this, as I would I like to do so? Thank you Dwain http://www.w3schools.com/xml/xml_cdata.asp ![CDATA[ HTML in here ]] should do the trick for you Mikey

Re: [PHP] DOM Element default ID attribute

2007-02-22 Thread Rob Richards
Eli wrote: Let me try to be more clear.. Say you got the element elem key=peter , then I want the DOMDocument to automatically convert the 'key' attribute to an ID-Attribute, as done with DOMElement::setIdAttribute() function. The ID-Attribute is indexed and can be quickly gotten via

Re: [PHP] remote file time -small issue

2007-02-22 Thread Jochem Maas
SJAMHO DBMS wrote: Dear Sirs, I have a problem with the attached file. Run it or see it here: http://www.sjamho.com/update/remote.php The issue is: the timestamps are shown for every file in a subdirectory, but never for a file in the root of a domain. Can anyone tell me why? not

[PHP] Re: remote file time -small issue

2007-02-22 Thread David Robley
SJAMHO DBMS wrote: Dear Sirs, I have a problem with the attached file. Run it or see it here: http://www.sjamho.com/update/remote.php The issue is: the timestamps are shown for every file in a subdirectory, but never for a file in the root of a domain. Can anyone tell me why?

Re: [PHP] Re: remote file time -small issue

2007-02-22 Thread Shafiq Rehman
Hi, Alternatively you can use CURL to get last modification time. study the CURLOPT_HEADERFUNCTION constant for more details. -- Shafiq Rehman (ZCE) http://www.phpgurru.com, http://shafiq.pk On 2/22/07, David Robley [EMAIL PROTECTED] wrote: SJAMHO DBMS wrote: Dear Sirs, I have a

[PHP] Installing Apache + PHP on Windows

2007-02-22 Thread Eli
Hi, I installed apache v2.2.4 and PHP v5.2.1 on Windows XP. I try to use URLs like /info.php/virtual/path but I get error 404 all the time. I've also tried to set AcceptPathInfo for the vhosts directory. Directory /my_vhosts_dir Options Indexes FollowSymLinks AcceptPathInfo On

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-22 Thread Ryan A
Win2000pro and FF works fine... IE6.0 does not work... Hope that helps. Cheers! R Chris Ditty [EMAIL PROTECTED] wrote: Works fine on FF/XP Looks nice btw. (sorry for the dup post Nemeth) On 2/21/07, Németh Zoltán wrote: works on linux/firefox and xp/ie7 greets Zoltán Németh 2007. 02.

[PHP] Re: Installing Apache + PHP on Windows

2007-02-22 Thread Eli
Eli wrote: Hi, I installed apache v2.2.4 and PHP v5.2.1 on Windows XP. I try to use URLs like /info.php/virtual/path but I get error 404 all the time. I've also tried to set AcceptPathInfo for the vhosts directory. Directory /my_vhosts_dir Options Indexes FollowSymLinks

[PHP] registered globals on localhost (apache)

2007-02-22 Thread Ross
I have my RG's switched off in my local .ini but I am tinkering about with oscommerce. php_value register_globals on I tried to change add this line to the .htaccess file in the catalog folder but still gives the error Server Requirement Error: register_globals is disabled in your PHP

[PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
after we (company I work for) mmoved to new hosting company (dedicated server), I requested from them to instal php5 with GDlib to be able play with images. they did. and then yesterday (2 months after we moved) I wasn't able to use ImageCreateFromJpeg() function: Fatal error: Call to undefined

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Brad Bonkoski
Check out... http://www.php.net/gd -B [EMAIL PROTECTED] wrote: after we (company I work for) mmoved to new hosting company (dedicated server), I requested from them to instal php5 with GDlib to be able play with images. they did. and then yesterday (2 months after we moved) I wasn't able to use

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread clive
can somebody point me to the right direction? google? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
Check out... http://www.php.net/gd -B Already did, but didn't find there any answer... :( [EMAIL PROTECTED] wrote: after we (company I work for) mmoved to new hosting company (dedicated server), I requested from them to instal php5 with GDlib to be able play with images. they did. and

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: Check out... http://www.php.net/gd -B Already did, but didn't find there any answer... :( In the Installation section... To enable support for jpeg-6b add --with-jpeg-dir=DIR. And read above on that page, for what may/may not be needed to install this library

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
can somebody point me to the right direction? google? very funny... already was searching google but didn't find anything. yes, I can spend enxt 12 hours searching on google, but isn't easier to ask here after SOME research? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] remote file time -small issue

2007-02-22 Thread Jochem Maas
I'm not your personal help desk - please keep your replies on the list. SJAMHO DBMS wrote: Dear Jochem, I am not able to crack the headers into giving the date. wtf does that mean? the 'root' pages [in question] DONT SEND 'Last-Modified' headers. ergo there is no way to determine when the

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Robert Cummings
On Thu, 2007-02-22 at 15:02 +0100, [EMAIL PROTECTED] wrote: Check out... http://www.php.net/gd -B Already did, but didn't find there any answer... :( [EMAIL PROTECTED] wrote: after we (company I work for) mmoved to new hosting company (dedicated server), I requested from them

[PHP] Enable login prompt with main page of phpmyadmin

2007-02-22 Thread edwardspl
Dear All, I just install the phpMyAdmin 2.9.2 on the Web... So, how to enable the login prompt with the main page ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [BULK] [PHP] Enable login prompt with main page of phpmyadmin

2007-02-22 Thread clive
[EMAIL PROTECTED] wrote: I just install the phpMyAdmin 2.9.2 on the Web... So, how to enable the login prompt with the main page ? Well done, now read there help files! - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] registered globals on localhost (apache)

2007-02-22 Thread Steffen Ebermann
On Thu, Feb 22, 2007 at 01:40:53PM -, Ross wrote: I have my RG's switched off in my local .ini but I am tinkering about with oscommerce. php_value register_globals on I tried to change add this line to the .htaccess file in the catalog folder but still gives the error Server

[PHP] multiple sockets seems problematic

2007-02-22 Thread Bob Dusek
Hello all, I've got a program (program X) that does the following: * opens a socket (socket A) * binds socket A to an address/port (x.x.x.x/1099) * then opens another socket (socket B), * binds socket B to an address/port (x.x.x.x/1100) * calls listen on socket B * launches a second program

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Jochem Maas
[EMAIL PROTECTED] wrote: can somebody point me to the right direction? google? very funny... already was searching google but didn't find anything. yes, I can spend enxt 12 hours searching on google, but isn't easier to ask here after SOME research? run configure with the help option, it

[PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Aaron Gould
I have a script that connects to a networked device via PHP's socket functions. This device accepts proprietary commands (e.g.: KPRINT, as seen below), and returns data. However, this device does not have any sort of EXIT command to end the processing of events. So it essentially loops

Re: [PHP] Enable login prompt with main page of phpmyadmin

2007-02-22 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Dear All, I just install the phpMyAdmin 2.9.2 on the Web... So, how to enable the login prompt with the main page ? phpmyadmin is not affliated with the php project (php is merely the language phpmyadmin is written in). this list is is not here to provide software

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Brad Bonkoski
I think something like this will work for you.. $start_time = time(); ...loop.. if( time() - $start_time 5 ) exit; -B Aaron Gould wrote: I have a script that connects to a networked device via PHP's socket functions. This device accepts proprietary commands (e.g.: KPRINT, as seen below),

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Aaron Gould
I tried this earlier, but it does not seem to work... It appears to just hang when no data is returned from the networked device. It seems as if the loop stops, and is waiting for something. Brad Bonkoski wrote: I think something like this will work for you.. $start_time = time();

[PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread edwardspl
Dear All, Which version of phpmyadmin is suitable for php 5.1.6 ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
There is something I didn't know from begining (sorry for maybe leading you to wrong direction): I though to enable peg/gif/png is part of the php.ini. Actually, this is what has to be done while compiling GDlib? Does GDlib has to be re-compiled to enable jpeg support? Or there is other way?

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Brad Bonkoski
Aaron Gould wrote: I tried this earlier, but it does not seem to work... It appears to just hang when no data is returned from the networked device. It seems as if the loop stops, and is waiting for something. probably blocking on the socket have you tried:

Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread cajbecu
[EMAIL PROTECTED] wrote: Dear All, Which version of phpmyadmin is suitable for php 5.1.6 ? Edward. the latest :) cajb. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Robin Vickery
On 22/02/07, Aaron Gould [EMAIL PROTECTED] wrote: I tried this earlier, but it does not seem to work... It appears to just hang when no data is returned from the networked device. It seems as if the loop stops, and is waiting for something.

Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread edwardspl
cajbecu wrote: [EMAIL PROTECTED] wrote: Dear All, Which version of phpmyadmin is suitable for php 5.1.6 ? Edward. the latest :) cajb. So, Which version no. ?

[PHP] PHP 4.4.6 RC1 Released

2007-02-22 Thread Derick Rethans
Hello! I packed PHP 4.4.6RC1 today, which you can find here: http://downloads.php.net/derick/ This release candidate addresses an issues that unfortunately crept into PHP 4.4.5: - Fixed segfault in ext/session when register_globals=On. (Tony) And some other issues: - Fixed bug #40578

Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread Stut
[EMAIL PROTECTED] wrote: Which version of phpmyadmin is suitable for php 5.1.6 ? Not really listening are you? As you have previously been told, this list is for *general* PHP questions. That's why it's called php-general. Questions relating to phpMyAdmin should be directed towards mailing

RE: [PHP] PHP 4.4.6 RC1 Released

2007-02-22 Thread bruce
hi... just out of curiousity. are these changes also automatically rolled into the php 5.x stream? thanks -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 7:41 AM To: PHP Developers Mailing List; php-general@lists.php.net Subject:

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Jochem Maas
[EMAIL PROTECTED] wrote: There is something I didn't know from begining (sorry for maybe leading you to wrong direction): I though to enable peg/gif/png is part of the php.ini. I can't imagine why you though that - if you look through the ini files that come with php as standard you'll see

RE: [PHP] PHP 4.4.6 RC1 Released

2007-02-22 Thread Derick Rethans
On Thu, 22 Feb 2007, bruce wrote: just out of curiousity. are these changes also automatically rolled into the php 5.x stream? Yes, they will be there as well. However, the session issue is not a problem in that branch. regards, Derick -- PHP General Mailing List (http://www.php.net/) To

[PHP] Safari 2.0.4 / PHP 4.3.7 / Apache 2.0.44 Isuue with HTTP Headers

2007-02-22 Thread Ron Stiemer
Hi everyone, got a really strange thing going on on a client website, the website outputs the whole http headers after every 2nd reload in safari, also in FF on Windows, but only after much much more relaods...here is a scrrenshot: http://www.waldhaeusl.com/downloads/bug/http_header.png any

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Aaron Gould
Thanks very much, I've added stream_set_timeout functionality, and it seems to work very well! For reference, here's the modified script: $fp = fsockopen('192.168.3.25', 10001, $errno, $errstr, 5); if (!$fp) { echo 'Error...'; }

RE: [PHP] Safari 2.0.4 / PHP 4.3.7 / Apache 2.0.44 Isuue with HTTP Headers

2007-02-22 Thread Edward Kay
got a really strange thing going on on a client website, the website outputs the whole http headers after every 2nd reload in safari, also in FF on Windows, but only after much much more relaods...here is a scrrenshot: http://www.waldhaeusl.com/downloads/bug/http_header.png any ideas

Re: [PHP] Safari 2.0.4 / PHP 4.3.7 / Apache 2.0.44 Isuue with HTTP Headers

2007-02-22 Thread Chris Shiflett
Ron Stiemer wrote: the website outputs the whole http headers after every 2nd reload in safari, also in FF on Windows, but only after much much more relaods...here is a scrrenshot: http://www.waldhaeusl.com/downloads/bug/http_header.png You can use something like LiveHTTPHeaders or Firebug

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-22 Thread tedd
At 12:12 PM + 2/21/07, Scott Gunn wrote: All, http://www.thebigspider.co.uk/test/menu.html It doubles up (i.e., two menus appear stacked on one another), but other than that, it works. Mac OS-X 10.4.8 -- Safari 2.0.4 tedd -- --- http://sperling.com http://ancientstones.com

[PHP] can this be fone with PHP?

2007-02-22 Thread Bruce Gilbert
I have created forms with PHP where the information in the fields is sent via sendmail to an email, but is there a way to have the information extracted and a pdf form created when the user hits the submit button? -- ::Bruce:: -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] can this be fone with PHP?

2007-02-22 Thread Jon Anderson
Bruce Gilbert wrote: I have created forms with PHP where the information in the fields is sent via sendmail to an email, but is there a way to have the information extracted and a pdf form created when the user hits the submit button? Yep, probably. See

Re: [PHP] Session problems with 4.4.5?

2007-02-22 Thread steve
Yes... I think the test version of it goes out today. On 2/22/07, alex handle [EMAIL PROTECTED] wrote: On 2/16/07, Jochem Maas [EMAIL PROTECTED] wrote: Ken Williams wrote: Is anyone else having problems with session in 4.4.5? I'm under apache 1.3.27 in linux 2.4.34 and all my web sites

Re: [PHP] Safari 2.0.4 / PHP 4.3.7 / Apache 2.0.44 Isuue with HTTP Headers

2007-02-22 Thread steve
I've see that before. Update the PHP (and Apache while you are at it). Also disable the server from showing the Apache and PHP versions. Why are they broadcasting to the world that they are easy prey to remote exploits? Also check if the server has been compromised. On 2/22/07, Ron Stiemer

[PHP] Re: [PHP-DEV] PHP 4.4.6 RC1 Released

2007-02-22 Thread Edin Kadribasic
Hi, Windows build is available at: http://downloads.php.net/edink/php-4.4.6RC1-Win32.zip Edin Derick Rethans wrote: Hello! I packed PHP 4.4.6RC1 today, which you can find here: http://downloads.php.net/derick/ This release candidate addresses an issues that unfortunately crept into

Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread Jürgen Wind
edwardspl wrote: cajbecu wrote: [EMAIL PROTECTED] wrote: Dear All, Which version of phpmyadmin is suitable for php 5.1.6 ? Edward. the latest :) cajb. So, Which version no. ? next version will come in the next days(hours?) : pma 2.10.0 (not sure if it will work with

[PHP] Capture the whole URL

2007-02-22 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
Hey - - I must be missing something, but in a URL such as: diddly.com?id=fredtotal=goof $_SERVER['PHP-SELF'] gives me the diddley.com part. I want to capture the whole URL. The documentation makes it seem like $_SERVER['REQUEST_URI'] is supposed to do that, but I get an Undefined Index

Re: [PHP] Capture the whole URL

2007-02-22 Thread Jochem Maas
Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: Hey - - I must be missing something, but in a URL such as: diddly.com?id=fredtotal=goof $_SERVER['PHP-SELF'] gives me the diddley.com part. I want to capture the whole URL. The documentation makes it seem like

[PHP] Is php_manual_prefs.exe broken?

2007-02-22 Thread Daevid Vincent
I downloaded this full package... http://us2.php.net/get/php_manual_chm.zip/from/a/mirror And replaced the core .chm file from here: http://us2.php.net/get/php_manual_en.chm/from/a/mirror No matter what setting I select for the skin in php_manual_prefs.exe, it doesn't seem to change when I click

[PHP] PHP + SQL..

2007-02-22 Thread Liz Kim
I am storing a lot of text into my mssql database. Are there any special characters I should watch out for? I think so far I've got ' covered. Also, when I retrieved the string later on... The ' is printed out with a \ in the front. How do I get rid of the \? When I try to get a really long

Re: [PHP] PHP + SQL..

2007-02-22 Thread Robert Cummings
On Thu, 2007-02-22 at 17:53 -0800, Liz Kim wrote: I am storing a lot of text into my mssql database. Are there any special characters I should watch out for? I think so far I've got ' covered. Skip the guesswork and use an appropriate quoting mechanism for your database -- that said I'm not

Re: [PHP] can this be fone with PHP?

2007-02-22 Thread tedd
At 2:59 PM -0500 2/22/07, Bruce Gilbert wrote: I have created forms with PHP where the information in the fields is sent via sendmail to an email, but is there a way to have the information extracted and a pdf form created when the user hits the submit button? -- ::Bruce:: Sure -- see:

Re: [PHP] Capture the whole URL

2007-02-22 Thread tedd
At 4:26 PM -0600 2/22/07, Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: Hey - - I must be missing something, but in a URL such as: diddly.com?id=fredtotal=goof $_SERVER['PHP-SELF'] gives me the diddley.com part. I want to capture the whole URL. The documentation makes it seem like

Re: [PHP] Capture the whole URL

2007-02-22 Thread Jim Lucas
Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: Hey - - I must be missing something, but in a URL such as: diddly.com?id=fredtotal=goof First of forgoing the http:// missing, this still isn't a qualified URL you are missing the / after the .com. echo $_SERVER['REQUEST_URI']; and see

[PHP] Re: Capture the whole URL

2007-02-22 Thread Haydar Tuna
Hello, URL consist of two part HOST and URI respectivetely. HOST part likes example www.domain.com . URI part likes main.php?id=5 and so on. You can get the HOST part of URL with $HTTP_HOST and URI part of URL with $REQUEST_URI.:) -- Haydar TUNA Republic Of Turkey - Ministry of

[PHP] Re: can this be fone with PHP?

2007-02-22 Thread Haydar Tuna
Hello, You can use the fpdf free package. I have used this PDF package in my many project. It's very easy to use and free:) www.fpdf.org -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net Bruce

[PHP] Re: Enable login prompt with main page of phpmyadmin

2007-02-22 Thread Haydar Tuna
Hello, Firstly, you should create a configuration file for your phpMyAdmin administration web site. If you extract phpMyAdmin in your htdocs folder, you will create easily configuration file to enter the phpMyAdmin web site on your localhost. (for example http://localhost/phpmyadmin/)

[PHP] Re: JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Haydar Tuna
Hello, Firstly, you should download latest GD library and Jpeg library and then you should compile your GD with jpeg enabled option and then compile jpeg. After this step, you can compile Apache and PHP. In PHP installation, you should use such as --with-gd=/usr/local option for gd