Re: [PHP] validating email address

2003-12-03 Thread Justin Patrin
Quick note: The PEAR Validate package does this for you. It also checks for an alternate A record. Terence wrote: You could use MX records if you wanted to. I found this some time ago... function checkEmail($Email) { //Do the basic Reg Exp Matching for simple validation if (eregi("[EMAIL

[PHP] [Newbie Guide] For the benefit of new members

2003-12-03 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first

[PHP] Re: PHP and Intranets

2003-12-03 Thread Luke
im from australia too :) more information on server variables is available from http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server heres and example of usage, and it only allows those 3 computer to view the page (this authentication isnt very good, as all someone would

Re: [PHP] validating email address

2003-12-03 Thread Terence
You could use MX records if you wanted to. I found this some time ago... function checkEmail($Email) { //Do the basic Reg Exp Matching for simple validation if (eregi("[EMAIL PROTECTED]", $Email)) { return FALSE; } //split the Email Up for Server validation list($Username, $

[PHP] Re: PHP and Intranets

2003-12-03 Thread Seung Hwan Kang
Colin Eldridge wrote: Hi, my name is Colin Eldridge, teacher from Australia. Hello Colin, Australia! I'm here in Wollongong Uni. I am relatively new to PHP. I have set up a small intranet for my students to build and use interactive webpages. The intranet: A server(P4, XP) running Apache, MY

Re: [PHP] PHP and Intranets

2003-12-03 Thread Erwin Kerk
Colin Eldridge wrote: > Question: Is there a simple way for PHP to identify which host a form > has come from? Do the hosts have fixed ip's? If Yes, you could use $_SERVER["REMOTE_ADDR"] do identify them... Erwin Kerk Web Developer E: [EMAIL PROTECTED] W: www.blixem.nl -- PHP General Mailing

[PHP] Re: i want help,thanks

2003-12-03 Thread Seung Hwan Kang
the use of session is not correct. :( if u use > php 4.1x .. as u do... u got to follow new standard. (see below) 乌有 无 wrote: > Hello: > I want your help! > The session sometime works well,sometime works badly! > It creates new empty file in /tmp.I also find this problem > with apache

[PHP] PHP and Intranets

2003-12-03 Thread Colin Eldridge
Hi, my name is Colin Eldridge, teacher from Australia. I am relatively new to PHP. I have set up a small intranet for my students to build and use interactive webpages. The intranet: A server(P4, XP) running Apache, MYSQL and PHP (from Janet Valade's text with CD-ROM) and 3 h

[PHP] Re: Text field comparison

2003-12-03 Thread Justin Patrin
Yes, but the user would have to submit the form and you would have to re-fill it out for them and give them a message saying that they must be equal. You could use the PEAR HTML_Form and Quickform packages for much of this. Jeff wrote: I have created a few forms using post. There are certain f

[PHP] BLOB - PHP Peformance DB vs. Web server Opinions

2003-12-03 Thread Ahbaid Gaffoor
Thanks to all who helped with my earlier questions on pulling BLOB data out of Oracle using PHP. I am however finding that performance is slow when downloading huge files from the database. A typical 2Meg GIF file being downloaded from Oracle via. PHP is taking about thirty seconds. Everythin

Re: [PHP] talking to a web page

2003-12-03 Thread David T-G
Justin -- ...and then Justin French said... % % On Thursday, December 4, 2003, at 08:13 AM, David T-G wrote: % % >Which route would y'all take, and (more importantly) which would you % >recommend to someone at my capable-but-not-expert level? Remember that % >I'll come back to the list when I

Re: [PHP] validating email address

2003-12-03 Thread Justin French
On Thursday, December 4, 2003, at 01:35 PM, John W. Holmes wrote: Blake Schroeder wrote: Whats the best way to validate email address (check for white space, check for .com, .net.edu etc) Just check for some text with a single @ in the middle. Honestly... If you're relying on the email any more

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

2003-12-03 Thread John W. Holmes
Matt Matijevich wrote: 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 c

Re: [PHP] Re: Building a query string

2003-12-03 Thread olinux
I like to store my where pieces in an array and then implode. I usually load my indexed columns first. $where = array(); if ($_POST['house_id'] == "yes") { $where[] = 'id = '.intval($_POST['house_id']); } if ($_POST['fireplace'] == "yes") { $where[] = 'fireplace = 1'; } if (isset($_POST['gar

Re: [PHP] validating email address

2003-12-03 Thread John W. Holmes
Blake Schroeder wrote: Whats the best way to validate email address (check for white space, check for .com, .net.edu etc) Just check for some text with a single @ in the middle. Honestly... If you're relying on the email any more than that, I'd have to wonder why. The only way to truly validate

Re: [PHP] Re: Building a query string

2003-12-03 Thread John W. Holmes
Ed Curtis wrote: 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

Re: [PHP] Building a query string

2003-12-03 Thread John W. Holmes
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. In addition to the other suggestions, if you're go

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

2003-12-03 Thread John W. Holmes
Robert Sossomon wrote: 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 I

[PHP] Re: search/replace functions

2003-12-03 Thread Luke
Id suggest using str_replace instead, its easy, and it will replace every ocurence of the items in the first array, with their corresponding items in the second array, the manual suggests using this instead or ereg_replace on a simple subject like this. http://www.php.net/str_replace old

[PHP] i want help,thanks

2003-12-03 Thread 乌有 无
Hello: I want your help! The session sometime works well,sometime works badly! It creates new empty file in /tmp.I also find this problem with apache1.3.12&php4.1.1&sybase11.9.2&linux My php.ini is fault my server config: php4.3.3 httpd2.0.44 linux 9 sybase-11.9.2 tar-vzxf php

RE: [PHP] Text field comparison

2003-12-03 Thread Chris W. Parker
Jeff on Wednesday, December 03, 2003 4:57 PM said: > I have created a few forms using post. There are certain fields that > must match (i.e. username/password) before submission. Can this be > accomplished using PHP? No, PHP is a server-side language. You need JavaS

[PHP] Text field comparison

2003-12-03 Thread Jeff
I have created a few forms using post. There are certain fields that must match (i.e. username/password) before submission. Can this be accomplished using PHP? If not, an alternative would be nice. Thanks. Jeff Hunnicutt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] talking to a web page

2003-12-03 Thread Justin French
On Thursday, December 4, 2003, at 08:13 AM, David T-G wrote: Which route would y'all take, and (more importantly) which would you recommend to someone at my capable-but-not-expert level? Remember that I'll come back to the list when I get stumped ;-) I'd talk with the owner of the control panel,

Re: [PHP] Variables scope question

2003-12-03 Thread Mike D
NEVERMIND - some user error there... (happens once in a while) It's been a long day ;-) Thanks - MD On 12/3/03 3:36 PM, "Martin Towell" <[EMAIL PROTECTED]> wrote: > This doesn't sound right. It's doesn't behave like this for me. > > Can you supply an example? > > Martin > >> -Original M

RE: [PHP] Variables scope question

2003-12-03 Thread Martin Towell
This doesn't sound right. It's doesn't behave like this for me. Can you supply an example? Martin > -Original Message- > From: Mike D [mailto:[EMAIL PROTECTED] > Sent: Thursday, 4 December 2003 10:35 AM > To: PHP General list > Subject: [PHP] Variables scope question > > > Hello, > >

[PHP] Variables scope question

2003-12-03 Thread Mike D
Hello, I have recently noticed something that I wasn't aware of until now. I have index.php which contains include1.txt and include2.txt. If a variable is set in include1.txt it will *only* have a local scope, even if I declare it GLOBAL. Is this normal or a bug? - MD

[PHP] Re: PEAR installations (was "Re: [PHP] Re: talking to a web page")

2003-12-03 Thread David T-G
Justin, et al -- ...and then Justin Patrin said... % % Well, technically, you should be using the PEAR installer script to % install PEAR packages. http://pear.php.net/manual/en/installation.php Oh. Oops :-) % % Barring that, you can make yourself a PEAR directory somewhere and add % it t

Re: [PHP] search/replace functions

2003-12-03 Thread David T-G
Scott -- ...and then Scott Ware said... % % 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. No problem! % % I have some code stored in a database, similar to XML-style tags, but I % just created them myself to be

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

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 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 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

[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 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

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

[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] 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] 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

[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

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

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] 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

[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

[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: 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 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.

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

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

[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] 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] 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

[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

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

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

[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,

[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

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

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] 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 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] 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] 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] 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] 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] 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 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] 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 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] 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

[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 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] 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

[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] 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] 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

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

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

[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

[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

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

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] 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] 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] 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] 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] 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

[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] 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] 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

[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

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

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

[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 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.

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

[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] 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

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

[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 }

[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

  1   2   >