Re: [PHP] Controling buffer: php/smarty or apache?

2006-01-23 Thread robert mena
Hi David, Thanks for the reply. I am aware of this 'browser' issue but it seems that it's not the case. I'll look again but since I do not use tables only divs/css I am running out of option on the html site. On 1/22/06, David Tulloh [EMAIL PROTECTED] wrote: The browsers use a whole bunch of

Re: [PHP] Re: Managing sessions...

2006-01-23 Thread David BERCOT
Hi, OK. I have many answers about managing sessions and I thank everyone. The best solution seems to be the inclusion of a file... But, I have just another question about all the options I have to put in this file... Is it necessary to do all of this (sorry for my commentaries which are in

Re: [PHP] php5 iterate an object

2006-01-23 Thread Jochem Maas
Henrik Gemal wrote: I have an object that looks like this: Test Object the class Test must implement 'Iterator' e.g. class Test implements Iterator { /* * Iterator methods */ public function rewind(){} public function current(){} public function valid(){}

[PHP] Re: Can PHP works with telnet?

2006-01-23 Thread HoWang Wang
Hi, It's me again. I have take a look on http://www.geckotribe.com/php-telnet/ , but I think the codes are not friendly to me. So I create my own telnet class for my program. I'm going to post it here for reference. But it is made just for my program so you may have difficulty when you try to

[PHP] Php4 with mysql flag

2006-01-23 Thread Markus Braun
Hello together, how can i activate php with mysql. At the moment my php info told me, without mysql. I have installed it with apt-get install php4 php4-mysql I have also debian sarge version. Can somebody help me? Thanks marcus

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread David Grant
Markus, Markus Braun wrote: I have installed it with apt-get install php4 php4-mysql I think you'll need libapache-mod-php4 too (p.d.o is down at the moment, so can't be sure), as well as the mysql-server and mysql-client packages. David -- David Grant http://www.grant.org.uk/

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread Markus Braun
I think you'll need libapache-mod-php4 too (p.d.o is down at the moment, so can't be sure), as well as the mysql-server and mysql-client packages. The output of libapache2-mod-php4 is: Reading Package Lists... Building Dependency Tree... libapache2-mod-php4 is already the newest version. 0

[PHP] Re: PHP SSH2

2006-01-23 Thread Vedanta Barooah
On 1/23/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, this is in regard to PECL ssh2 ( http://pecl.php.net/package/ssh2 ) : how to i print the output of the command executed using ssh2_exec? thanks, vedanta -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! -

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread David Grant
Markus, Markus Braun wrote: libapache2-mod-php4 is already the newest version. mysql-server is already the newest version. mysql-client is already the newest version. That should be all you need then. Have you restarted apache yet? David -- David Grant http://www.grant.org.uk/

Re: [PHP] Re: PHP SSH2

2006-01-23 Thread David Grant
Vedanta, I recommend contacting the author of the package, or posting to pecl-dev. David Vedanta Barooah wrote: On 1/23/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, this is in regard to PECL ssh2 ( http://pecl.php.net/package/ssh2 ) : how to i print the output of the command

[PHP] Search files in a directory!

2006-01-23 Thread Nicholas Couloute
I want to setup a search box that will search all the filenames in a given directory for the keyword provided by the user and display all the files that have that keyword? how would I do this? at least the searching part? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP

[PHP] Re: Search files in a directory!

2006-01-23 Thread Barry
Nicholas Couloute wrote: I want to setup a search box that will search all the filenames in a given directory for the keyword provided by the user and display all the files that have that keyword? how would I do this? at least the searching part? ~Nick Couloute co-owner/Web Designer

[PHP] issue with newsgroups server

2006-01-23 Thread Alain Roger
Hi, I have a very long timeout when i try to use the news.php.net server. moreover, my posted messages are not displayed. Could someone help me please ? thanks a lot, Alain

[PHP] hiding the index.php page.

2006-01-23 Thread Gregory Machin
Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web

[PHP] Re: hiding the index.php page.

2006-01-23 Thread Barry
Gregory Machin wrote: Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za

[PHP] secure logon php page

2006-01-23 Thread Alain Roger
Hi, I would like to write a secured logon page but i do not have any idea where to start... i've alreay setup my Apache server for using SSL, but what about the PHP code ? with or without cookie ? crypted or not ? please, could you give me some good tutorial or web page where i can find such

Re: [PHP] Controling buffer: php/smarty or apache?

2006-01-23 Thread Sumeet
robert mena wrote: Hi, I am facing a strange problem. My site, even tough designed to appear quickly at user's browser, appears at once. If I test the static HTML version it starts to appear as downloaded If I test the php generated version the page seems render as a whole. I am using

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread Markus Braun
That should be all you need then. Have you restarted apache yet? yes with the command: /etc/init.d/apache2 restart Must i compile php new? or reconfigure it? I try to install the script gallery. Do you know this? In this script i get the error that i must install the php mysql modul.

[PHP] secured logon page

2006-01-23 Thread Alain Roger
Hi, I would like to write a secured logon page but i do not have any idea where to start... i've alreay setup my Apache server for using SSL, but what about the PHP code ? with or without cookie ? crypted or not ? please, could you give me some good tutorial or web page where i can find such

[PHP] Re: secure logon php page

2006-01-23 Thread Barry
Alain Roger wrote: Hi, I would like to write a secured logon page but i do not have any idea where to start... i've alreay setup my Apache server for using SSL, but what about the PHP code ? with or without cookie ? crypted or not ? please, could you give me some good tutorial or web page

Re: [PHP] Re: hiding the index.php page.

2006-01-23 Thread Sumeet
Barry wrote: Gregory Machin wrote: Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- not sure...but u can use frames. the main page

Re: [PHP] Re: hiding the index.php page.

2006-01-23 Thread Silvio Porcellana [tradeOver]
Barry wrote: Gregory Machin wrote: Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you If you use Apache, what you are looking for is

[PHP] phpmyadmin import

2006-01-23 Thread William Stokes
Hello, When importing data from file with phpmyadmin the file max size is 2 048kb. Can this be changed to accept larger files? It would be more convenient to import data to my test DB if this could be done via single file export/import. Thanks -Will -- PHP General Mailing List

[PHP] [NEWBIE GUIDE] - suggestions for new list members

2006-01-23 Thread Jay Blanchard
= Please feel free to add more points and updates. 20050322jb - Note the new location of PHP Editors list. = 1. If you have any queries/problems about PHP try

Re: [PHP] phpmyadmin import

2006-01-23 Thread Austin Denyer
On Mon, 23 Jan 2006 15:37:37 +0200 William Stokes [EMAIL PROTECTED] wrote: When importing data from file with phpmyadmin the file max size is 2 048kb. Can this be changed to accept larger files? Yes. Look at your php.ini file - change the upload_max_filesize to the filesize you want.

Re[2]: [PHP] XML and special characters

2006-01-23 Thread Steve Clay
Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote: ee dee da da da? sect;eth; -- those that look like html entities are the represented characters. I was mistaken, they are html entities, Can you show us a small chunk of this XML that throws errors? You said you've tried various

Re: [PHP] hiding the index.php page.

2006-01-23 Thread tedd
Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- Gregory Machin Gregory: If I understand what you want, it's very simple, just put your

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread Markus Braun
so it works now. Thanks From: David Grant [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] Php4 with mysql flag Date: Mon, 23 Jan 2006 12:07:29 + Markus, Markus Braun wrote: libapache2-mod-php4 is already the newest version. mysql-server is already the newest

Re: [PHP][SOLVED] Re: Search files in a directory!

2006-01-23 Thread Nicholas Couloute
thank you barry! function substr_count() does what I need! On Mon, 23 Jan 2006 9:13 am, Barry Krein wrote: Nicholas Couloute wrote: What would I do to the variable each tome to compare it to the query? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com use substring count or any other

Re[2]: [PHP] Re: Managing sessions...

2006-01-23 Thread Steve Clay
Monday, January 23, 2006, 5:06:02 AM, David BERCOT wrote: But, I have just another question about all the options I have to put in this file... Is it necessary to do all of this (sorry for my Check phpinfo(). Several of those settings may already be set by your server's php.ini file. Generally,

[PHP] Adventures in Cookies

2006-01-23 Thread tedd
Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value. Then using a different browser (browser B), I can access the same page and create another cookie with another

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Tedd, tedd wrote: Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value. Then using a different browser (browser B), I can access the same page and create

[PHP] Re: Adventures in Cookies

2006-01-23 Thread Barry
tedd wrote: Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value. Then using a different browser (browser B), I can access the same page and create another cookie

Re: [PHP] Adventures in Cookies

2006-01-23 Thread Austin Denyer
On Mon, 23 Jan 2006 11:30:32 -0500 tedd [EMAIL PROTECTED] wrote: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value. Then using a different browser (browser B), I

[PHP] Re: security of uploaded gif files

2006-01-23 Thread Barry
James Benson wrote: Even if you can embed PHP in a GIF it would still need to be executed by PHP as PHP code, would PHP actually execute that file when it looks like an image, I would think PHP would output an error? More importantly though, you should be checking the file extension of

Re: [PHP] Adventures in Cookies

2006-01-23 Thread Austin Denyer
On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: tedd wrote: Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value. Then using

Re: [PHP] Adventures in Cookies

2006-01-23 Thread Barry
Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: tedd wrote: Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value.

RE: [PHP] Adventures in Cookies

2006-01-23 Thread Dan Parry
I would have thought this was standard behaviour... Different browsers [can] store their cookies in different locations on the drive don't they? It's my experience that cookies are always handled autonomously and asynchronously by browsers (ie set a cookie in one browser and another won't see it)

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Austin, Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: tedd wrote: ... Can you provide some examples for what you mean? I think he's referring to the fact that you can have one cookie in, say, Mozilla and another one in, say, Konqueror (or

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Barry wrote: Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: tedd wrote: Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Please ignore the previous e-mail: I slipped on the keyboard. :) -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Cookie reposted

2006-01-23 Thread tedd
Hi: After I successfully writing a cookie, I'm having a problems reading the cookie repeatedly. The first time into my read the cookie page, the cookie is read. However, the second time, it's not. If I quit my browser and then reenter the read the cookie page, the cookie is there and read

Re: [PHP] Cookie reposted

2006-01-23 Thread David Grant
Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David tedd wrote: Hi: After I successfully writing a cookie, I'm having a problems reading the cookie

[PHP] Re: security of uploaded gif files

2006-01-23 Thread James Benson
Even if you can embed PHP in a GIF it would still need to be executed by PHP as PHP code, would PHP actually execute that file when it looks like an image, I would think PHP would output an error? More importantly though, you should be checking the file extension of uploaded files to make

Re: [PHP] Adventures in Cookies

2006-01-23 Thread tedd
Tedd, tedd wrote: Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value. Then using a different browser (browser B), I can access the same page and create

RE: [PHP] Use of Ampersand in php

2006-01-23 Thread Richard Correia
Hey, Check out this example at famous http://www.weberdev.com http://www.weberdev.com/get_example-3871.html Let me know if you need more information. Thanks, Richard -Original Message- From: Nirmalya Lahiri [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 8:34 AM To:

RE: [PHP] Search files in a directory!

2006-01-23 Thread Richard Correia
Hey, Checkout the following example. This example lists the directory content; you can do a simple string matching. http://www.weberdev.com/get_example-1572.html Thanks, Richard Correia -Original Message- From: Nicholas Couloute [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006

Re: [PHP] phpmyadmin import

2006-01-23 Thread William Stokes
Thanks. Got that one changed to 8Mb. I ran into another issue though. I'm tryin to import a 2,5 Mb table. PhpMyAdmin import ends with fatal error while importing. Here's the error message. Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2247907 bytes) in

RE: [PHP] phpmyadmin import

2006-01-23 Thread Richard Correia
Hey Will, Following example will give you correct idea where to look. http://www.weberdev.com/get_example-3688.html Thanks, Richard Correia -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 7:08 PM To: php-general@lists.php.net Subject:

Re: [PHP] phpmyadmin import

2006-01-23 Thread John Nichel
Richard Correia wrote: Hey Will, Following example will give you correct idea where to look. http://www.weberdev.com/get_example-3688.html Will that take him to the phpMyAdmin site? ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL

[PHP] Using mapping tools via PHP?

2006-01-23 Thread Jay Paulson
I was wondering if anyone has built a php web app that uses google maps, yahoo maps, and/or mapquest maps. What I am trying to do is create a web app that if someone inputs their zip or city and state or address the results will show how far away they are from one of our stores and have a map to

[PHP] POP3 or other servers in php

2006-01-23 Thread Geoff
I'm looking a POP3/IMAP server written in PHP. Or failing that, any socket-based sever would help me by being an example I could base my own on. I know there are a million functions, routines and classes for talking to POP3/IMAP servers. That is not what I need. I need an actual service (or

Re: [PHP] phpmyadmin import

2006-01-23 Thread Austin Denyer
On Mon, 23 Jan 2006 19:24:57 +0200 William Stokes [EMAIL PROTECTED] wrote: Thanks. Got that one changed to 8Mb. I ran into another issue though. I'm tryin to import a 2,5 Mb table. PhpMyAdmin import ends with fatal error while importing. Here's the error message. Fatal error: Allowed

[PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Chris
Hi, I have a class which will build, and output, an HTML table. To create the internal elements more simply I'm using a DOMDocument, with a root element of 'table' then outputting with the -saveHTML() method. This has worked fine during development, but I've run into a problem. In this

Re: [PHP] phpmyadmin import

2006-01-23 Thread Paul Scott
On Mon, 2006-01-23 at 13:00 -0500, Austin Denyer wrote: Check the following entry in your php.ini file: memory_limit It's possible you may also need to check this one, too: post_max_size I realise that I may get flamed for this on a PHP list, but, generally when I import sql files to

Re: [PHP] Cookie reposted

2006-01-23 Thread tedd
Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ??? Interesting -- the first time it's read correctly and the second time it's a security risk -- how doe

Re: [PHP] Re: security of uploaded gif files

2006-01-23 Thread Gerry Danen
There's a couple of things a person can do. 1. check for .gif extention 2. see if exif_imagetype() returns type IMAGETYPE_GIF 3. see if getimagesize() returns reasonable values and not FALSE 4. check the file content for binary vs text content Gerry -- PHP General Mailing List

Re: [PHP] Cookie reposted

2006-01-23 Thread Richard Correia
By any chance, you are rewritting it/deleting it? Thanks Rich On 1/24/06, tedd [EMAIL PROTECTED] wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent.

[PHP] Something wrong to open PHP

2006-01-23 Thread Ivar Johansson
Hi! When I've created a .php-file and trying to open it then it's not want to open. There are no error-messages comes up or something like that, nothing hapends when I'm trying to open it. Can you please tell me what's wrong? Thanks! //Ivar

RE: [PHP] Something wrong to open PHP

2006-01-23 Thread Jay Blanchard
[snip] When I've created a .php-file and trying to open it then it's not want to open. There are no error-messages comes up or something like that, nothing hapends when I'm trying to open it. Can you please tell me what's wrong? Thanks! [/snip] There could be so many things wrong. Create a file

Re: [PHP] Cookie reposted

2006-01-23 Thread Stut
tedd wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ??? Interesting -- the first time it's read correctly and the second time it's a security risk

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Steve Clay
Monday, January 23, 2006, 1:35:13 PM, Chris wrote: the -saveHTML() method ... outputs as `option selected` I need my output HTML to conform to XHTML strict. Since XHTML is XML, try -saveXML()? Steve -- http://mrclay.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Something wrong to open PHP

2006-01-23 Thread Jay Blanchard
[snip] Nope, that didn't work either... Oh, on the way, I can't find IIS on the computer. And in ControllpanelAdd/Remove programAdd/Remove Windows components I can't find it either. We've Windows XP Home edition. Maybe it have something with that to do? Please tell me if you know. Thanks!

Re: [PHP] Cookie reposted

2006-01-23 Thread tedd
By any chance, you are rewritting it/deleting it? Thanks Rich Rich: I'm definitely not rewriting the cookie, for if I quit the browser and return to the url again, the cookie data is still there. It's only when I return to the same url a second time that it doesn't appear again. It looks

Re: [PHP] Cookie reposted

2006-01-23 Thread Richard Correia
Can you check your temporary internet files for the cookie? Does that cookie is deleted from the browser cache? With OS/Webserver/browser you are using? Thanks Rich On 1/24/06, tedd [EMAIL PROTECTED] wrote: By any chance, you are rewritting it/deleting it? Thanks Rich Rich: I'm

Re: [PHP] Adventures in Cookies

2006-01-23 Thread Chris Shiflett
Austin Denyer wrote: This is a function of the way cookies work, and is not a php issue. Exactly. This is similar to how you can bookmark a page in one browser, and it won't be in another browser's bookmarks. There's nothing that says browsers should all use shared resources for persistent

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Chris
Steve Clay wrote: Monday, January 23, 2006, 1:35:13 PM, Chris wrote: the -saveHTML() method ... outputs as `option selected` I need my output HTML to conform to XHTML strict. Since XHTML is XML, try -saveXML()? Steve I've tried that, and it suits my purposes except for the fact

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Michael Crute
On 1/23/06, Chris [EMAIL PROTECTED] wrote: Steve Clay wrote: Monday, January 23, 2006, 1:35:13 PM, Chris wrote: the -saveHTML() method ... outputs as `option selected` I need my output HTML to conform to XHTML strict. Since XHTML is XML, try -saveXML()? Steve I've tried that, and it

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Jay Paulson
I don't know much about the -saveXML() method but after reading the PHP manual why can't you just do something like this: $xhtml = $dom-saveXML(); // strip out the ?xml and ? $html = str_replace(?xml, , $html); $html = str_replace(?, , $html); Would that even work? On 1/23/06 2:52 PM, Chris

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Jay Paulson
ACK! Of course I put errors in the code. But I just read if you want to strip out the first line that would be easy. Just use a regular expression and take it out. :) On 1/23/06 3:23 PM, Jay Paulson [EMAIL PROTECTED] wrote: I don't know much about the -saveXML() method but after reading

[PHP] Testing

2006-01-23 Thread Ray Hauge
Sorry to kind of spam the list, but I recently switched email programs and my posts haven't been making it to the list. This is just a test... please ignore it :) Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: exec php.exe in windows

2006-01-23 Thread Dave Kennedy
Env: IIS, Windows XP, PHP 4.3.10 (cgi-fcgi) exec('c:\php\php -q Balance.php export=all branch=branch month=month login=admin password=admin export/Balance.html'); This command works in Linux when launched by an HTTP server. In Windows it works from the command line but hangs when launched

Re: [PHP] Can PHP works with telnet?

2006-01-23 Thread Michael Crute
On 1/22/06, HoWang Wang [EMAIL PROTECTED] wrote: Hi all, Recently I got a job to write a PHP webpage to display some infomation which have to obtain from telnet. Telnet is the only way to query the software. I have made a quick search on php.net but I can't found amy extension support

Re: [PHP] Adventures in Cookies

2006-01-23 Thread tedd
Austin Denyer wrote: This is a function of the way cookies work, and is not a php issue. Exactly. This is similar to how you can bookmark a page in one browser, and it won't be in another browser's bookmarks. There's nothing that says browsers should all use shared resources for persistent

Re: [PHP] Using mapping tools via PHP?

2006-01-23 Thread Lester Caine
Jay Paulson wrote: I was wondering if anyone has built a php web app that uses google maps, yahoo maps, and/or mapquest maps. What I am trying to do is create a web app that if someone inputs their zip or city and state or address the results will show how far away they are from one of our

Re: [PHP] Cookie reposted [Solved]

2006-01-23 Thread tedd
tedd wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ??? Interesting -- the first time it's read correctly and the second time it's a security risk

[PHP] wrapping anchor tags around a URL

2006-01-23 Thread Richard K Miller
I wrote a little function to put anchor tags around a URL. We're using it to make URL's in paragraphs of text linkable: function link_the_links($s) { return preg_replace('@(http://[^\s]+)@sm', 'a href=$1$1/a', $s); } Its only flaw (besides a goofy name) is that if a link comes at the

[PHP] Re: security of uploaded gif files

2006-01-23 Thread Gustavo Narea
Hi, James. James Benson wrote: Even if you can embed PHP in a GIF it would still need to be executed by PHP as PHP code, would PHP actually execute that file when it looks like an image, I would think PHP would output an error? Unless you include/require or eval() its content, PHP won't

Re: [PHP] Re: security of uploaded gif files

2006-01-23 Thread Gustavo Narea
Hi, Gerry. Gerry Danen wrote: There's a couple of things a person can do. 1. check for .gif extention 2. see if exif_imagetype() returns type IMAGETYPE_GIF 3. see if getimagesize() returns reasonable values and not FALSE 4. check the file content for binary vs text content It's enough to

[PHP] Very good jobs site script?

2006-01-23 Thread Denis L. Menezes
Hi friends. There are so many job site scripts out there, so cannot decide. Can anyone suggest a great software? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Custom Usort Function

2006-01-23 Thread Matt Palermo
I'm try to sort a list of items using a usort function. Basically, I want it to sort in this order: Numbers (0-9) Letters (Aa-Zz) Other (anything else) To explain a little further, I want anything that starts with a number to show up first in the sorted list, then anything that starts with a

[PHP] Reference Notices -- Urgent

2006-01-23 Thread Todd Brown
I'm getting the following notices: Notice: Only variables should be assigned by reference in Notice: Only variable references should be returned by reference in The code in question comes from PayPal (their CC processing API,) so modifying it to correct the reference issues is *not*

Re: [PHP] Adventures in Cookies

2006-01-23 Thread Gerry Danen
After some googling, it's a browser thing, not a php thing, as Austin pointed out. There are just rules (well, suggestions maybe) to be aware of. Are we flogging a dead horse here? On 1/23/06, tedd [EMAIL PROTECTED] wrote: Austin Denyer wrote: This is a function of the way cookies work, and

[PHP] Can't printout class variable

2006-01-23 Thread Scott Gunn
This should be simple. What am I doing wrong? Here is the code that is failing: $user = $_SESSION['user']; print_r($user); echo Welcome . $user-firstName; The print_r command prints out: __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = User

Re: [PHP] Reference Notices -- Urgent

2006-01-23 Thread Richard Correia
Hey Todd, You need to check the setting of error reporting in php.ini file. http://www.weberdev.com/Manuals/PHP/ref.errorfunc.html Thanks Richard On 1/24/06, Todd Brown [EMAIL PROTECTED] wrote: I'm getting the following notices: Notice: Only variables should be assigned by reference in

Re: [PHP] Can't printout class variable

2006-01-23 Thread Sumeet
Scott Gunn wrote: This should be simple. What am I doing wrong? Here is the code that is failing: $user = $_SESSION['user']; print_r($user); echo Welcome . $user-firstName; The print_r command prints out: __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = User

Re: [PHP] Reference Notices -- Urgent

2006-01-23 Thread Todd Brown
Thanks, Richard, that solved the problem. I knew it was something like that, but was just running out of time! I appreciate your help. Cheers, Todd Richard Correia wrote: Hey Todd, You need to check the setting of error reporting in php.ini file.

[PHP] Help with getting PHP to see Pear.

2006-01-23 Thread Payne
Hi, I just installed SuSE 10 and I am having a problem with my phpnuke site and my maia site. PHPNUKE gives me this error... *Warning*: main(db/mysql.php): failed to open stream: No such file or directory in */srv/www/htdocs/bse/db/db.php* on line *53* *Warning*: main(): Failed opening

[PHP] Help with getting PHP to see Pear.

2006-01-23 Thread Payne
Hi, I just installed SuSE 10 and I am having a problem with my phpnuke site and my maia site. PHPNUKE gives me this error... *Warning*: main(db/mysql.php): failed to open stream: No such file or directory in */srv/www/htdocs/bse/db/db.php* on line *53* *Warning*: main(): Failed opening

RE: [PHP] Help with getting PHP to see Pear.

2006-01-23 Thread Albert
Payne wrote: How can I get php to see pear, it is installed. I have install modules with pear for maia and horde but neither seem to see pear. I'm running SuSE 9.3 and had to add /usr/share/php to the include path in /etc/php.ini to be able to use the installed PEAR extensions. To enable