RE: [PHP] Security of PHP code

2001-07-05 Thread Adrian Ciutureanu
$allowed_path = '/www/sites/mysite/teaching'; $file = realpath($file); if(ereg(^$allowed_path, $file)) { // it's OK } else { // possible attack! } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 4 iulie 2001 15:29 To: [EMAIL PROTECTED]

[PHP] How to check the validity of a URL

2001-07-05 Thread José León Serna
Hello: I would like to know if there's any routine to check if a URL is valid, my purpose is have all the links on my web in this form: http://www.myweb.com/checker.php?url=http://www.someurl.com and if http://www.someurl.com is invalid, redirect the user to a friendly page and send me a

[PHP] hotmail, yahoo..why can't me?

2001-07-05 Thread Dhaval Desai
Hi! I wanna do something like in ur mailboxes. if u check ur hotemail or yahoo a/c u can find checkboxes on the left side of each message. U can check the boxes and delete the messages.. I want to delete certain rows that come out of a database. So if I have 20 records coming out of the

[PHP] raw POST data

2001-07-05 Thread Xavier Paz
Hi, Is there any way to get the raw POST data sent by the client? I mean the full data, before parsing into PHP variables. I am using PHP 3.0.16 with Apache. Regards, Xavier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Parse URL parameters

2001-07-05 Thread Andy
How can I parse parameters sent with the URL of an pgp site? Example: I call the site with http://www.server.xyz/sub/site.php?a1=123a2=312 How can I get the values of a1 and a2? Thanks, folks! Andy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] hotmail, yahoo..why can't me?

2001-07-05 Thread another programmer
I'm being quick, so pseudo code: on message display page: form method=post !loop till end of messages input type=checkbox name=deleteList value=!whateverid!whateverMessageName !endloop input type=submit name=notRequired value=Delete Selected Mail /form what happens is on sending, deleteList will

Re: [PHP] Parse URL parameters

2001-07-05 Thread ReDucTor
$vars = array(); $url2 = explode(?, $url); $url3 = explode(, $url2[1]); for($i=0;$isizeof($url3);$i++) { $url4 = explode(=, $url3[$i]); array_push($vars, array($url4[0], $url4[1])); } for($i=0;$isizeof($vars);$i++) { echo $vars[$i][0].=.$vars[$i][1]; } ? - James ReDucTor Mitchell

[PHP] Batch job in UNIX.

2001-07-05 Thread Johan Vikerskog (ECS)
If i want to add something into a table with just the mysql command. Is this possible. Like ./mysql -p -u root test insert into... Something like this.Is that possible and how in that case. Johan Vikerskog Technician - CAE Tools Support Research Technology Development

RE: [PHP] Parse URL parameters

2001-07-05 Thread Adrian Ciutureanu
?=a1 = '$a1'bra2 = '$a2'? :) -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5 iulie 2001 10:20 To: [EMAIL PROTECTED] Subject: [PHP] Parse URL parameters How can I parse parameters sent with the URL of an pgp site? Example: I call the site with

RE: [PHP] Parse URL parameters

2001-07-05 Thread Matthew Loff
Those are automatically assigned to $a1 and $a2. -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 3:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Parse URL parameters How can I parse parameters sent with the URL of an pgp site? Example: I call the

RE: [PHP] Security of PHP code

2001-07-05 Thread Adrian Ciutureanu
http://php.net/realpath $allowed_path = '/www/sites/mysite/teaching'; $file = realpath($file); if(ereg(^$allowed_path, $file)) { // it's OK } else { // possible attack! } -Original Message- From: Steve Werby [mailto:[EMAIL PROTECTED]] Sent: 5 iulie 2001 02:22 To:

RE: [PHP] Security of PHP code

2001-07-05 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The only foolproof method for restricting access is to strip forward slashes. In the above example, I can change the file to: /www/sites/mysite/teaching/../../../../etc/passwd And it will be allowed If you were to do this, however:

Re: [PHP] raw POST data

2001-07-05 Thread Thies C. Arntzen
On Thu, Jul 05, 2001 at 09:14:36AM +0200, Xavier Paz wrote: Hi, Is there any way to get the raw POST data sent by the client? I mean the full data, before parsing into PHP variables. no - you would have to hack it up hint: serch for _RAW_ in /functions/post.c tc I am using

[PHP] Suggest Table Structure

2001-07-05 Thread kachaloo
Hi guys, I am making a table which will store articles for a site and the feilds are : ID int(6) NOT NULL auto_increment, CATEORY varchar(10) NOT NULL DEFAULT 'EVENTS' , HEADING varchar(30) NOT NULL DEFAULT '' , BODY longblob ,

[PHP] verifying that a dropdown was selected

2001-07-05 Thread Richard Kurth
I have a dropdown box that is for selecting the month How can I be verified that the customer has selected one of the months. I am using verification like this but it does not do what I want for a dropdown box it works fine for regular fields if ($month == ) {

RE: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Don Read
On 05-Jul-01 Richard Kurth wrote: I have a dropdown box that is for selecting the month How can I be verified that the customer has selected one of the months. I am using verification like this but it does not do what I want for a dropdown box it works fine for regular fields if

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Tom Gitzinger
Hello Richard, I'm not quite sure but I think the problem is the following: - If no month has been specified, the variable $month is not defined. - If you then mention $month in if ($month == ) the Parser creates the variable. Its value is unpredictable, but it is most unlikely

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Alexander Deruwe
On Thu, Jul 05, 2001 at 12:05:28PM +0200, Tom Gitzinger wrote: Hello Richard, I'm not quite sure but I think the problem is the following: - If no month has been specified, the variable $month is not defined. - If you then mention $month in if ($month == ) the Parser

[PHP] ok!

2001-07-05 Thread Johan Vikerskog (ECS)
Simple question and i know that i shouldent post it here. Hope you bare with me. I have a mysql database that is called supportdb How do i create an account for my user so he can connect to this database? Do i use mysqlacccess? //johan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Dave Mariner
ermshouldnt that be if($month == 00 ) { ? Dave - Original Message - From: Richard Kurth [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, July 05, 2001 12:35 PM Subject: [PHP] verifying that a dropdown was selected I have a dropdown box that is for

Re: [PHP] Batch job in UNIX.

2001-07-05 Thread Alexander Wagner
Johan Vikerskog (ECS) wrote: If i want to add something into a table with just the mysql command. Is this possible. Like ./mysql -p -u root test insert into... Something like this.Is that possible and how in that case. echo insert into... | ./mysql -p -u root test or cat filename | ...

RE: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Adrian Ciutureanu
select size=1 name=month option value=0 selectedSelect month option value=1January . . . /select . . . if(!$month) { // please select month } else { // month selected } -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: 5

[PHP] php binary ??

2001-07-05 Thread Marc van Duivenvoorde
I've got a small question, can I make php system scripts just like perl when I have compiled php as a dso module for apache or do I have to compile it to an binary executable ?? something like #! /usr/bin/perl -w with a script except then for php. Marc van Duivenvoorde -- PHP General

Re: [PHP] php binary ??

2001-07-05 Thread Justin Farnsworth
Just an observation.. It is already installed in RedHat 7x and is found in /usr/bin/php. If you are running Linux, you can probably easily get the RPM. _jef Marc van Duivenvoorde wrote: I've got a small question, can I make php system scripts just like perl when I have compiled php as a

[PHP] optimal code

2001-07-05 Thread Adrian Ciutureanu
Is any of the versions below more effective? /** Version 1 **/ ? if($condition) { // some big code } else { // other big code } ? /** Version 2 **/ ? if($condition) { include 'file_with_some _big_code.php'; } else { include

RE: [PHP] Batch job in UNIX.

2001-07-05 Thread Johan Vikerskog (ECS)
But i want dont want to type in the password. I want to have the password in the command file. //Johan -Original Message- From: Alexander Wagner [mailto:[EMAIL PROTECTED]] Sent: den 5 juli 2001 12:57 To: Johan Vikerskog (ECS); [EMAIL PROTECTED] Subject: Re: [PHP] Batch job in UNIX.

Re: [PHP] optimal code

2001-07-05 Thread Thies C. Arntzen
On Thu, Jul 05, 2001 at 02:29:12PM +0300, Adrian Ciutureanu wrote: Is any of the versions below more effective? /** Version 1 **/ ? if($condition) { // some big code } else { // other big code } ? /** Version 2 **/ ? if($condition) {

Re: [PHP] optimal code

2001-07-05 Thread Justin Farnsworth
This depends upon what you mean by effective. For administration purposes, it may be that you want to include some commen code, and therefore not rewrite reusable bits. If you are talking about speed, opening a file is expensive because it is a kernel call, a directory search and all that. Your

Re: [PHP] Batch job in UNIX.

2001-07-05 Thread Alexander Wagner
Johan Vikerskog (ECS) wrote: But i want dont want to type in the password. I want to have the password in the command file. --password=whatever_it_is instead of -p ? If that doesn't help, try ./mysql --help regards Wagner -- Madness takes its toll. Please have exact change. -- PHP

RE: [PHP] optimal code

2001-07-05 Thread Richard Heyes
If you are talking about speed, opening a file is expensive because it is a kernel call, a directory search and all that. Your some big code in-line will beat it every time... Not in my experience. I have a file which defines ~40 functions, with the bodies included when the function is

RE: [PHP] Batch job in UNIX.

2001-07-05 Thread Gunther E. Biernat
But i want dont want to type in the password. I want to have the password in the command file. echo insert into... | ./mysql -p -u root test or cat filename | ... Perfectly right. And a mysql --help would have told you that you can call it (combined with the above) like this: echo

RE: [PHP] optimal code

2001-07-05 Thread Nick Davies
surely the include function only pastes the contents of the included file into the point where the include statement occours. Php still has to parse it all. On Thu, 5 Jul 2001, Richard Heyes wrote: If you are talking about speed, opening a file is expensive because it is a kernel call, a

Re: [PHP] optimal code

2001-07-05 Thread Justin Farnsworth
But, my friend, if you include that file, PHP _still_ has to parse it. You just didn't benchmark. No matter what ?php big_code_inline; (which PHP has to interpret) ? will beat ?php include file_with_big_code_inline (which PHP has to interpret) ? because of

[PHP] multiple domains using one cookie

2001-07-05 Thread Tobias Talltorp
Hello all. I want multiple domains to be able to read from one cookie, or set one cookie each for the different domains. Here is the case: When the user logs in to my server, I want to set a cookie that has the value $name=tobias. He specifies which domains that can read this cookie,

Re: [PHP] optimal code

2001-07-05 Thread Justin Farnsworth
Nick Davies wrote: surely the include function only pastes the contents of the included file into the point where the include statement occours. Php still has to parse it all. --- Right, and so no matter what, you still have the extra cost of the file operation, something almost a magnitude

RE: [PHP] optimal code

2001-07-05 Thread Richard Heyes
But, my friend, if you include that file, PHP _still_ has to parse it. You just didn't benchmark. No matter what Actually, I did do benchmarks, you simply didn't understand correctly. Not all of the functions are used on every page. So if I were to include all the functions in one file,

[PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
Hi, I need to set up a sockets connection to a server that was written in Delphi. Using the following code I can connect to the socket and send a message through it but don't get a reply back ... { echo Socket opened ok ... sending messagebr; $message=sprintf(Steve%c

RE: [PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
fixed it now by adding ascii(10) to reply from server BUT what if i use fgetc ? does anyone know the ascii value for EOF ? cheers, Steve -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: 05 July 2001 12:58 To: Php-General (E-mail) Subject: [PHP] Socket Madness

[PHP] ng working? - ignore

2001-07-05 Thread maatt
Just trying to see... -- Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] PHP Books

2001-07-05 Thread Bernie Kruger
Hi, I know this may be a previously discussed topic, but I want to be sure I get the right books. I need a good book on intermediate PHP programming. I am looking to buy PHP 4 Bible, but is that the best I can get? I looked through the list on the PHP website, but it does not rate the

Re: [PHP] PHP Books

2001-07-05 Thread Roger Ramirez
On Thu, 5 Jul 2001, Bernie Kruger wrote: Hi, I know this may be a previously discussed topic, but I want to be sure I get the right books. I need a good book on intermediate PHP programming. I am looking to buy PHP 4 Bible, but is that the best I can get? I looked through the list on

RE: [PHP] PHP Books

2001-07-05 Thread kmurrah
I second the recommendation of the WROX Professional PHP Programming book. If database work is anywhere in your future, though, try PHP and MySQL Web Development by Luke Welling and Laura Thomson. It is an EXCELLENT reference on both PHP and MySQL, and although I own several PHP books, I find

[PHP] problem with php3 and safe mode

2001-07-05 Thread Denis Chapligin
Hi I have apache compiled with next configuration: Server: Apache/1.3.19 (Unix) PHP/4.0.5 PHP/3.0.18 mod_perl/1.25 mod_ssl/2.8.3 OpenSSL/0.9.6a rus/PL30.4 It runs on SunOS censo.red.cityline.ru 5.7 Generic_106541-12 sun4u sparc SUNW,UltraSPARC-IIi-cEngine Where php4 compiles as dso and php3

Re: [PHP] PHP Books

2001-07-05 Thread Jeff Lewis
I strongly suggest this book. I bought it about a month or two ago and learned PHP with it. it is an EXCELLENT book. Jeff www.hyrum.net www.xnull.com If database work is anywhere in your future, though, try PHP and MySQL Web Development by Luke Welling and Laura Thomson. It is an EXCELLENT

Re: [PHP] PHP Books

2001-07-05 Thread Nick Davies
On Thu, 5 Jul 2001, Roger Ramirez wrote: On Thu, 5 Jul 2001, Bernie Kruger wrote: Hi, I know this may be a previously discussed topic, but I want to be sure I get the right books. I need a good book on intermediate PHP programming. I am looking to buy PHP 4 Bible, but is that the

Re: [PHP] Socket Madness !!!!

2001-07-05 Thread Justin Farnsworth
Steve Brett wrote: fixed it now by adding ascii(10) to reply from server BUT what if i use fgetc ? does anyone know the ascii value for EOF ? cheers, Steve I think it is four (CTRL-D), viz: | 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel| | 08 bs | 09 ht | 0a nl |

[PHP] doing a search for domains

2001-07-05 Thread Romulo Roberto Pereira
Hello, I am curious about creating a script that would bring me results of a search organized not by the actual name of the domain but the lenght of each part of a domain. This is an example: Domains that finish in .com/.net/.org with the lenght of one character: a.com a.net a.org b.com b.net

Re: [PHP] Suggest Table Structure

2001-07-05 Thread Mauricio T?llez Jim?nez
Hi, you have to break your table in pieces and create tables for items that occur more than once. For example: CREATE TABLE articles ( ID int(6) NOT NULL auto_increment, id_category UNSIGNED INT REFERENCES category, HEADING varchar(30) NOT NULL DEFAULT '' , BODY longblob , ...) CREATE TABLE

[PHP] session troubles

2001-07-05 Thread Brad Wright
Hi all, Im new to this mailing list so im not sure what to expect from 'y'all' but i'm hoping this will be the beginning of a long and beautiful friendship. My question: i have a series of PHP4 pages that if I start a session (session_start()) on the first page (adminLogin.php), all is fine and

RE: [PHP] session troubles

2001-07-05 Thread Steve Brett
your session_start() has to be the first thing in the page. no blank lines etc. like ?php session_start(); include(db.inc); include(classes/user-class.inc); session_register(user); ? right at the top of your page. a blank line will send header info ... Steve -Original Message- From:

Re: [PHP] session troubles

2001-07-05 Thread Justin Farnsworth
You must have some white space going out somewhere before your code/HTML starts, that you are unaware of. If you can't find it, you can always buffer up your output with ob_start() and put it out later... --- Brad Wright wrote: Hi all, Im new to this mailing list so im not sure

[PHP] File download script

2001-07-05 Thread Tom Carter
Hi all, I have a script getfile.php which when I call like getfile.php?fileid=12 and it returns the file to the browser with the appropiate mime headers etc.. however a problem has recently come where when I have a link to this from a page then it prompts me to download the page I'm calling

[PHP] Executing after certain time

2001-07-05 Thread Oliver Hotz
Hey guys, I have a php script that generates files, and a www page that links to them. Is there a way to delete those files, based on a time variable ?.. lets say 1 minute after they have been generated, they get deleted ? (this is on redhat linux, and the latest build of php/apache 1.3)

[PHP] Writting to files.?

2001-07-05 Thread James Bartlett
Hi, Anyone know how I can write and read to different lines in a file rather than just adding to the text already on the first line of the file? Thanks Zotud

Re: [PHP] Executing after certain time

2001-07-05 Thread Marty Landman
At 08:41 am 7/5/01 -0700, Oliver Hotz wrote: Hey guys, I have a php script that generates files, and a www page that links to them. Is there a way to delete those files, based on a time variable ?.. Why not have cron kick off a script every minute that checks all candidate files and deletes

RE: [PHP] Security of PHP code

2001-07-05 Thread Christopher Ostmo
Adrian Ciutureanu pressed the little lettered thingies in this order... $allowed_path = '/www/sites/mysite/teaching'; $file = realpath($file); if(ereg(^$allowed_path, $file)) { // it's OK } else { // possible attack! } This is not good code. A user could replace the $file in the URL

RE: [PHP] Security of PHP code

2001-07-05 Thread Adrian Ciutureanu
This is a good code. Read http://php.net/realpath -Original Message- From: Christopher Ostmo [mailto:[EMAIL PROTECTED]] Sent: 5 iulie 2001 19:57 To: Adrian Ciutureanu Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Security of PHP code Adrian Ciutureanu pressed the little lettered

RE: [PHP] Security of PHP code

2001-07-05 Thread Adrian Ciutureanu
An observation: I presume (in my code) that $allowed_path is a root of an allowed path. So, files in subfolders of allowed_path are also allowed. -Original Message- From: Christopher Ostmo [mailto:[EMAIL PROTECTED]] Sent: 5 iulie 2001 19:57 To: Adrian Ciutureanu Cc: [EMAIL

[PHP] FEDEx API's

2001-07-05 Thread Daniel Guerrier
The FED Es api suite says tat windows is a requirement. Has anyone intergrated this into a sight using PHP on linux. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List

RE: [PHP] Security of PHP code

2001-07-05 Thread Christopher Ostmo
Adrian Ciutureanu pressed the little lettered thingies in this order... This is a good code. Read http://php.net/realpath You are correct. I was unaware of the addition of the realpath() function to PHP. According to the description of realpath(), using it should close this hole also.

RE: [PHP] PHP Books

2001-07-05 Thread Rudolf Visagie
Hallo Bernie, Ek het begin met 'Teach yourself PHP in 24 hours' en to later 'PHP Developer's Cookbook' aangeskaf van Sterling Hughes. Eg. help met die basiese en lg. het meer gevorderde 'resepte' in. Dit het goeie resensies gekry en ek geniet dit. Groetnis Rudolf Visagie [EMAIL PROTECTED]

[PHP] PHP Run Command Line

2001-07-05 Thread Matt Simpson
I need to let PHP run a command as SU... is there any way it can be done? I need it to let Courier compile it's makeuserdb and makemaildir. Any help would be great. -- Matt Simpson Design Coordinator [EMAIL PROTECTED] Online Creator Inc 780 Midpark Dr. Suites 105 107 Phone:

RE: [PHP] VERY URGENT

2001-07-05 Thread php
I look forward to your earliest reply through my email address or by my Tel:874-762-727947, fax:874-762-727949. yours truly SOLOMON BALOGUN. this supposed banker is using a phone number that if dialed from anywhere in the world, can charge your phone bill $24,000. Yes twenty

RE: [PHP] Batch job in UNIX.

2001-07-05 Thread Don Read
On 05-Jul-01 Johan Vikerskog (ECS) wrote: If i want to add something into a table with just the mysql command. Is this possible. Like ./mysql -p -u root test insert into... mysql -e cmd mysql -B cmd mysql somescript.sql cat many*.sql | mysql -- also look at -- mysql --help -- Don

Re: [PHP] Using PHP + GD to make bar graphs?

2001-07-05 Thread Aaron Bennett
I've had good success in creating SVG (Scalable Vector Graphic) documents for producing bar/line/pie graphs... The format uses an XML document for its structure, so producing data from a database connection is very easy and produces nice results.. More information at:

RE: [PHP] Batch job in UNIX.

2001-07-05 Thread Don Read
On 05-Jul-01 Johan Vikerskog (ECS) wrote: But i want dont want to type in the password. I want to have the password in the command file. No, you don't. Put your user name password in ~/.my.cnf (as explained in the fine manual). -- Don Read [EMAIL

[PHP] Bandwidth?

2001-07-05 Thread Shrout, Ryan
I know this really isn't a correct list, but I know most of you have experience in getting hosting, etc and you have been very helpful in my PHP troubles, so maybe you can help me here, too! :) Anyway, my site is currently colocated at a small ISP, that charges as follows: $265 - 2U rackspace

RE: [PHP] Bandwidth?

2001-07-05 Thread Chadwick, Russell
Most colocations charge by sustained bandwidth throughout the month, not in transfers per month so it may be difficult to get a comparison. I am paying 485$/month which gets me 6U (2 servers) and a sustained 350kb/sec which comes out to ummm a lot. The colocation is at a Level3 facility with

RE: [PHP] Executing after certain time

2001-07-05 Thread Don Read
On 05-Jul-01 Oliver Hotz wrote: Hey guys, I have a php script that generates files, and a www page that links to them. Is there a way to delete those files, based on a time variable ?.. lets say 1 minute after they have been generated, they get deleted ? man find (check for the -mmin

Re: [PHP] Bandwidth?

2001-07-05 Thread Alex Behrens
Most colos charge for a dedicated pipe, 512k, 1mb, etc, per month, not usually by total transfer. However, some do but they usually give you like 30 or 50gb per month. The 8 you are getting is very low. My old host gave us 50gb for $150, so thats $3/gb. :) Thanks!

[PHP] where can I find a good documentation on regular expressions?

2001-07-05 Thread Mick Foster
where can I find a good documentatio on regular expressions? I´m desperate in need of it... thanks for your time -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

RE: [PHP] Bandwidth?

2001-07-05 Thread Chadwick, Russell
The little b, bits, so ~45KB -Original Message- From: Shrout, Ryan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 10:26 AM To: 'Chadwick, Russell' Subject: RE: [PHP] Bandwidth? Is that 350 KB/sec or 350 kbps? Ryan Shrout -Original Message- From: Chadwick, Russell

RE: [PHP] Writting to files.?

2001-07-05 Thread Don Read
On 05-Jul-01 James Bartlett wrote: Hi, Anyone know how I can write and read to different lines in a file rather than just adding to the text already on the first line of the file? Thanks Assuming you're talking about text files: A. suck the whole thing up in memory, change it there,

RE: [PHP] where can I find a good documentation on regular expressions?

2001-07-05 Thread Andrew Kirilenko
Hello! Try to find some good PERL or PHP book. You can get one from http://194.84.74.116/iced/lp.tar.gz Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -Original Message- From: Mick Foster [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05,

Re: [PHP] where can I find a good documentation on regular expressions?

2001-07-05 Thread Justin Farnsworth
I like the O'Reilly book on Regular Expressions. _jef --- Mick Foster wrote: where can I find a good documentatio on regular expressions? I´m desperate in need of it... thanks for your time -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] where can I find a good documentation on regular expressions?

2001-07-05 Thread David A Dickson
On Thu, 05 Jul 2001 14:33:55 Mick Foster wrote: where can I find a good documentatio on regular expressions? I´m desperate in need of it... Try the manual at www.php.net/manual/en Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ -- PHP General Mailing

[PHP] Re: where can I find a good documentation on regular expressions?

2001-07-05 Thread Mike Eggleston
Actually, If you look at the Perl pages, you will find some awesome documentation on reg.exps. Have fun!! Mike Eggleston Mick Foster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... where can I find a good documentatio on regular expressions? I´m desperate in need of

[PHP] Frames, PDF and links problem

2001-07-05 Thread Shrout, Ryan
Here is the problem I am facing now. I have a site, with a sort-of shopping cart but heavily modified for the job it does. The site uses 2 frames: 1 for the cart and 1 for the content. The customer has Acrobat PDF files that they want links in to add things to the 'cart'. If PDF files had the

[PHP] Interpreting PHP in dynamic generated web-pages

2001-07-05 Thread Dieter Stolpmann
Hi, I'm trying to solve the following issue in a (hopefully) simply way: - I'm creating web-pages using php and perl (using a page template) - the dynamically created pages may contain php code which I like to get interpreted in a normal fasion. The ideas is have to solve the

[PHP] mail() and command line headers

2001-07-05 Thread Eric Wood
I can easliy add addional email header using the php mail() function. Does 'mail' or 'sendmail' have this same ability to add email headers from the command line? Thanks, -eric wood -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] upgrading to gd2.0.1

2001-07-05 Thread Mark Maggelet
Hi, I just upgraded gd to 2.0.1 and recompiled apache1.3.20/php4.06. when I do phpinfo() it says: GD Support enabled GD Version 1.6.2 or higher WBMP Support enabled and when i call imagepng() it says: Warning: ImagePng: No PNG support in this PHP build any ideas what's going on here? I removed

Re: [PHP] multiple domains using one cookie

2001-07-05 Thread Mark Maggelet
On Thu, 5 Jul 2001 14:59:19 +0200, Tobias Talltorp ([EMAIL PROTECTED]) wrote: Hello all. I want multiple domains to be able to read from one cookie, or set one cookie each for the different domains. Here is the case: When the user logs in to my server, I want to set a cookie that has the value

RE: [PHP] Writting to files.?

2001-07-05 Thread lists
On Thu, 5 Jul 2001, Don Read wrote: Anyone know how I can write and read to different lines in a file rather than just adding to the text already on the first line of the file? A. suck the whole thing up in memory, change it there, write it back out. Just as a note: for large (text or

[PHP] $phpvar = javascriptvar???

2001-07-05 Thread Romeo Manzur
what I mean is, how could I save a javascript var value on a php var??? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Creating Internationally Accessible Web Apps - i18n

2001-07-05 Thread Mike Gifford
Hello, I'm posting here (rather than on i18n) because I was having problems with the other newsgroup (and well because I always get the best answers to my php questions by posting here). I've got a couple web apps that I'd like to standardize so that they are more multilingual and was

Re: [PHP] multiple domains using one cookie

2001-07-05 Thread Kurt Lieber
Actually, that's not entirely accurate. You can set cookies for multiple domains on one HTML page -- you simply have to write a page that calls one image from each domain that you want to set a cookie on, even if that image is nothing but a 1x1 transparent gif. Cookie management and updating

Re: [PHP] $phpvar = javascriptvar???

2001-07-05 Thread Kurt Lieber
As the original respondent said: window.location = 'http://url?yourVar=' + yourVar; from there, parse out the URL variable and store it into a PHP variable and you're good to go. - Original Message - From: Romeo Manzur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 05,

Re: [PHP] $phpvar = javascriptvar???

2001-07-05 Thread Romeo Manzur
I want to store the value of screen.ColorDepth on a php var... Thanks... Kurt Lieber wrote: As the original respondent said: window.location = 'http://url?yourVar=' + yourVar; from there, parse out the URL variable and store it into a PHP variable and you're good to go. -

Re: [PHP] PHP for NetWare?

2001-07-05 Thread Chris Anderson
I agree, I've had it at work and I hated it. I love my SuSE box at home. What more security do you need than Linux? - Original Message - From: Jesse S. Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 04, 2001 3:30 AM Subject: RE: [PHP] PHP for NetWare? Actually,

[PHP] how can I call a link? ??

2001-07-05 Thread Shrout, Ryan
I don't really no how to word this. How can I use a single PHP to update two sides of a framed page? like a call to: add.php?add=4ffqe45manual=123.33fn=ex1 I want it to update the left frame with a call to: http://serverview_cart.php?add=4ffqe45 and I want it to update the right frame with a

[PHP] Submiting Data with an '

2001-07-05 Thread Mike Mike
Hello everyone, I'm having a problem of submiting an ' into a mysql database. When I have a ' it doesn't update or submit the data. but if I use \' it works fine. Does anyone know of a way around this. Thanks --Mike __ Do You Yahoo!? Get

[PHP] Re: how can I call a link? ??

2001-07-05 Thread Philip Hallstrom
Use javascript. Have that first page return HTML that contains javascript along the following: html script top.leftframe.document.href = 'http://serverview_cart.php?add=4ffqe45'; top.rightframe.document.href = 'http://server/pdf/ex1.pdf'; /script /html You'll need to change the

RE: [PHP] how can I call a link? ??

2001-07-05 Thread Matthew Loff
BODY onLoad=otherFrameName.document.location = 'http://serverview_cart.php?add=4ffqe45' I think that's how you'd do it... Can anyone with more experience in javascript verify? -Original Message- From: Shrout, Ryan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 3:18 PM To:

RE: [PHP] Submiting Data with an '

2001-07-05 Thread Matthew Loff
Use the addslashes() call to automatically escape characters like that. MySQL will not add the slashes into the table cell, so no need to stripslashes() after you SELECT it back out. -Original Message- From: Mike Mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 3:19 PM

[PHP] Sessions and redundant servers

2001-07-05 Thread Daniel Baldoni
G'day folks, Here's a theoretical question for those of you using PHP's inbuilt session facilities... How do you keep your variables across redundant servers? Or, isn't anybody out there hosting PHP-based services on grouped servers? My question may reflect a lack of

Re: [PHP] PHP for NetWare?

2001-07-05 Thread Tony Gettig
NetWare is great for an enterprise where directory enabled management is a requirement. And it is bullet-proof secure and 24/7 reliable if setup correctly. (Most NOS's are with a couple of exceptions. :) I work for a school system, and I can't imagine managing accounts on multiple servers

Re: [PHP] $phpvar = javascriptvar???

2001-07-05 Thread Kurt Lieber
I must not be clear on your question as it seems my response (and the original response) describe exactly what you're looking to do. I recommend you check out forums.devshed.com and do a search in their PHP forum for javascript php variable You'll get a ton of examples and suggestions. Here's

Re: [PHP] Sessions and redundant servers

2001-07-05 Thread infoz
The load-balanced cluster implementations I've worked with define a PHP session handler that uses a database to store session data, and so it doesn't matter which web server a particular session comes from, the data is stored in a centralized place. - Tim http://www.phptemplates.org How do

Re: [PHP] Interpreting PHP in dynamic generated web-pages

2001-07-05 Thread lists
On Thu, 5 Jul 2001, Dieter Stolpmann wrote: Hi, I'm trying to solve the following issue in a (hopefully) simply way: - I'm creating web-pages using php and perl (using a page template) - the dynamically created pages may contain php code which I like to get interpreted in a normal

[PHP] PHP/Apache security question

2001-07-05 Thread lists
Hello list, I have a security problem to solve with my apache setup and I am clueless at this moment... My web server holds multiple domains and uses name-based virtual servers to direct requests to different portions of the html tree for different domain names (we presume only one IP is

  1   2   >