RE: [PHP] DHCP web interface. New version.

2003-12-03 Thread Daevid Vincent
Once again, I have a new version of my DHCP web page. The major fix in this one is that it does an "nmap -v -p 80 192.168.1.0/24" (thanks to Mike Klinke for the idea) to re-populate the "arp -n". The old version of my program would not always show ALL devices on the network. Some would also show up

[PHP] Re: Dealing with large classes over several files

2003-12-03 Thread Kim Steinhaug
umm... It all looks good except this one : function foo::f () This is where you get the T_ error. Dont know what you are trying to do here, but thats the error anyways, :) Your first example is all correct, // myclass.inc.php class foo { // constructor and destructor

[PHP] Re: XML, strings and foreign (swedish/danish) characters

2003-12-03 Thread Victor Spång Arthursson
2003-12-02 kl. 12.23 skrev Manuel Lemos: You just need to use the proper input/output encodings. Doesn't work at all… The code // Prepare the content of the xml-file to go to the xsl-parser $xml = str_replace("?", chr(63), $contents); $xml = str_replace("", $kurt, $xml); $xml = trim($xml); $xml

[PHP] Doubts With Select Queries

2003-12-03 Thread irinchiang
Hi all: Having some doubts with sql select queries here : Right now, I have a "student" and a "withdraw" tables. For example, when student "John" has withdrawn, his name will be inserted into "withdraw" table but John's record will be kept in "student" table for a period of 30 days before i

[PHP] Images On-Fly

2003-12-03 Thread Dejan Dujak
Hallo People, I have one problem with creating images on-fly. Therefore I created 2 files: 1. resize_image.php with the following AND 2. filex.php .In that file i read from database where the image is stored en then i show small images(thumbnails). thet part of the code is : "; ?

Re: [PHP] Virtual Directory Support

2003-12-03 Thread Jason Wong
On Wednesday 03 December 2003 12:51, Ralph Guzman wrote: > I have a new installation of PHP 4.1.2 and it appears I cannot run php > scripts outside of apache root directory. How did you come to this conclusion? Was there an error message? If so, what did it say? If there was no error message, the

Re: [PHP] Images On-Fly

2003-12-03 Thread Jason Wong
On Wednesday 03 December 2003 17:41, Dejan Dujak wrote: [snip] > This doesn't WORK. Please HELP. HOW DOESN'T it work? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Re: XML, strings and foreign (swedish/danish) characters

2003-12-03 Thread Victor Spång Arthursson
2003-12-02 kl. 22.08 skrev Manuel Lemos: The code // Prepare the content of the xml-file to go to the xsl-parser $xml = str_replace("", $tempxml, $xml); $xml = trim($xml); $xml = utf8_encode($xml); echo $xml; makes the string "" become "" And the crap in fron of the string, which seems to come

Re: [PHP] Doubts With Select Queries

2003-12-03 Thread Jason Wong
On Wednesday 03 December 2003 17:30, [EMAIL PROTECTED] wrote: > Having some doubts with sql select queries here : > > Right now, I have a "student" and a "withdraw" tables. > For example, when student "John" has withdrawn, his name will be inserted > into "withdraw" table but John's record will b

Re: [PHP] Re: XML, strings and foreign (swedish/danish) characters

2003-12-03 Thread Victor Spång Arthursson
2003-12-03 kl. 10.22 skrev Victor Spång Arthursson: makes the string "" become "" Temporarely solved the problem using substring to trim the crap-chars away, but I'ld prefer to solve it in a more beautiful way, but perhaps this behaviour is a bug and therefore not possible to solve in any

Re: [PHP] Doubts With Select Queries

2003-12-03 Thread irinchiang
On Wednesday 03 December 2003 17:30, [EMAIL PROTECTED] wrote: > Having some doubts with sql select queries here : > > Right now, I have a "student" and a "withdraw" tables. > For example, when student "John" has withdrawn, his name will be inserted > into "withdraw" table but John's record

[PHP] wrapping PHP around a chinese web page

2003-12-03 Thread See Kok Boon
Hellox experts.. I am making a quiz for a Chinese website. the PHP I going to use is to be wrapped together with the chinese character outputs all in a single file. For an example... In "quiz.php" If(YOUR_ANSWER_IS_CORRECT) { print "in chinese: you scored full marks" //output } else {

[PHP] Re: Images On-Fly

2003-12-03 Thread Dejan Dujak
My entire page will then not work. Apperently it contains then error. If i do delete that part of the php code it works just fine. "Dejan Dujak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hallo People, > > > > I have one problem with creating images on-fly. > > Therefore I crea

[PHP] wrapping PHP around chinese characters

2003-12-03 Thread See Kok Boon
Hellox experts.. I am making a quiz for a Chinese website. the PHP I going to use is to be wrapped together with the chinese character outputs all in a single file. For an example... In "quiz.php" If(YOUR_ANSWER_IS_CORRECT) { print "in chinese: you scored full marks" //output }

Re: [PHP] Re: Images On-Fly

2003-12-03 Thread Jason Wong
On Wednesday 03 December 2003 19:26, Dejan Dujak wrote: > My entire page will then not work. Apperently it contains then error. If i > > do delete that part of the php code it works just fine. So turn on FULL error reporting and find out what the error is. -- Jason Wong -> Gremlins Associates ->

[PHP] Evaluating a page in a different order

2003-12-03 Thread cay
Hey all, I have a php page class that i use as a template for my website. Every page in my website creates an instance of the class and passes values like title and meta tag keywords. The class includes the layout from different files e.g. title.lay contains the title and logo. In the top ri

[PHP] Evaluating a page in a different order

2003-12-03 Thread cay
Hey all, I have a php page class that i use as a template for my website. Every page in my website creates an instance of the class and passes values like title and meta tag keywords. The class includes the layout from different files e.g. title.lay contains the title and logo. In the top righ

Re: [PHP] Evaluating a page in a different order

2003-12-03 Thread Eugene Lee
On Wed, Dec 03, 2003 at 11:42:09AM -, [EMAIL PROTECTED] wrote: : : I have a php page class that i use as a template for my website. Every : page in my website creates an instance of the class and passes values : like title and meta tag keywords. The class includes the layout from : different

Re: [PHP] Evaluating a page in a different order

2003-12-03 Thread Justin French
On Wednesday, December 3, 2003, at 10:42 PM, <[EMAIL PROTECTED]> wrote: If i havent confused you too much, is there anything else you can suggest? This isn't a direct answer to your problem, but it might help you think things through. I also don't work with classes (only functions), so you'l

[PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
I have a webpage that needs to use some specific php.ini settings different from other php applications on my web server. I have created a .htaccess file with the following content: php_flag register_globals 1 php_flag error_reporting "E_ALL & ~E_NOTICE" It works fine, but only on Mozilla and N

RE: [PHP] Doubts With Select Queries

2003-12-03 Thread Jay Blanchard
[snip] What if within these 30 days, student John actually decided not to withdraw anymore and to continue to study in the school? Is there any way whereby I can set the status to "0" again n then John will not be deleted from the DB?? Wonder if this would be possible??>? [/snip] Yes, it is poss

Re: [PHP] Re: refresh data

2003-12-03 Thread Richard Davey
Hello BigMark, Wednesday, December 3, 2003, 6:29:41 AM, you wrote: B> Nope that didnt work! You need to remove the fact the list is inside the check for the $submit value too. Same sentiment as before. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP Gener

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] I have a webpage that needs to use some specific php.ini settings different from other php applications on my web server. I have created a .htaccess file with the following content: php_flag register_globals 1 php_flag error_reporting "E_ALL & ~E_NOTICE" It works fine, but only on Mozil

[PHP] Need help

2003-12-03 Thread MBA
> How could I use this php code, > > > > > in order to show the ip in a web page? > > thanks > - Do you Yahoo!? Free Pop-Up Blocker - Get it now

Re: [PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
Jay Blanchard wrote: [snip] I have a webpage that needs to use some specific php.ini settings different from other php applications on my web server. I have created a .htaccess file with the following content: php_flag register_globals 1 php_flag error_reporting "E_ALL & ~E_NOTICE" It works fi

Re: [PHP] Need help

2003-12-03 Thread Thorsten Körner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Am Mittwoch, 3. Dezember 2003 14:24 schrieb MBA: > > How could I use this php code, > > > > > > > > > > in order to show the ip in a web page? You should use: for PHP 4.1 and higher. Please use a more descriptive subject for your questions CU Th

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] >Put a page in that directory called test.php with only > > >phpinfo(); > >?> It doesn't work at all if I put AddType application/x-httpd-php .php [/snip] Did you try the test.php above? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Evaluating a page in a different order

2003-12-03 Thread Andrei Reinus
[EMAIL PROTECTED] wrote: Hey all, I have a php page class that i use as a template for my website. Every page in my website creates an instance of the class and passes values like title and meta tag keywords. The class includes the layout from different files e.g. title.lay contains the title and

[PHP] Completely Daft Question

2003-12-03 Thread pete M
I have written and applicaiton in VB (yuck but that's what the client wants) and part of the application involves importing and processing text files. For that I turned to php;-) for all its processing power as a shell script. Now here is the daft question. How would I go about embedding the p

[PHP] wrapping PHP around Chinese characters

2003-12-03 Thread See Kok Boon
Hellox experts.. I am making a quiz for a Chinese website. the PHP I going to use is to be wrapped together with the chinese character outputs all in a single file. For an example... In "quiz.php" If(YOUR_ANSWER_IS_CORRECT) { print "in chinese: you scored full marks" //output }

Re: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread Sophie Mattoug
Would it be possible you have a problem with line-feeds while uploading from win ti linux ? -- Cordialement, --- Sophie Mattoug Développement web dynamique [EMAIL PROTECTED] --- See Kok Boon wrote: Hellox experts.. I am making a quiz for a Chine

RE: [PHP] Evaluating a page in a different order

2003-12-03 Thread cay
[EMAIL PROTECTED] wrote: > Hey all, > > I have a php page class that i use as a template for my website. Every page in my website creates an instance of the class and passes values like title and meta tag keywords. The class includes the layout from different

[PHP] Re: Need help

2003-12-03 Thread pete M
Mba wrote: How could I use this php code, in order to show the ip in a web page? thanks - Do you Yahoo!? Free Pop-Up Blocker - Get it now -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Completely Daft Question

2003-12-03 Thread Chris Hayes
At 15:27 3-12-03, you wrote: I have written and applicaiton in VB (yuck but that's what the client wants) and part of the application involves importing and processing text files. For that I turned to php;-) for all its processing power as a shell script. Now here is the daft question. How wou

RE: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread See Kok Boon
I dun understand what you mean by line feeds. When the file is in Unicode format, the web displays the Chinese characters and when I view source, I can see all the PHP code. If quiz.php is treated like a PHP file, then the PHP parser would not have allowed the PHP code to show in source. If quiz.

[PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread Robert Sossomon
Hey guys and gals, I am working on a shopping cart and using some code to write it from 2 temp databases to a full end databases (which will then be used via PERL to send to an archaic order system) but right now I need to come up with a way to clear their current session ID after finalizing the o

Re: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread Jason Wong
On Thursday 04 December 2003 00:09, See Kok Boon wrote: > I dun understand what you mean by line feeds. That should not have anything to do with your problem. [snip] > When file is in ANSI format, everything is fine except that the chinese > doesn’t show... bad. Have you specified the correct e

Re: [PHP] Completely Daft Question

2003-12-03 Thread pete M
For the exe part, check this list or > the internet for [PHP commandline]. Didn't think calling that from VB - ta - problem solved Pete Chris Hayes wrote: At 15:27 3-12-03, you wrote: I have written and applicaiton in VB (yuck but that's what the client wants) and part of the application involv

[PHP] Building a query string

2003-12-03 Thread Ed Curtis
This list has helped me out alot and I hope it can do it one more time. I need to build a MySQL query based on 11 different options from a form. Some options will have values others will be checkboxes to say include in the query. How I thought about going at it was using a default query string

[PHP] Re: Building a query string

2003-12-03 Thread Bogdan Stancescu
Ed Curtis wrote: This list has helped me out alot and I hope it can do it one more time. I need to build a MySQL query based on 11 different options from a form. Some options will have values others will be checkboxes to say include in the query. How I thought about going at it was using a defaul

RE: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread See Kok Boon
Thanks jason. Problems solved. Thanks. =) -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 12:19 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] wrapping PHP around Chinese characters On Thursday 04 December 2003 00:09, See Kok Boon wrote: > I d

[PHP] can mail() function send emails to any email account?

2003-12-03 Thread See Kok Boon
Hello.. it's me again. Trying to use mail() function to send emails to hotmail accounts. It seems that it's not working. Tried the same function on my own email account, it worked. Tried on some other, it doesn't. What determines if the mail() function works? -- PHP General Mailing List (http

RE: [PHP] can mail() function send emails to any email account?

2003-12-03 Thread Jay Blanchard
[snip] Hello.. it's me again. Trying to use mail() function to send emails to hotmail accounts. It seems that it's not working. Tried the same function on my own email account, it worked. Tried on some other, it doesn't. What determines if the mail() function works? [/snip] Whether or not it i

Re: [PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread Lowell Allen
> Hey guys and gals, > > I am working on a shopping cart and using some code to write it from 2 > temp databases to a full end databases (which will then be used via PERL > to send to an archaic order system) but right now I need to come up with > a way to clear their current session ID after fina

Re: [PHP] Re: Building a query string

2003-12-03 Thread Ed Curtis
> To answer the question, $query_str.=" AND garage = '$garage' "; > > BUT. If $garage is an id (numeric), then you should use > $garage=abs($garage) first in order to defeat SQL injection. If it's a > string, well, say so and we'll tell you what to do (a lot to explain, > and not useful if it's an

RE: [PHP] can mail() function send emails to any email account?

2003-12-03 Thread Sam Masiello
Did you get a bounce? Perhaps to the root account on your local machine? Some domains do reverse DNS lookup and if sendmail is not configured properly the receiving domain might kick the email back if it doesn't recognize where the email claims to be coming from. --Sam -Original Message--

RE: [PHP] register_globals problem

2003-12-03 Thread Chris
The only problem I see with that is that you're using the constants E_ALL and E_NOTICE in the .htaccess file. You can't use constants there, you need to use the actual number. (2047 & ~8) == 2039: php_flag register_globals 1 php_flag error_reporting "2039" Chris -Original Message- From:

RE: [PHP] register_globals problem

2003-12-03 Thread Chris
Heh, sorry about that.. one more thing, php_flag is only for bollean values, this should work: php_flag register_globals on php_value error_reporting "2039" -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 9:10 AM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Simple table sorting

2003-12-03 Thread Luis Lebron
You may want to also try a javascript solution See http://www.kryogenix.org/code/browser/sorttable/ for an example. Luis -Original Message- From: Tommi Virtanen [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 8:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Simple table sorting

[PHP] function problems...

2003-12-03 Thread Jas
I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks in advance. jas function menu() { $lvl = base64_deco

[PHP] validating email address

2003-12-03 Thread Blake Schroeder
Whats the best way to validate email address (check for white space, check for .com, .net.edu etc) -Blake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function problems...

2003-12-03 Thread Richard Davey
Hello Jas, Wednesday, December 3, 2003, 6:15:20 PM, you wrote: J> I call this function it checks a session variable then displays 1 of 3 J> menus... for some reason it will only display the first menu regardless J> of the results of my decoded session var. Any help or just a new pair J> of eyes

Re: [PHP] validating email address

2003-12-03 Thread Jason Wong
On Thursday 04 December 2003 02:31, Blake Schroeder wrote: > Whats the best way to validate email address (check for white space, > check for .com, .net.edu etc) google > php validate email address -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

[PHP] Re: function problems...

2003-12-03 Thread Jas
Nevermind, I got it to work... cheers Jas wrote: I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks in a

[PHP] Session Expiration Problem....

2003-12-03 Thread CF High
Hey all. Our hosting company sets session vars to expire every 15 minutes. I've setup an Admin Center for users to enter various types of information, some of which, for example entering a basketball team roster, can take slower users upwards of 25 minutes or more. The result? Admin user spends

[PHP] preserving blank space padding when using fgetcsv

2003-12-03 Thread Roger Spears
Hello, I've been researching this for most of the day and am unable to find an answer. I'm using fgetcsv to read a comma delimited file (Microsoft Excel CSV). I'm trying to create a PHP application which will read a csv file line by line, remove the commas and preserve the padding that is in

[PHP] Propagating SID when cookies disabled

2003-12-03 Thread rogue
Hi all, I am testing some templates that are using a session. I have PHP compiled with --enable-trans-sid. It is my understanding that if I have cookies disabled in my browser and this: echo 'go'; ?> is in the template, the SID should automatically get stuck on the end of the URL, but thi

Re: [PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
Jay Blanchard wrote: [snip] Put a page in that directory called test.php with only phpinfo(); ?> It doesn't work at all if I put AddType application/x-httpd-php .php [/snip] Did you try the test.php above? Yes, I have. Doesn't work. -- PHP General Mailing List (http://www.php.net

[PHP] Odd problem with ereg_replace and addslahes

2003-12-03 Thread Ian Truelsen
Here is what I am doing: I am reading in the contents of a text file that contains variables whose properties I want to output. So, as was suggested on the list I used the following: eval("\$rest = \"".addslashes($pre_rest)."\";"); This works quite well, with one problem: if I use a contraction,

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] > >Did you try the test.php above? > > > Yes, I have. Doesn't work. [/snip] Then your httpd.conf in not configured properly. It would appear to me that PHP is not working at all. I went to the URL inquestion and did not find this test page, so it will be hard for me to help you. Does PHP

Re: [PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
Chris wrote: Heh, sorry about that.. one more thing, php_flag is only for bollean values, this should work: php_flag register_globals on php_value error_reporting "2039" -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 9:10 AM To: [EMAIL PROTECTED

RE: [PHP] Virtual Directory Support

2003-12-03 Thread Ralph Guzman
Jason, thank you for responding. I never did figure out what the problem was. This installation was done by somebody else using readhat 9' out of the box rpm based installation. So rather than wasting time I went ahead and recompiled apache/php from source code. Everything is working now and html p

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] It doesn't work. After all a script that contains only phpinfo() (e-technics.com/dorna/info.php) works OK, but the webpage, which is a PhpNuke doesn't work. [/snip] Actually info.php works in IE and reports register_global is ON locally (within that directory). Therefore, as I stated ear

Re: [PHP] Session Expiration Problem....

2003-12-03 Thread Matt Matijevich
Is there a way to extend the php session timeout for particular pages? Alternatively, is there a way, other than using cookies, to store user data from page-to-page? I think you can use ini_set() to change session.gc_maxlifetime, that will change your session timeout. You could pass data around

Re: [PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
Jay Blanchard wrote: [snip] It doesn't work. After all a script that contains only phpinfo() (e-technics.com/dorna/info.php) works OK, but the webpage, which is a PhpNuke doesn't work. [/snip] Actually info.php works in IE and reports register_global is ON locally (within that directory). There

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] If I create an PHP environment such that I don't need to override register_globals and error_reporting with a .htaccess file it works just fine, so I guess the problem is in the .htaccess file. I posted my httpd.conf file at http://e-technics.com/dorna/httpd.conf. If I comment the lines

Re: [PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
Jay Blanchard wrote: [snip] If I create an PHP environment such that I don't need to override register_globals and error_reporting with a .htaccess file it works just fine, so I guess the problem is in the .htaccess file. I posted my httpd.conf file at http://e-technics.com/dorna/httpd.conf. If

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] > Actually, according to the info.php page for that directory > register_globals is ON as you desire...correct? Correct, the .htaccess file overides just fine register_globals and error_reporting but somehow Internet Explorer and Konqueror does not load the page. [/snip] But IE and Konqu

Re: [PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
Jay Blanchard wrote: [snip] Actually, according to the info.php page for that directory register_globals is ON as you desire...correct? Correct, the .htaccess file overides just fine register_globals and error_reporting but somehow Internet Explorer and Konqueror does not load the page. [/snip

Re: [PHP] validating email address

2003-12-03 Thread David T-G
Blake -- ...and then Blake Schroeder said... % % Whats the best way to validate email address (check for white space, % check for .com, .net.edu etc) 1) Read this list's archives 2) STFW 3) Hand the job off to something else if at all possible % % -Blake HTH & HAND :-D -- David T-G

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] > But IE and Konqueror both load the info.php correctly from my end. It is > the index.php for Nukemods.com that gets hosed in those browsers. So you're saying that index.php is broken? Then why it gets loaded fine if I delete the .htaccess file? [/snip] That is exactly what I am saying.

Re: [PHP] Session Expiration Problem....

2003-12-03 Thread Lowell Allen
> Our hosting company sets session vars to expire every 15 minutes. > > I've setup an Admin Center for users to enter various types of information, > some of which, for example entering a basketball team roster, can take > slower users upwards of 25 minutes or more. > > The result? Admin user sp

[PHP] problem redirecting to protected directory

2003-12-03 Thread Bart
Hello, Can you people help me with the following authentication-problem? I have a directory names 'secure' that contains only html-files. Access is only allowed for registered website-visitors. Within the directory it isn't possible to place php-files for access-control so I have passwd-protected

[PHP] Odd problem with ereg_replace and addslashes

2003-12-03 Thread Ian Truelsen
Here is what I am doing: I am reading in the contents of a text file that contains variables whose properties I want to output. So, as was suggested on the list I used the following: eval("\$rest = \"".addslashes($pre_rest)."\";"); This works quite well, with one problem: if I use a contraction,

Re: [PHP] Session Expiration Problem....

2003-12-03 Thread Matt Matijevich
** Low Priority ** Is there a way to extend the php session timeout for particular pages? Alternatively, is there a way, other than using cookies, to store user data from page-to-page? I think you can use ini_set() to change session.gc_maxlifetime, that will change your session timeout. You co

Re: [PHP] Propagating SID when cookies disabled

2003-12-03 Thread rogue
Okay. I figured out my problem. For some reason, I have two copies of php.ini on my server (an old install?) and was editing the wrong one to have: session.use_trans_sid = 1 *hits self on head* :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] copy_file() files

2003-12-03 Thread Ajai Khattri
I recently upgraded PHP and now have two sites that use copy_file() that no longer work. I have safe_mode=Off in my php.ini. Also, the files and directories Furthermore, the file and directories Im trying to copy files to are owned by user nobody and group nobody (My Apache server runs as user nobo

[PHP] preserving blank space padding when using fgetcsv

2003-12-03 Thread Roger Spears
The first time I sent this message to the list, this is what bounced back... "Hi. This is the qmail-send program at pb1.pair.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: Th

RE: [PHP] copy_file() files

2003-12-03 Thread Jay Blanchard
[snip] I recently upgraded PHP and now have two sites that use copy_file() that no longer work. I have safe_mode=Off in my php.ini. Also, the files and directories Furthermore, the file and directories Im trying to copy files to are owned by user nobody and group nobody (My Apache server runs as us

[PHP] talking to a web page

2003-12-03 Thread David T-G
Hi, all -- My host has written a control panel to handle all site management needs, and it's great except that there's no back-end hook that I can use to create a new site or user once I have collected my input and verified my payment in my own pages. I obviously don't want to have to do all of t

Re: [PHP] register_globals problem

2003-12-03 Thread Bogdan Albei
Jay Blanchard wrote: [snip] But IE and Konqueror both load the info.php correctly from my end. It is the index.php for Nukemods.com that gets hosed in those browsers. So you're saying that index.php is broken? Then why it gets loaded fine if I delete the .htaccess file? [/snip] That is exactl

Re: [PHP] copy_file() files

2003-12-03 Thread Ajai Khattri
On Wed, Dec 03, 2003 at 03:06:50PM -0600, Jay Blanchard wrote: > What is the chmod of those files/directories. Also, there is no Well, the destination folder (as I stated) is owned by user nobody and group nobody. Apache is running as user nobody and group nobody. And Im assuming that any files w

[PHP] Re: validating email address

2003-12-03 Thread Manuel Lemos
Hello, On 12/03/2003 04:31 PM, Blake Schroeder wrote: Whats the best way to validate email address (check for white space, check for .com, .net.edu etc) Try this class: http://www.phpclasses.org/emailvalidation -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.

[PHP] Re: talking to a web page

2003-12-03 Thread Justin Patrin
You can use PEAR's HTTP_Client package (http://pear.php.net/package/HTTP_Client) to connect to a website, do authentication, post forms, handle redirects, etc. It also keeps track of cookies. Here's a sample (note that the URLs in this will probably not work): require_once('HTTP/Client.php');

[PHP] Re: validating email address

2003-12-03 Thread Justin Patrin
Or you could always use the PEAR package: http://pear.php.net/package/Validate Manuel Lemos wrote: Hello, On 12/03/2003 04:31 PM, Blake Schroeder wrote: Whats the best way to validate email address (check for white space, check for .com, .net.edu etc) Try this class: http://www.phpclasses.org

[PHP] Re: validating email address

2003-12-03 Thread Manuel Lemos
Hello, On 12/03/2003 07:53 PM, Justin Patrin wrote: Or you could always use the PEAR package: http://pear.php.net/package/Validate That package only does textual validation of the e-mail address. It does not check against the DNS nor tries to ask the end SMTP server if it would accept e-mail to

RE: [PHP] PHP form to fax?

2003-12-03 Thread J J
Does anyone use this service with PHP and would it be possible to see some sample code on how you format the email/message to their server? I couldn't find any information on PHP and utilizing their service, or how the message needs to be formatted. Thanks! --- Jeff McKeon <[EMAIL PROTECTED]> w

Re: [PHP] Re: talking to a web page

2003-12-03 Thread David T-G
Justin, et al -- ...and then Justin Patrin said... % % You can use PEAR's HTTP_Client package % (http://pear.php.net/package/HTTP_Client) to connect to a website, do % authentication, post forms, handle redirects, etc. It also keeps track % of cookies. Oh, goodie; that sounds great. % % He

Re: [PHP] copy_file() files

2003-12-03 Thread Ajai Khattri
On Wed, Dec 03, 2003 at 11:19:46PM +0100, Bronislav Klucka wrote: > are you working with uploaded files?? because move_uploaded _files() woks > only with them, I switched to this function and had the same problem. > and what is $image variable??? is that file on disk or uploaded file?? do u It

[PHP] Re: validating email address

2003-12-03 Thread Justin Patrin
Actually it does do DNS checking. It doens't yet check to make sure that the mail will work, but it could easily be added. Manuel Lemos wrote: Hello, On 12/03/2003 07:53 PM, Justin Patrin wrote: Or you could always use the PEAR package: http://pear.php.net/package/Validate That package only

[PHP] Remote Server Info

2003-12-03 Thread Jason Williard
Is there a function that can get remote server information such as what server software the remote host is running? - Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: talking to a web page

2003-12-03 Thread Justin Patrin
One last thing. If all you need to do is go to a page and not navigate it, you could just use HTTP_Request, upon which HTTP_Client is built. Then again, if you have multiple request to do and have to keep sending the auth data, the Client would be best. David T-G wrote: Justin, et al -- ...an

[PHP] PHP - Oracle - BLOBs - Display BLOB data in a table

2003-12-03 Thread Ahbaid Gaffoor
I have written the first half of my application which stores images in BLOB fields of an oracle database. This part of my app. works fine. I am now trying to download the database stored blob and display it in my web page. I am able to get the blob data into a variable called $blobdata. If I

Re: [PHP] Remote Server Info

2003-12-03 Thread Ajai Khattri
On Wed, Dec 03, 2003 at 02:35:16PM -0800, Jason Williard wrote: > Is there a function that can get remote server information such as what > server software the remote host is running? http://www.php.net/manual/en/ref.info.php -- Aj. Sys. Admin / Developer -- PHP General Mailing List (http://w

RE: [PHP] PHP - Oracle - BLOBs - Display BLOB data in a table

2003-12-03 Thread Chris W. Parker
Ahbaid Gaffoor on Wednesday, December 03, 2003 2:46 PM said: > I have written the first half of my application which stores images in > BLOB fields of an oracle database. > > This part of my app. works fine. > > I am now trying to download the database stored blob

[PHP] search/replace functions

2003-12-03 Thread Scott Ware
I'm new to the list, and I don't want this to sound like a stupid ?, but I am having an issue with a function that I created. I have some code stored in a database, similar to XML-style tags, but I just created them myself to be more "user-friendly" to people. Like for instance , and (would make

RE: [PHP] PHP - Oracle - BLOBs - Display BLOB data in a table

2003-12-03 Thread Chris
You would need to have two separate pages, theimage.php and displayimage.php. theimage.php will just return the image data in a readable format the browser knows is an image.: displayimage.php will be a normal php page with an image tag like this: Chris -Original Message- From: Ahbai

Re: [PHP] Re: talking to a web page

2003-12-03 Thread David T-G
Justin, et al -- ...and then Justin Patrin said... % % One last thing. If all you need to do is go to a page and not navigate % it, you could just use HTTP_Request, upon which HTTP_Client is built. That sounds even better; I'm only going to be dealing with a couple of pages. % Then again, if

Re: [PHP] PHP - Oracle - BLOBs - Display BLOB data in a table

2003-12-03 Thread Justin Patrin
Actually, I would suggest using two scripts. The first takes the id of the row as a GET parameter (say $id) and grabs the image data, sends the header, and echoes the data. The second script outputs a web page with an img tag. As such: image.php page.php Image.jpg Chris W. Parker wrote:

Re: [PHP] Re: talking to a web page

2003-12-03 Thread Justin Patrin
Well, technically, you should be using the PEAR installer script to install PEAR packages. http://pear.php.net/manual/en/installation.php Barring that, you can make yourself a PEAR directory somewhere and add it to your include_path in your php.ini. Also note that you have to have all of the de

  1   2   >