Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
Robert Filipovich wrote: I am using a chat program and trying to call the status page from another server and the graphic that the page returns does not show up. It works if you are calling from the webserver that the chat program is working so i feel it is some type of config problem or

Re: [PHP] Converting characters

2006-05-18 Thread Martin Alterisio
2006/5/17, Jonas Rosling [EMAIL PROTECTED]: Hi, the PHP newbie is here again asking questions. Is there anyway in PHP to convert none international characters so the are displayed correct? In my case I have lots of data in the database with å,ä and ö. Thanks // Jonas -- PHP General Mailing

[PHP] [Repost] Getting rid of Web page has expired (POSTDATA error)

2006-05-18 Thread Nicolas Verhaeghe
I am having an issue with certain pages preventing the user from going back to the previous page. The message given by Firefox is: The page you are trying to view contains PSTDATA that has expired from cache. This happens in the case of an HTML form using the POST method but also a query

Re: [PHP] [Repost] Getting rid of Web page has expired (POSTDATA error)

2006-05-18 Thread Chris
Nicolas Verhaeghe wrote: I am having an issue with certain pages preventing the user from going back to the previous page. The message given by Firefox is: The page you are trying to view contains PSTDATA that has expired from cache. This has been discussed a lot in the past. Check the

[PHP] Pictures and caches

2006-05-18 Thread Gustav Wiberg
Hi! The thing I want to do is to copy a picturefile to another picturefile. The thing is that I want to copy this file, show it , and then delete it (when it has been shown) .Is this possible? I want to do this, because of avoiding problems with cache when uploading file through an

[PHP] PEAR Algorithms/Containers

2006-05-18 Thread Andrew Brampton
Hi, In the past few weeks I've found the need for a hash table and a container that gives me O(log) search efficiency. Now I'm aware I can use associative arrays for my hash table, but I wanted to ensure efficiency. For my O(log) container I ended up using a sorted array, and a binary search

[PHP] Range mktime?

2006-05-18 Thread Gustav Wiberg
Hi I wondew which range the mktime has? (in digits) In my case it always start with 1. something like 1147951344 Is this ALWAYS TRUE (that it would start with 1) Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Range mktime?

2006-05-18 Thread Barry
Gustav Wiberg schrieb: Hi I wondew which range the mktime has? (in digits) In my case it always start with 1. something like 1147951344 Is this ALWAYS TRUE (that it would start with 1) Best regards /Gustav Wiberg mktime is giving you the time in seconds since 1st april 1970 So no. It's not

Re: [PHP] Re: Range mktime?

2006-05-18 Thread Gustav Wiberg
- Original Message - From: Barry [EMAIL PROTECTED] To: php-general@lists.php.net; Gustav Wiberg [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Sent: Thursday, May 18, 2006 1:45 PM Subject: [PHP] Re: Range mktime? Gustav Wiberg schrieb: Hi I wondew which range the

RE: [PHP] Add Multiple Items, Qty to Cart from html form

2006-05-18 Thread Andras Kende
-Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 9:47 PM To: Andras Kende Cc: php-general@lists.php.net Subject: Re: [PHP] Add Multiple Items, Qty to Cart from html form Andras, input type=hidden name=item[] value=applesApples input type=text

Re: [PHP] Add Multiple Items, Qty to Cart from html form

2006-05-18 Thread Jochem Maas
Wolf wrote: Andras, input type=hidden name=item[] value=applesApples input type=text name=qty[] value=0 input type=text name=price[] value=0 a useful addition can be to use the item id in the 'key' of the input names (and always quoting your element attributes is highly recommended): input

Re: [PHP] PEAR Algorithms/Containers

2006-05-18 Thread Jochem Maas
Andrew Brampton wrote: Hi, In the past few weeks I've found the need for a hash table and a container that gives me O(log) search efficiency. Now I'm aware I can use associative arrays for my hash table, but I wanted to ensure efficiency. For my O(log) container I ended up using a sorted

Re: [PHP] Add Multiple Items, Qty to Cart from html form

2006-05-18 Thread Wolf
SNIP a useful addition can be to use the item id in the 'key' of the input names (and always quoting your element attributes is highly recommended): Yes, when I generate my cart I use the itemID as a key field (since the ID stayed the same but the # in the database could change). And ALWAYS

Re: [PHP] PEAR Algorithms/Containers

2006-05-18 Thread tedd
At 11:41 AM +0100 5/18/06, Andrew Brampton wrote: Hi, In the past few weeks I've found the need for a hash table and a container that gives me O(log) search efficiency. Now I'm aware I can use associative arrays for my hash table, but I wanted to ensure efficiency. For my O(log) container I

Re: [PHP] PEAR Algorithms/Containers

2006-05-18 Thread Robert Cummings
On Thu, 2006-05-18 at 06:41, Andrew Brampton wrote: Hi, In the past few weeks I've found the need for a hash table and a container that gives me O(log) search efficiency. Now I'm aware I can use associative arrays for my hash table, but I wanted to ensure efficiency. For my O(log)

[PHP] What's this in my dir list?

2006-05-18 Thread tedd
Hi Gang: When I list one of my directories, via: echo(pre); system(ls -l); echo(/pre); I get: -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif -rw-r--r-- 1 ancientstones psacln 2090 May 14 10:10 as.css -rw-r--r-- 1 ancientstones psacln 658 May 2 14:59 big_m.php

[PHP] Re: What's this in my dir list?

2006-05-18 Thread Barry
tedd schrieb: Hi Gang: When I list one of my directories, via: echo(pre); system(ls -l); echo(/pre); I get: -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif -rw-r--r-- 1 ancientstones psacln 2090 May 14 10:10 as.css -rw-r--r-- 1 ancientstones psacln 658 May 2

Re: [PHP] What's this in my dir list?

2006-05-18 Thread cajbecu
yup, psacln is the group of the user ancientstones who`s owner of the files. tedd wrote: Hi Gang: When I list one of my directories, via: echo(pre); system(ls -l); echo(/pre); I get: -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif -rw-r--r-- 1

Re: [PHP] Warning: chmod(): Operation not permitted ?

2006-05-18 Thread John Nichel
tedd wrote: At 11:18 AM -0400 5/17/06, John Nichel wrote: tedd wrote: Hi (please insert your preference): This should be simple, but I'm having problems. I have a program that uploads an image file and then tries to set the permissions for the image (to be altered later). However, I get a

Re: [PHP] What's this in my dir list?

2006-05-18 Thread John Nichel
tedd wrote: Hi Gang: When I list one of my directories, via: echo(pre); system(ls -l); echo(/pre); I get: -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif -rw-r--r-- 1 ancientstones psacln 2090 May 14 10:10 as.css -rw-r--r-- 1 ancientstones psacln 658 May 2 14:59

RE: [PHP] [Repost] Getting rid of Web page has expired (POSTDATAerror)

2006-05-18 Thread Nicolas Verhaeghe
I have searched and not found... -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 1:21 AM To: Nicolas Verhaeghe Cc: php-general@lists.php.net Subject: Re: [PHP] [Repost] Getting rid of Web page has expired (POSTDATAerror) Nicolas Verhaeghe wrote:

Re: [PHP] [Repost] Getting rid of Web page has expired (POSTDATAerror)

2006-05-18 Thread chris smith
On 5/19/06, Nicolas Verhaeghe [EMAIL PROTECTED] wrote: I have searched and not found... http://marc.theaimsgroup.com/?t=10980586931r=1w=2 http://marc.theaimsgroup.com/?t=10751522972r=1w=2 http://marc.theaimsgroup.com/?t=10620110712r=1w=2 -- Postgresql php tutorials

Re: [PHP] Getting rid of Web page has expired (POSTDATA error)

2006-05-18 Thread Chris Shiflett
I wrote an article on this subject that might help: http://shiflett.org/articles/guru-speak-nov2004 Chris -- Chris Shiflett Principal, OmniTI http://omniti.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] LDAP Query

2006-05-18 Thread php
Our organization is migrating away from Novell E-directory to MS Active Directory. I have a php class that allows me to run various queries on our e-directory ldap server which I am working to convert to AD. However, I'm running into an error that i cannot figure out. I have updated the

Re: [PHP] What's this in my dir list?

2006-05-18 Thread tedd
At 10:58 AM -0400 5/18/06, John Nichel wrote: tedd wrote: Hi Gang: When I list one of my directories, via: echo(pre); system(ls -l); echo(/pre); I get: -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif -rw-r--r-- 1 ancientstones psacln 2090 May 14 10:10 as.css

Re: [PHP] Warning: chmod(): Operation not permitted ?

2006-05-18 Thread tedd
File permissions is beyond the scope of this mailing list. You need to buy a book, research on the web, etc., on *nix system administration, and concentrate on the filesystem/security/permissions sections, and the section on how apps/daemons operate. -- John C. Nichel IV John: My

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
John Hicks wrote: Robert Filipovich wrote: I am using a chat program and trying to call the status page from another server and the graphic that the page returns does not show up. It works if you are calling from the webserver that the chat program is working so i feel it is some type of

Re: [PHP] Warning: chmod(): Operation not permitted ?

2006-05-18 Thread John Nichel
tedd wrote: File permissions is beyond the scope of this mailing list. You need to buy a book, research on the web, etc., on *nix system administration, and concentrate on the filesystem/security/permissions sections, and the section on how apps/daemons operate. -- John C. Nichel IV

RE: [PHP] Warning: chmod(): Operation not permitted ?

2006-05-18 Thread tedd
At 5:11 PM -0600 5/17/06, Brady Mitchell wrote: chmod() can only change the permissions of files that are owned by the user running the command. In most cases, this is the user that the web server runs on. That confuses me, because who's the user here? Is it just the system administrator

Re: [PHP] Pictures and caches

2006-05-18 Thread Eric Butera
On 5/18/06, Gustav Wiberg [EMAIL PROTECTED] wrote: Hi! The thing I want to do is to copy a picturefile to another picturefile. The thing is that I want to copy this file, show it , and then delete it (when it has been shown) .Is this possible? I want to do this, because of avoiding problems

Re: [PHP] What's this in my dir list?

2006-05-18 Thread Jochem Maas
tedd wrote: At 10:58 AM -0400 5/18/06, John Nichel wrote: tedd wrote: Hi Gang: When I list one of my directories, via: echo(pre); system(ls -l); echo(/pre); I get: -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif -rw-r--r-- 1 ancientstones psacln 2090 May 14

Re: [PHP] Pictures and caches

2006-05-18 Thread Stut
Eric Butera wrote: On 5/18/06, Gustav Wiberg [EMAIL PROTECTED] wrote: I had to do something similar to keep a javascript file from being cached by an aol proxy. Heres a simple example that you could change to suit your needs by changing the js to something like image.php and making it send

RE: [PHP] LDAP Query

2006-05-18 Thread php
For anyone interested: after some furhter troubleshooting, I found the error. The password I was passing was incorrect. What I found interesting is that even though the password was incorrect, the bind function still worked. I'm thinking that it logged me in as anonymous at that stage. Our

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
Please reply to the list. Robert Filipovich wrote: I got this in the event viewer when I enabled suslogging. The description for Event ID ( 2000 ) in Source ( php ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages

[PHP] Re: [Repost] Getting rid of Web page has expired (POSTDATA Error)

2006-05-18 Thread Robert Samuel White
You might want to modify your coding. The way I prevent this problem from ever happening is this: 1. The user completes information on the form. 2. The form is validated by PHP. 3. If there are errors, then the form is reshown with their values populated. 4. Once all errors are

[PHP] Re: PHP and mySQL getting smashed...

2006-05-18 Thread Robert Samuel White
Upgrade your MySQL distribution to the latest version (5+). Upgrade any shared MySQL libraries to the latest distribute. Recompile MySQL with mysqli support. http://php.net/mysqli And use that instead of the regular MySQL functions. That's what I did and it has made a huge

[PHP] Debug/Learn Recursion of an Object

2006-05-18 Thread Graham Anderson
I am a bit new to Objects and Recursion Any push in the right direction is appreciated Generated from Pear's mimedecode, I have an object whose print_r is: http://www.siren.cc/dev/object.txt The function below will correctly traverse the object and find the 'correct' node. Unfortunately, it

[PHP] Object Array?

2006-05-18 Thread Jay Paulson
I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count

Re: [PHP] Object Array?

2006-05-18 Thread Robert Cummings
On Thu, 2006-05-18 at 14:25, Jay Paulson wrote: I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I

Re: [PHP] Debug/Learn Recursion of an Object

2006-05-18 Thread Robert Cummings
On Thu, 2006-05-18 at 14:11, Graham Anderson wrote: I am a bit new to Objects and Recursion Any push in the right direction is appreciated Generated from Pear's mimedecode, I have an object whose print_r is: http://www.siren.cc/dev/object.txt The function below will correctly traverse

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread Robert Filipovich
Looks like all of these are happening. The description for Event ID ( 2000 ) in Source ( php ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event:

Re: [PHP] Object Array?

2006-05-18 Thread John Hicks
Jay Paulson wrote: I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count function to see how big it is and loop through it) This below should be

[PHP] Re: Object Array?

2006-05-18 Thread Daniel Orner
Try using var_dump rather than print_r... maybe it'll give you more accurate data (e.g. to figure out if it's an object, as Rob said, or an array). --Daniel Jay Paulson wrote: I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using

[PHP] $_SERVER['REMOTE_ADDR'] arriving in IPv6

2006-05-18 Thread Marcus Bointon
I'm running PHP 5.1.4 on OS X. When I look at $_SERVER ['REMOTE_ADDR'], it seems to contain an ipv6 address rather than an ipv4 one (at present it's giving me 'fe80::1' instead of the usual dotted quad), and that confuses the hell out of things like MySQL's INET_ATON() function. I have ipv6

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
Robert Filipovich wrote: Looks like all of these are happening. The description for Event ID ( 2000 ) in Source ( php ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following

[PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner
I apologize if this was already posted, but I didn't see it go through. I'd like to announce the first release of Sparse, a new way to create MySQL programs without actually programming anything! Sparse takes care of handling the SQL data, navigation, displaying errors, input

Re: [PHP] Re: Object Array?

2006-05-18 Thread Jay Paulson
This keeps getting stranger and stranger. I did the var_dump and I got this for R: [R]= array(10) { So it's an array but when I pass it through is_array it says it's not an array. However, when I pass it through is_object it says it's an object?! On 5/18/06 2:18 PM, Daniel Orner [EMAIL

Re: [PHP] Object Array?

2006-05-18 Thread Jay Paulson \(CE CEN\)
I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count function to see how big it is and loop through it) This below should be an array:

Re: [PHP] Object Array?

2006-05-18 Thread Jochem Maas
don't bother trying to print_r() or var_dump() SimpleXML objects you'll fry your brain - seriously you'll never get anything that makes sense - this is due to the way simpleXML using iterators or something like that - it's a bit like voodoo to me too so I find it hard to explain. I'm sure there

Re: [PHP] Object Array?

2006-05-18 Thread Jay Paulson
don't bother trying to print_r() or var_dump() SimpleXML objects you'll fry your brain - seriously you'll never get anything that makes sense - this is due to the way simpleXML using iterators or something like that - it's a bit like voodoo to me too so I find it hard to explain. I'm

Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Jochem Maas
Daniel Orner wrote: I apologize if this was already posted, but I didn't see it go through. I'd like to announce the first release of Sparse, a new way to create MySQL programs without actually programming anything! Sparse takes care of handling the SQL data, navigation, displaying

Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner
I haven't been able to install PHP5 on my own server, so I don't know for sure, but I can't think of any reason why it wouldn't. 8-) Part of why I need beta testers. --Daniel does it run on php5? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Object Array?

2006-05-18 Thread Jochem Maas
Jay Paulson wrote: don't bother trying to print_r() or var_dump() SimpleXML objects you'll fry your brain - seriously you'll never get anything that makes sense - this is due to the way simpleXML using iterators or something like that - it's a bit like voodoo to me too so I find it hard to

RE: [PHP] Re: [Repost] Getting rid of Web page has expired (POSTDATA Error)

2006-05-18 Thread Nicolas Verhaeghe
Robert Samuel White wrote: You might want to modify your coding. The way I prevent this problem from ever happening is this: 1. The user completes information on the form. 2. The form is validated by PHP. 3. If there are errors, then the form is reshown with their values

Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Robert Cummings
On Thu, 2006-05-18 at 15:52, Daniel Orner wrote: I haven't been able to install PHP5 on my own server, so I don't know for sure, but I can't think of any reason why it wouldn't. 8-) Part of why I need beta testers. That's ok PHP5 is a fringe community *lol*. Although I may switch now

Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Jochem Maas
Daniel Orner wrote: I haven't been able to install PHP5 on my own server, so I don't er why not? just install a second copy of php into a custom (e.g. your homedir) dir and use that - check the archives for Rasmus' quick guide to setting up a second apache/php installation. know for

Re: [PHP] Object Array?

2006-05-18 Thread Jay Paulson \(CE CEN\)
I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count

Re: [PHP] $_SERVER['REMOTE_ADDR'] arriving in IPv6

2006-05-18 Thread Stut
Marcus Bointon wrote: I'm running PHP 5.1.4 on OS X. When I look at $_SERVER['REMOTE_ADDR'], it seems to contain an ipv6 address rather than an ipv4 one (at present it's giving me 'fe80::1' instead of the usual dotted quad), and that confuses the hell out of things like MySQL's INET_ATON()

Re: [PHP] Object Array?

2006-05-18 Thread Jochem Maas
Jay Paulson (CE CEN) wrote: ... what happens when you do: foreach ($xml-RES-R as $key = $r) { echo $r-__toString(); // or echo $key; } ? That actually works. Strange because I tried this method first yesterday and spent over an hour trying to get it to work and now it's working? AH! :)

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread Stut
John Hicks wrote: Robert Filipovich wrote: Looks like all of these are happening. The description for Event ID ( 2000 ) in Source ( php ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.

RE: [PHP] Re: [Repost] Getting rid of Web page has expired (POSTDATA Error)

2006-05-18 Thread Nicolas Verhaeghe
Robert Samuel White wrote: You might want to modify your coding. The way I prevent this problem from ever happening is this: 1. The user completes information on the form. 2. The form is validated by PHP. 3. If there are errors, then the form is reshown with their values

RE: [PHP] Re: [Repost] Getting rid of Web page has expired (POSTDATA Error)

2006-05-18 Thread Robert Samuel White
[SNIP] Now one thing bothers me: how do you redirect in step 4 if you have shown the form in step 3? How do you avoid a Cannot modify header information - headers already sent by ... error message? Nicolas Verhaeghe E-mail: [EMAIL PROTECTED] Phone: 602-490-8000 [/SNIP] Nicholas, As long

Re: [PHP] Debug/Learn Recursion of an Object

2006-05-18 Thread Graham Anderson
I got it :) just put a print_r at each step of the function like: print_r($part-$parts); thanks g On May 18, 2006, at 11:59 AM, Robert Cummings wrote: On Thu, 2006-05-18 at 14:11, Graham Anderson wrote: I am a bit new to Objects and Recursion Any push in the right direction is

Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner
Well... okay, I'll be honest, I never really *wanted* to install it. 8-) And I'm not exactly a server guru (even updating PHP4 proved to be too much for me... for some reason a bunch of dependencies which were fine when I got the server no longer work). er why not? just install a second copy

RE: [PHP] Re: [Repost] Getting rid of Web page has expired (POSTDATA Error)

2006-05-18 Thread Nicolas Verhaeghe
Robert Samuel White wrote: [SNIP] Now one thing bothers me: how do you redirect in step 4 if you have shown the form in step 3? How do you avoid a Cannot modify header information - headers already sent by ... error message? Nicolas Verhaeghe E-mail: [EMAIL PROTECTED] Phone:

Re: [PHP] Re: [Repost] Getting rid of Web page has expired (POSTDATA Error)

2006-05-18 Thread Chris Shiflett
Nicolas Verhaeghe wrote: Indeed but you specify that you reshow the form and then redirect... Actually, he said: If there are errors, then the form is reshown with their values populated. His code from above that matches this statement is: if (!$form_passes_validation) In his example and

Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 2:29 pm, Daniel Orner wrote: I'd like to announce the first release of Sparse, a new way to create MySQL programs without actually programming anything! Sparse LOL! This is really nice -- though what I find amusing is that, in many ways, it seems to me to reflect the

Re: [PHP] $_SERVER['REMOTE_ADDR'] arriving in IPv6

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 2:22 pm, Marcus Bointon wrote: I'm running PHP 5.1.4 on OS X. When I look at $_SERVER ['REMOTE_ADDR'], it seems to contain an ipv6 address rather than an ipv4 one (at present it's giving me 'fe80::1' instead of the usual dotted quad), and that confuses the hell out of

Re: [PHP] Object Array?

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 1:25 pm, Jay Paulson wrote: I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore

Re: [PHP] Re: Object Array?

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 2:18 pm, Daniel Orner wrote: Try using var_dump rather than print_r... maybe it'll give you more accurate data (e.g. to figure out if it's an object, as Rob said, or an array). Or not, as it seems to not be very helpful when the object is an iterator whatever that

Re: [PHP] Object Array?

2006-05-18 Thread Jochem Maas
Richard Lynch wrote: On Thu, May 18, 2006 1:25 pm, Jay Paulson wrote: I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an

Re: [PHP] Range mktime?

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 6:30 am, Gustav Wiberg wrote: I wondew which range the mktime has? (in digits) In my case it always start with 1. something like 1147951344 Is this ALWAYS TRUE (that it would start with 1) No. 0 1/1/1970 midnight 1 1/1/1970 one second after midnight 2 1/1/1970 two

Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner
Richard Lynch wrote: On Thu, May 18, 2006 2:29 pm, Daniel Orner wrote: I'd like to announce the first release of Sparse, a new way to create MySQL programs without actually programming anything! Sparse LOL! This is really nice -- though what I find amusing is that, in many ways, it

Re: [PHP] PEAR Algorithms/Containers

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 8:57 am, tedd wrote: However, binary-trees are for searching and I use MySQL for that. I don't know specifically how MySQL preforms searches. I had hoped that somewhere one could set a bit and change the algorithms, but I haven't been able to find any references that allow

Re: [PHP] Pictures and caches

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 3:25 am, Gustav Wiberg wrote: The thing I want to do is to copy a picturefile to another picturefile. That's what you THINK you want to do... The thing is that I want to copy this file, show it , and then delete it (when it has been shown) .Is this possible? You're

Re: [PHP] Add Multiple Items, Qty to Cart from html form

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 6:59 pm, Andras Kende wrote: I trying to add multiple items to a shopping cart with selectable quantity and price form text field like.. apple : qty: [__] price: [__] orange : qty: [__] price: [__] apple : qty: input name=quantity[apple] / price: input

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread Richard Lynch
You could claim that your error_reporting including E_NOTICE is the problem... But it would be FAR more correct to say that your code has errors of level E_NOTICE, and you've never fixed them before. Fix them. On Thu, May 18, 2006 2:09 pm, Robert Filipovich wrote: Looks like all of these are

Re: [PHP] $_SERVER['REMOTE_ADDR'] arriving in IPv6

2006-05-18 Thread Marcus Bointon
On 18 May 2006, at 21:11, Stut wrote: The value in that variable is coming from the web server not PHP. I suggest you change the web server configuration so it's listening on specific v4 IPs only rather than all IPs. See the docs for your web server for details on how to do that. Yup,

Re: [PHP] Handling Large Check Box Data

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 1:21 pm, Rahul S. Johari wrote: I¹m a little confused as to what¹s the best way to handle this. I have a form which, apart from lots of other fields, has a set of 25 ­ 30 Check Boxes, each of which asks the user for some kind of information which the user can check or

Re: [PHP] Fast search

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 11:37 am, René Fournier wrote: Looking for suggestions on the most compute-efficient way to search variable-length strings (~200 characters) for the occurrence of one of about 100 possible needles. In other words: $needles = array ( 1 = Hello Jim , 2 = Yellow Banana , 3 =

Re: [PHP] Warning: chmod(): Operation not permitted ?

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 10:01 am, tedd wrote: I have a program that uploads an image file and then tries to set the permissions for the image (to be altered later). However, I get a Warning: chmod(): Operation not permitted error when trying to set the permission, what gives? If my program

Re: [PHP] Warning: chmod(): Operation not permitted ?

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 6:01 pm, tedd wrote: chmod($url, 0755); //where $url is the file I want to change. If $url is an actual URL to the file, with http:// in the front, you almost for sure cannot chmod that... You have to chmod it as a FILE in the file-system. That confuses me, because who's

Re: [PHP] Warning: chmod(): Operation not permitted ?

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 10:50 am, tedd wrote: File permissions is beyond the scope of this mailing list. You need to buy a book, research on the web, etc., on *nix system administration, and concentrate on the filesystem/security/permissions sections, and the section on how apps/daemons operate.

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 11:29 am, Jason Wong wrote: On Tuesday 16 May 2006 07:45, Richard Lynch wrote: On Mon, May 15, 2006 1:58 am, Jason Wong wrote: 2) the uploaded file is a script (perl/php/python/etc) In the case of (2), if the script relies on its shebang line to execute Not

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 11:40 am, Richard Collyer wrote: Richard Lynch wrote: On Mon, May 15, 2006 1:58 am, Jason Wong wrote: 2) the uploaded file is a script (perl/php/python/etc) In the case of (2), if the script relies on its shebang line to execute Not necessarily -- What if I upload an

Re: [PHP] PHP and mySQL getting smashed...

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 6:55 am, Russell Jones wrote: I have a site that is getting 30K+ traffic daily and it is smashing mySQL - any ideas on what to do to make the mysql connections more efficient, or anything in general. No bandwidth issue here, just the server getting killed. It depends on

Re: [PHP] Converting characters

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 6:13 am, Jonas Rosling wrote: the PHP newbie is here again asking questions. Is there anyway in PHP to convert none international characters so the are displayed correct? In my case I have lots of data in the database with å,ä and ö. E. Since those probably ARE the

Re: [PHP] Narorwed down my problem to one statement:

2006-05-18 Thread Richard Lynch
On Tue, May 16, 2006 11:38 pm, John Meyer wrote: $sql = INSERT INTO BOOKS(CopyrightYear,CoverType,DatePurchased,EditionNumber,ISBNNumber,Notes,Pages,Publisher,LOCNumber) VALUES(\ . $_POST[copyrightyear] . \,\ . $_POST[covertype] . \,\ . $_POST[datepurchased] . \, . $_POST[editionnumber] . ,\

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
Stut wrote: John Hicks wrote: Robert Filipovich wrote: Looks like all of these are happening. The description for Event ID ( 2000 ) in Source ( php ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread Robert Filipovich
This worked. Thanks, Robert On 5/18/06, Stut [EMAIL PROTECTED] wrote: John Hicks wrote: Robert Filipovich wrote: Looks like all of these are happening. The description for Event ID ( 2000 ) in Source ( php ) cannot be found. The local computer may not have the necessary registry

[PHP] Session Not Being Passed?

2006-05-18 Thread Mark Sargent
Hi All, I have this code, ?php setcookie('username', 'Joe', time()+60); session_start(); $_SESSION['authuser']=1; ? !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta content=text/html; charset=UTF-8 http-equiv=content-type titleMovie 1/title /head body ?php

RE: [PHP] Session Not Being Passed?

2006-05-18 Thread Jay Blanchard
[snip] which points to this page, ?php session_start; //Check the user has logged in with a valid password if ($_SESSION['authuser']!=1) { echo Sorry, you're not authorized to access this page; exit(); } ? [/snip] You forgot the parentheses after session_start(); (Assuming that

[PHP] Wikimedia - cookies

2006-05-18 Thread Christopher
I've built a front-end to display information from a wikimedia database that uses Text_Wiki and Text_Wiki_Mediawiki, but I can't seem to figure out how the wiki keeps track of its cookies and such. I would like to expand this to front-end so if it can pick up someone has logged into the

Re: [PHP] Wikimedia - cookies

2006-05-18 Thread Chris
Christopher wrote: I've built a front-end to display information from a wikimedia database that uses Text_Wiki and Text_Wiki_Mediawiki, but I can't seem to figure out how the wiki keeps track of its cookies and such. I would like to expand this to front-end so if it can pick up someone has

Re: [PHP] Session Not Being Passed?

2006-05-18 Thread Mark Sargent
Jay Blanchard wrote: [snip] which points to this page, ?php session_start; //Check the user has logged in with a valid password if ($_SESSION['authuser']!=1) { echo Sorry, you're not authorized to access this page; exit(); } ? [/snip] You forgot the parentheses after

[PHP] Extensions Directory (PEAR/PECL)

2006-05-18 Thread Robert Samuel White
Please let me know if this would be more appropriate to post in a PEAR or PECL forum. Today, I've been trying to install some extensions - in particular, the GD library and the ZIP library. I've finally managed to get it all working, but there was one issue that I'd like to clear up for future

Re: [PHP] Wikimedia - cookies

2006-05-18 Thread Chris Rukas
Hmm, didn't think about it until you said database, but storing an RSS feed in mysql woudl probably be easier than parsing an xml file.. :) Thanks And downloaded wikimedia from wikimedia.com :p Not much help there from what I can get, but I'll try some more. :) Thanks again. -- PHP

Re: [PHP] Wikimedia - cookies

2006-05-18 Thread Chris
Chris Rukas wrote: I'm not sure where I should go for wiki community though :-\. I wanted to try and contact the Text_Wiki or the Text_Wiki_Mediawiki or the Yawiki guy(I think the same as the Text_Wiki) for this information but PEAR said talk on this channel. Any recomendations on where I

Re: [PHP] Wikimedia - cookies

2006-05-18 Thread Richard Lynch
On Thu, May 18, 2006 10:39 pm, Christopher wrote: I've built a front-end to display information from a wikimedia database that uses Text_Wiki and Text_Wiki_Mediawiki, but I can't seem to figure out how the wiki keeps track of its cookies and such. I would like to expand this to front-end so