Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 21:42:58 -0700, Josh Acecool M <[EMAIL PROTECTED]> wrote: > 5.0.0 > > Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text > you want to replace gets deleted and the INCLUDE includes on the top of the > page... You're not making senseyou're saying that

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
IF I do this: $text = file_get_contents('templateFile.php'); $text = preg_replace('/something/', include("something.php"), $text); then it gets put ON TOP of the file, not where "something" is... see what I am saying? but, I am doing this. $text = file_get_contents('templateFile.php'); $text =

Re: [PHP] Passing user entered data to DB

2004-08-05 Thread Justin Patrin
On Thu, 05 Aug 2004 12:35:59 +0200, Jordi Canals <[EMAIL PROTECTED]> wrote: > John Holmes wrote: > > >> $uservar = htmlspecialchars(strip_tags($uservar)); > > > > You don't need to use strip_tags _and_ htmlspecialchars()... unless you > > want strip_tags to get rid of such malicious and deadly con

Re: [PHP] Location header does not work?

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 10:35:47 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > I really appreciate everyone who responded taking your valuable time > looking into my problem. > > Now back to my problem. Changing the condition to "if($_SERVER['HTTPS'] > != 'on')" did not make any difference unfortu

[PHP] Further on Terminal Server

2004-08-05 Thread Lester Caine
OK I've established that I have to go to server side cookie management since all ten terminals are using the one copy of browser on the Terminal Server. OR is this because the log on to terminals server is generic. Would the problem be solved if the users have to log into Terminal Server every

Re: [PHP] Need Some Direction

2004-08-05 Thread Aaron Todd
So far I have made this work. But now I have to ask...what about a pdf file? I cant add php code to it so what do I do. I need to be able to restrict the pdf so a user can only get to it during a current session. Thanks again for all the previous posts. You all directed me to a good place. My

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 22:32:54 -0700, Josh Acecool M <[EMAIL PROTECTED]> wrote: > IF I do this: > > $text = file_get_contents('templateFile.php'); > $text = preg_replace('/something/', include("something.php"), $text); > then it gets put ON TOP of the file, not where "something" is... > > see what I

Re: [PHP] Re: POST superglobal is empty

2004-08-05 Thread AJL
I tried the C code below and I get post data from Apache fine. Now I tried to test that php gets data on stdin and that appears to fail. Maybe I tested wrong, can anyone verify if this test should work? Step 1: Set 'post_max_size = 1' in php.ini Step 2: Send html form post to this code: STRLEN

Re: [PHP] Re: str_replace() problem in PHP5 - RESOLVED

2004-08-05 Thread Jon Bertsch
Justin, We are using apache 1.3.31 ( From the original post "production server to php5.0.0 running on apache 1.3.31 on SUSE9.1") Jon Bertsch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Getting data from table as a tree

2004-08-05 Thread Torsten Roehr
"Pt2002" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you for your suggestion. > I've had already browse pear classes but didn't want to use them. > I've found some tips and now I can show the tree but I also need to have all > the data in an array and that's the problem now.

Re: [PHP] Need Some Direction

2004-08-05 Thread Torsten Roehr
"Aaron Todd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So far I have made this work. But now I have to ask...what about a pdf > file? I cant add php code to it so what do I do. I need to be able to > restrict the pdf so a user can only get to it during a current session. > >

[PHP] Outputting Data

2004-08-05 Thread Harlequin
It appears that I am unable to output the data to a directory because although my user has sufficient privileges on the database to execute the query the user in question does not have file privileges. As I am reliant on my host I'm looking for other ways to achieve this. Could I possibly set a p

Re: [PHP] Outputting Data

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 23:13:32 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > It appears that I am unable to output the data to a directory because > although my user has sufficient privileges on the database to execute the > query the user in question does not have file privileges. > > As I am relia

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Jordi Canals
Brian Dunning wrote: Developing on a Windows server to be deployed on Linux. I get "SMTP server response: 501 Bad address syntax." Here's my code: $mail_to = "$first_name $last_name <$email>"; On Windows Platform, You cannot use the TO address in the form "Name " As it fails because the mail() f

[PHP] O'Reilly Website Problem

2004-08-05 Thread Jeff - Webmaster
I am running PHP 4.03 on O'Reilly website 2.5 I have specified the content and associations as directed in O'Reilly's online support (what little of it exists anyway). I am running into an issue where all requests to any PHP page causes a termination of PHP.exe on the server. I have seen a coupl

[PHP] Re: Getting data from table as a tree

2004-08-05 Thread pt2002
Hi Sometimes, some clients just want a few scripts. sometimes to fix or to add some features in sites or apps already in production and that need to be something easy to install. kind of upload and go. They don't want a bundle of scripts with dependencies, they don't want configuring paths, etc, et

Re: [PHP] Re: References and array indexes

2004-08-05 Thread Curt Zirzow
* Thus wrote Ace: > Gabriel Birke kontor4.de> writes: > > > > > Hello! > > > > The following PHP code: > > > $a = array("1"=>"First Element", "2"=>"Second Element"); > > $v = &$a['3']; > > print_r($a); > > ?> > > has this result: > > > > Array( > > 1 => First Element, > > 2 => Second

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Justin Patrin
On Fri, 06 Aug 2004 00:57:32 +0200, Jordi Canals <[EMAIL PROTECTED]> wrote: > Brian Dunning wrote: > > > Developing on a Windows server to be deployed on Linux. I get "SMTP > > server response: 501 Bad address syntax." Here's my code: > > > > $mail_to = "$first_name $last_name <$email>"; > > On W

[PHP] File Upload Problems

2004-08-05 Thread Mark Collin
I'm having problems with my file upload code. If I start to upload files larger than a approx 400k the page seems to time out and I get a page cannot be displayed error. I have checked the php.ini on the server and max file size is 2Mb and max Post size is 8Mb. I initially thought that the scr

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Curt Zirzow
* Thus wrote Josh Acecool M: > > but, I am doing this. > > $text = file_get_contents('templateFile.php'); > $text = preg_replace('/something/', file_get_contents("something.php"), > $text); > eval("?>" . $text . "http://php.net/preg_quote Curt -- First, let me assure you that this is not one o

Re: [PHP] using headers to download a file takes too long

2004-08-05 Thread Curt Zirzow
* Thus wrote Mark Cooke: > Hi, > > I'm writing a few scripts that allows users to download files, > some around 45MB+. > ... > I've tried using readfile and fread, to access the files, yet both seem > to take the same amount of time, it would seem like they are getting > buffered, or maybe read

Re: [PHP] File Upload Problems

2004-08-05 Thread raditha dissanayake
Mark Collin wrote: I'm having problems with my file upload code. If I start to upload files larger than a approx 400k the page seems to time out and I get a page cannot be displayed error. I have checked the php.ini on the server and max file size is 2Mb and max Post size is 8Mb. This is ty

[PHP] FW: IMPORTANT: Please Verify Your Message

2004-08-05 Thread Ed Lazor
Gawd this stuff sucks. Nothing like a spammer posing as the list itself and farming email addresses from members. -Ed > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 05, 2004 11:54 AM > To: [EMAIL PROTECTED] > Subject: IMPORTANT: Please

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
You dont understan.. Say the template is: Blah {CONTENT} adasdasd I want to preg_replace("/{CONTENT}/", include("blah.php"), $text); blah.php contains Hello! This is what appears Hello! Blah adasdasd "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Jo

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread John Holmes
Josh Acecool M wrote: You dont understan.. Say the template is: Blah {CONTENT} adasdasd I want to preg_replace("/{CONTENT}/", include("blah.php"), $text); blah.php contains Hello! This is what appears Hello! Blah adasdasd That's exactly what's supposed to happen. PHP encounters your preg_replace l

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Fri, 6 Aug 2004 04:24:25 -0700, Josh Acecool M <[EMAIL PROTECTED]> wrote: > You dont understan.. > > Say the template is: > > Blah > {CONTENT} > adasdasd > > I want to preg_replace("/{CONTENT}/", include("blah.php"), $text); > > blah.php contains Hello! > > This is what appears > > Hello!

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Curt Zirzow
* Thus wrote Josh Acecool M: > You dont understan.. Not anymore. Honestly I haven't had a clue what was going on till Justin pushed you into the right direction. > > Say the template is: > > Blah > {CONTENT} > adasdasd > > I want to preg_replace("/{CONTENT}/", include("blah.php"), $text); th

[PHP] php source management

2004-08-05 Thread CHAN YICK WAI
if a project is worked by a small team of developers, is there a tool for source and version management for php source code? e.g. check which part of source is modified! Thanks for information. Regards, Yw

Re: [PHP] Advise on parsing XML

2004-08-05 Thread CD Baby
> I'm writing an xml parser. Gerard - All of that stuff has already been taken care of for you. Hundreds of hours have gone into developing GREAT xml parsers! http://www.php.net/dom and http://www.php.net/simplexml They take care of the utf-8 decoding and all of that. -- PHP General Mailing

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Curt Zirzow
* Thus wrote Brian Dunning: > Developing on a Windows server to be deployed on Linux. I get "SMTP > server response: 501 Bad address syntax." Here's my code: > > $mail_from = 'My Name <[EMAIL PROTECTED]>'; > $mail_server = 'mail.servername.com'; // This is hosted externally > ini_set("SMTP",

Re: [PHP] $HTTP_REFERER

2004-08-05 Thread Curt Zirzow
* Thus wrote Shaun: > Hi, > > I seem to have problems redirecting pages when I view my site using my > laptop, the only difference is that my laptop has Norton Firewall installed, > can this interfere with the $HTTP_REFERER variable and if so is there a more > reliable alternative? The reliable w

Re: [PHP] FW: IMPORTANT: Please Verify Your Message

2004-08-05 Thread Curt Zirzow
* Thus wrote Ed Lazor: > Gawd this stuff sucks. > > Nothing like a spammer posing as the list itself and farming email addresses > from members. Its odd, i've yet to get one of those. Either the spammers dns doesn't resolve proper (cause my server rejects those) or if its due to the fact I only r

Re: [PHP] php source management

2004-08-05 Thread Curt Zirzow
* Thus wrote CHAN YICK WAI: > if a project is worked by a small team of developers, is there a tool for source and > version management for php source code? e.g. check which part of source is modified! > Either cvs or subversion are good tools to use. Curt -- First, let me assure you that this

Re: [PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Curt Zirzow
* Thus wrote Ergin Aytac: > We made a test for only 20 min. and got our website online. The result > was 200.000.000 (!!) lines in apache error log with the following: > > httpd in free(): warning: chunk is already free. > httpd in free(): warning: page is already free. > httpd in free(): warning

RE: [PHP] FW: IMPORTANT: Please Verify Your Message

2004-08-05 Thread Ed Lazor
> -Original Message- > Its odd, i've yet to get one of those. Either the spammers dns > doesn't resolve proper (cause my server rejects those) or if its > due to the fact I only reply-to-list. > > I'm assuming its a dns issue at this point. Hrm. But my email server rejects those also? -E

[PHP] Strange PHP problem with mod_perl and MySQL

2004-08-05 Thread Phil Stracchino
I have a strange PHP problem. I'm running Apache-1.3.28, with mod_perl-1.29, mod_ssl-2.8.15, and PHP4, on a Slackware-based custom Linux installation. Up until today, I was running php-4.3.3, configured as follows: ./configure --with-mysql=/opt/mysql --with-db4=/usr/local/BerkeleyDB.4.1/ --with

[PHP] how to use HTTP_REFERER

2004-08-05 Thread khuram noman
hi i have 2 pages on my site one is index.php and other is join.php on index page there is link of join now when somee one comes to join now page i want to know from where it comes i means i want to know the referral page . iam using $HTTP_SERVER_VARS['HTTP_REFERER'] or $_SERVER['HTTP_REFERER'] bu

Re: [PHP] Strange PHP problem with mod_perl and MySQL

2004-08-05 Thread Phil Stracchino
On Fri, Aug 06, 2004 at 12:32:19AM -0400, Phil Stracchino wrote: > Note that the only change is the addition of --with-gd. After > installing php-4.3.8 and restarting Apache, all of the mod_perl registry > CGIs are dying at various points with SEGVs. Each one dies in a > consistent way at a consi

RE: [PHP] File Uploading Issue

2004-08-05 Thread PHP E-Mail List
Yeah I was at a friends house tonight and we telnetted (if that's a word) into the server and found that it was set for read only not execute and so I could see the directory listing but wasn't able to load the file in the browser. I figured it was something like this last night, but with out the

Re: [PHP] Advise on parsing XML

2004-08-05 Thread Gerard Samuel
On Thursday 05 August 2004 11:33 pm, CD Baby wrote: > > I'm writing an xml parser. > > Gerard - > > All of that stuff has already been taken care of for you. Hundreds of > hours have gone into developing GREAT xml parsers! > > http://www.php.net/dom > and > http://www.php.net/simplexml > > They ta

<    1   2