[PHP] Page not found problem

2002-07-10 Thread Chen
I use php3 with IIS 5.0. When user typed a no existing .html or php3 page, they will get a "No input file specified." page. How can I point this to a HTTP Error 400 page? Anything can be set up in the php.ini file or in IIS configuration? Thanks for any help!! -- PHP General Mailing List (htt

Re: [PHP] Page not found problem

2002-07-10 Thread Chen
), the HTTP 404 error won't show up, only display "No input file specified." message. Chris Hewitt wrote: > Chen, > > If the webserver cannot file a file then this is a webserver problem not > php. You need to look at your IIS configuration/documentation. Sorry I > c

[PHP] Re: access denied

2002-10-04 Thread Chen Shuang
try CHMODing your files and your directory to 777, since i believe you are using a Linux Server. "Simon Angell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The PHP script im using works on my computers server, but when after > uploading to my web server i g

Re: [PHP] flushing data as it's being generated

2002-11-12 Thread arthur chen
Thanks, that did the trick! Should've read the documentation on flush( ). =] - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Tuesday, November 12, 2002 6:18 AM Subject: Re: [PHP] flushing data as it's being generated > On

[PHP] AUTH_PW & External Authentication

2001-01-26 Thread Chen Shiyuan
Hello everyone! I am currently using Apache-1.3.14 with php-4.0.4pl1 compiled statically into it and running on RedHat Linux 6.2 . Apache is configured to do authentication for certain URLs via a auth_ldap module which is dynamically loaded when Apache starts. I noticed that when I access the

[PHP] How to let PHP cgi find oracle TNS?

2001-05-10 Thread Jude Chen
I use PHP (version 4.0.3pl1) as a cgi on my IIS web server with NT4.0. But I find when I try to connect a distant Oracle database, PHP can not find the correct TNS name, quoted as followings:   Warning: Unable to connect to ORACLE (ORA-12154: TNS:could not resolve service name) in E:\

[PHP] How to let PHP cgi find oracle TNS?

2001-05-14 Thread Jude Chen
) in E:\website\yktest\web\includes\db\dbenv.php on line 4   But I have the correct TNS, through which I can connect to Oracle using SQL*PLUS, configured on the machine, using SQL*NET configuration tool.   I don't know why, can anyone help me?   Jude Chen

Re: [PHP] why isn't this working? (many questions inside)

2002-01-28 Thread Robin Chen
Maybe your script timed out before it could finish. Try set_time_limit(0) Another possibility is that your browser gave up. You may need 4GB of disk cache because browsers usually save all files in cache before copying them to the place you designate. Robin Wei Weng wrote: > > First, I am ru

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Robin Chen
"[-^-!-%-" wrote: > Hello everyone, > > I'm in the process of revising my db development prices, and was wondering > what the best practices were. I want to keep my prices low, but I often > feel like I'm not charging close to what I should be charging. > > 1) What is the going rate for Databas

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Robin Chen
We calculate the charge by $75-$150 per hour depending on complexity of the project, then quote customer the final price. On small projects, < $5000, its usually half before project, and half after project. For project > $5000, it's usually 30% up front, 30% when we have major features completed

[PHP] = 0 and = "0"

2001-10-25 Thread Robin Chen
why does work properly but not the following Thanks, Robin -- 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]

Re: [PHP] = 0 and = "0"

2001-10-25 Thread Robin Chen
Thank you, that was it. I needed to test the variable against both an integer and a string, so I ended up using (string) when I need to compare a string. Rest of the time, it's an integer. Robin Rasmus Lerdorf wrote: > > > If you set $qty=0; then $qty has no value. > > Of course it has a val

Re: [PHP] = 0 and = "0"

2001-10-25 Thread Robin Chen
The integer 0 is equal to False, but not Null. Robin Kodrik wrote: > > > > If you set $qty=0; then $qty has no value. > > > > Of course it has a value. > > No it doesn't have a value. > PHP interprets 0 as null. > > A very easy way for you to check: > > $value=0; > > if(!$value) printf("$va

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Robin Chen
You don't need to use the $has_empty variable, but I thought it would be better to just display the message once. Robin [EMAIL PROTECTED] wrote: > > I am a perl user trying to convert to php > > how would i turn this perl into php? > > use CGI; > > $name = param(name); > $address = param(a

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Robin Chen
Oops, I didn't mean to post the same code that's been posted. The subject sorter doesn't work correctly on Netscape Messenger. I thought I had finished reading the thread. My apologies, Robin Robin Chen wrote: > > > $required = array('name',&#

Re: [PHP] Mail()'s not playing nicely :(

2001-06-30 Thread Robin Chen
Instead of \n try \r\n Robin Jamie Thompson wrote: > > ok so i got > > mail("[EMAIL PROTECTED]", "$message", "sms alert", "Return-Path: $email > <$email>\nFrom: $email <$email>\nReply-To: $email <$email>\nX-Mailer: " . > phpversion()); > > the email appears as from [EMAIL PROTECTED] istead of

Re: [PHP] The future of PHP

2001-08-26 Thread Robin Chen
This is very true. I have a few ideas that I want to sell, but the only way that I can do it with PHP is to give out the source, and the user is expected to know how to install PHP and set up the script. If I can compile the PHP script, then I can sell the executables. The users would only have

[PHP] Check whether a page is Google Cached

2009-04-21 Thread Alan Chen
Hi, everyone, I want to write a small PHP script test.php that can determine whether a webpage is Google Cached. Assuming it is uploaded to www.mysite.com, and I want to use it to check whether www.yoursite.com is google cached. It works as follows: The user input the query: http://www.mysit

Re: [PHP] Check whether a page is Google Cached

2009-04-21 Thread Alan Chen
Thank you so much. "haliphax" дÈëÏûÏ¢ÐÂÎÅ:952625160904210738k494b892dlac3bb1b8e809f...@mail.gmail.com... > On Tue, Apr 21, 2009 at 8:29 AM, Alan Chen wrote: >> Hi, everyone, >> >> I want to write a small PHP script test.php that can determine whethe

Re: [PHP] HTML errors

2011-01-11 Thread Chen Dong
ing to > wonder if this code is allowed at all. > > > -- > Blessings > David M. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Regards, CHEN Dong

Re: [PHP] switch case madness

2011-01-18 Thread Chen Dong
Hi, If it is a string "0", you should use: case "0". Because in PHP, 0 == false == null. You need to know the difference between == and ===. Regards, Dong Chen On Wed, Jan 19, 2011 at 2:30 PM, Donovan Brooke wrote: > Hello, > > I must not understand PHP's

[PHP] php causes HTTP 500, but results in blank page in apache

2011-05-30 Thread Stephon Chen
Hello all, I use a test script below to generate HTTP 500 status: It causes HTTP 500 in apache log, but apache shows blank page instead of HTTP 500 error page But 403, 404 works correctly. Why this thing occurs? And is there any soultion? My platform is FreeBSD 8.2, PHP 5.3.6, and Apache 2.2.

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-05-31 Thread Stephon Chen
ors? > On May 30, 2011 4:51 AM, "Stephon Chen" wrote: > > Hello all, > > > > I use a test script below to generate HTTP 500 status: > > > > > header('HTTP/1.1 500 Internal Server Error'); > > ?> > > > > It causes HTTP 500 i

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-05-31 Thread Stephon Chen
All 403, 404, 500.html are static html pages like: 500 error happens On Wed, Jun 1, 2011 at 14:10, Tamara Temple wrote: > > On May 31, 2011, at 8:14 AM, Stephon Chen wrote: > > Hello Sean, >> >> Here is my apache config for error handling. >> 403, 404 works

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-02 Thread Stephon Chen
e manually? > On Jun 1, 2011 2:14 AM, "Stephon Chen" wrote: > > All 403, 404, 500.html are static html pages like: > > > > > > 500 error happens > > > > > > On Wed, Jun 1, 2011 at 14:10, Tamara Temple > wrote: > > > >> > &g

[PHP] Problem of load balance among php-cgi process

2011-10-19 Thread Sean Chen
Hi, I've got a problem when running PHP with nginx, there are several php-cgi processes and only one is busy at one time, like this: 500 23868 0.0 0.0 209164 10948 ?S21:23 0:01 /usr/local/websrv/php/bin/php-cgi --fpm --fpm-config /usr/local/websrv/php/etc/php-fpm.conf

[PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread sean chen
It's cause by eaccelerator module, when I remove this module, the php-cgi works well. Is there some compatible issue between eaccelerator and php? Regards Sean 2011/10/19 Sean Chen > Hi, > > ** ** > > I’ve got a problem when running PHP with nginx, there are several

[PHP] 答复: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Sean Chen
/usr/local/websrv/php/etc/php-fpm.conf <- THIS ONE PS: The problem is solved, It's cause by eaccelerator module, when I remove this module, the php-cgi works well. Regards. Sean -邮件原件- On 10/20/2011 5:20 AM, sean chen wrote: >> The red one is busy My email client

[PHP] PHP preg_replace_callback with unicode

2012-03-30 Thread Jimmy Chen
I wrote a simple script below to simulate my problem. Both my string and pattern contain unicode characters. Basically, if I run it from command line (php -f test.php), it prints "match" as expected. But if I run it through web server (apache, http://localhost/test.php), it prints "no match". I

[PHP] I have some upload questions.

2005-05-15 Thread Lee Chen
If the server uses hub ( to make more computer connect online), can' I upload files to that server?? I face a problem like this , and I think that's the hub causing this problem. Did it? or if I can do something to solve this problem? (btw I am the administrator of that server. I can do anythi

[PHP] Re: I have some upload questions.

2005-05-16 Thread Lee Chen
upload_max_filesize 100M memory_limit 8M max_execution_time 30 max_input_time 60 It can work well, no matter the filesize is 30MB or 7KB. So I just wonder what I should do to solve this problem. (now I think it's not the hub's fault) Thanks. "Lee Chen" <[EMAIL PROTECTED]> ¼¶

Re: [PHP] Re: I have some upload questions.

2005-05-16 Thread Lee Chen
Thanks I check the phpinfo, and my safe_mode is off. This is my phpinfo http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm It is just a copy, not on the server.(so it's html file, not a php file) Thanks. - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECT

Re: [PHP] Re: I have some upload questions.

2005-05-16 Thread Lee Chen
ime of "0". Anything wrong? THANKS. "Marek Kilimajer" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > Lee Chen wrote: > > Thanks for all of your helping. > > > > I think now maybe it's not the serve's problem because I CAN post forms and >

Re: [PHP] Re: I have some upload questions.

2005-05-17 Thread Lee Chen
"James E Hicks III" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > Lee Chen wrote: > > >Thanks > >I check the phpinfo, and my safe_mode is off. > >This is my phpinfo > >http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm > >It is just a copy,

[PHP] version difference or server difference?

2005-05-18 Thread Lee Chen
Why does a Win2K installation of PHP honor max_input_time and a FreeBSD machine does not? I am running version 5.0.0b2-dev on the windows machine and version 4.3.10 on the BSD machine would the version difference cause this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Which PHP-Editor to use?

2007-10-18 Thread Chen Lei
Matt Arnilo S. Baluyos (Mailing Lists) 写道: On 10/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 2007/10/18, Matt Arnilo S. Baluyos (Mailing Lists) <[EMAIL PROTECTED]>: Does Eclipse already have word-wrap? To my disappointment, it was still lacking that basic functionality the last

Re: [PHP] EMPTY??

2007-10-24 Thread Chen Lei
Can you show us the form tag of your php file(html code)? Dan Shirah 写道: doing a var_dump($_POST['comments']; returns string(0) "" So the value of $comments in $comments = $_POST['comments']; SHOULD be equal to 0 or "", right? In which case when I do my original: if (!empty($comments)) {

[PHP] [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Wang Chen
I wrote a class to send mail by remote mail server. But it was failed. So I captured the network packets by tcpdump, and found that there is a strange packet "NOOP" was sent. But in the source code I mean to send command "DATA". I don't know why a "NOOP" packet was sent instead. Here is my php sou

Re: [PHP] [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Wang Chen
Wang Chen said the following on 2008-1-16 11:38: > I wrote a class to send mail by remote mail server. > But it was failed. So I captured the network packets by tcpdump, > and found that there is a strange packet "NOOP" was sent. > But in the source code I mean to send com

[PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Wang Chen
Manuel Lemos said the following on 2008-1-16 11:55: > Maybe you are accessing a SMTP server with a grey listing or > anti-spam/anti-virus frontend that sits on the front of the actual SMTP > server and only passes information to the backend server when it is ready. > > It is possible that your mes

[PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Wang Chen
Manuel Lemos said the following on 2008-1-16 13:14: >> But it's strange that php should send a "DATA" command out, but tcpdump >> didn't >> capture this packet. :( > > I don't know why you are using tcpdump, but maybe you are only capturing > a network interface that is not the one that your code

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Wang Chen
mike said the following on 2008-1-16 12:11: > Why not look at phpmailer? Probably more robust than some random classes. > > http://phpmailer.codeworxtech.com/ > Thanks Mike. I will try both and tell you guys I like which one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] How to pass POST data to php-cgi

2008-03-16 Thread Hui Chen
ort HTTP_METHOD=POST; echo 's=33' | php-cgi test.php and test.php has only one line: Running it gave me: X-Powered-By: PHP/5.2.3-1ubuntu6.3 Content-type: text/html Notice: Undefined index: s in /home/chen/temp/test.php on line 1 Please help me figure out what's missing. Part of

[PHP] Re: How to pass POST data to php-cgi

2008-03-16 Thread Hui Chen
00]; close(outfd[0]); // These are being used by the child write(outfd[1],"s=444", 5); // Write to child's stdin close(outfd[1]); close(infd[1]); output[read(infd[0],output,1000)] = 0; // Read from child's stdout printf("%s&qu

[PHP] Add buttons on the fly

2006-10-31 Thread Wang Chen
I would like to add two buttons on a page form infomation confirmation, however, the html code in php nest can not be known by browser if I put into there. Besically, there is a mail form to enter iterm infomaiton, if it exist before, prompt its iterm id., if it is new, query a next available

[PHP] pass value to next page

2006-11-07 Thread Wang Chen
Hi , Newbie question, I have a form, input . input... ... The search.php3 goes to query mysql database to see if the infomation is new

Re: [PHP] pass value to next page

2006-11-07 Thread Wang Chen
Thanks much, y'all. Forgive to my typo on the original email. On 11/7/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Wang Chen wrote: > Hi , > > Newbie question, I have a form, > > > input . >

[PHP] Crash in PHP5RC1 but can't find where

2004-03-24 Thread David Chen
but it could be a feature I added). It's a bit slow (takes ~.5 seconds on my computer) because of an OOP persistence layer. Right now, I include a lineLog.html output to try to find where the crash is, but it's not too helpful. Thanks. David Chen -- PHP General Mailing List (http://www

Re: [PHP] Crash in PHP5RC1 but can't find where

2004-03-25 Thread David Chen
crashes, but oh well... no debugger until it's released officially. Thanks. David Chen "Red Wingate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi David, same thing i reported to the PHP-DEV List some time ago ( before RC1 was released ). The problem is the Wi

[PHP] Crash in PHP5RC1 but can't find where

2004-03-29 Thread David Chen
but it could be a feature I added). It's a bit slow (takes ~.5 seconds on my computer) because of an OOP persistence layer. Right now, I include a lineLog.html output to try to find where the crash is, but it's not too helpful. Thanks. David Chen -- PHP General Mailing List (http://www

Re: [PHP] Pre global configuration

2005-09-27 Thread Lendy Chen
"\r\n" : > "\n" ) ); > > - other_script.php > require_once 'config.inc.php'; > > $string = 'Hi! My name is Pippo!' . CRLF; > > > Or something like this... ;-) > > Cheers > Silvio > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Lendy Chen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: why does this not work?

2005-09-28 Thread Lendy Chen
s this from PHP via $_GET. > It is a good idea to store this value in the session once received so > you don't have to send it around on each link. > > > AllOLLi > > > > 63,000 bugs in the code, 63,000 bugs, > ya get 1 whacked with a service pack, > now there's 63,005 bugs in the code!! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Lendy Chen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Could you help me to solve this problem?

2005-12-04 Thread CHEN RAN
hi, After uploading file to web server with php upload script in http://us3.php.net/features.file-upload, I can't access the file with web browser. I get error message as "403 Forbidden" or "You are not authorized to view this page". However, there is no such problem when i using FTP to uploa

Re: [PHP] AUTH_PW & External Authentication

2001-01-26 Thread Chen Shiyuan
On Fri, 26 Jan 2001 17:36:57 -0600, Richard Lynch <[EMAIL PROTECTED]> wrote : > > I am currently using Apache-1.3.14 with php-4.0.4pl1 compiled > statically > > into it and running on RedHat Linux 6.2 . Apache is configured > to do > > authentication for certain URLs via a auth_ldap module which

Re: [PHP] Uninitialized string offset

2002-07-05 Thread Uri Even-Chen
ndicates that the > variable has not specfically been assigned a value before being used. > > HTH > Chris > > Uri Even-Chen wrote: > > >After upgrading to Red Hat Linux 7.3 (which also includes a new PHP > >version), I saw this warning (Uninitialized string o

[PHP] suppressing errors with "@"

2002-07-05 Thread Uri Even-Chen
Hi, I tried to suppress warnings in isset expressions (Uninitialized string offset warnings). The original line was something like this: if (!(isset($GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME']))) When I added the "@" sign like this: if (!(isset(@$GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME'])))

[PHP] Re: Uninitialized string offset

2002-07-06 Thread Uri Even-Chen
Thanks for the advice! I understand the problem now. I think they added the Uninitialized string offset in Version 4.1.0 (see ). That's why I didn't get this warning before. Anyway, I think I'll just add a "@" sign to suppress warnings. I tried it last nights an

Re: [PHP] suppressing errors with "@"

2002-07-06 Thread Uri Even-Chen
Thanks! I also think it might be a bug. I reported it as a bug report. Uri. Miguel Cruz wrote: > > On Sat, 6 Jul 2002, Uri Even-Chen wrote: > > I tried to suppress warnings in isset expressions (Uninitialized string > &g

[PHP] Undefined variables

2001-07-04 Thread Uri Even-Chen
.CO.IL/>, this has no effect. Is there any way to get a case sensitive version of HTTP_HOST? (I noticed HTTP_HOST has changed since the previous version of PHP & apache). Thanks, Uri Even-Chen Speedy Software Raanana, Israel. Wel

[PHP] Always global variables

2001-07-09 Thread Uri Even-Chen
Variables. global $SPEEDY_GLOBAL_VARS, $HTTP_ENV_VARS, $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS; Is there a way to define them only once globally? Thanks, Uri Even-Chen Speedy Software Raanana, Israel.

[PHP] PHP Conference in California

2001-07-10 Thread Uri Even-Chen
I have heard about the PHP Conference & O'Reilly Open Source Convention in San Diego, California. Do you think it is worth being there? I saw the prices and it's quite expensive. Not to mention the cost to get there... http://conferences.oreilly.com/oscon/ Thanks, Uri Ev

Re: [PHP] PHP Conference in California

2001-07-10 Thread Uri Even-Chen
se, its only 10 minutes > away. *grin* > -- > Aaron > > - Original Message - > From: "Uri Even-Chen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, July 10, 2001 9:11 AM > Subject: [PHP] PHP Conference in California >

Re: [PHP] PHP Conference in California

2001-07-11 Thread Uri Even-Chen
Roadsend.com is doing with their PHP-SiteManager.. > (www.roadsend.com). Jabber.com is also going to be there, and (from what i > hear) they're doing some stuff with XML exchanges... > > -- > Aaron > > - Original Message - > From: "Uri Even-Chen" &l

Re: [PHP] PHP Conference in California

2001-07-11 Thread Uri Even-Chen
ng to make a fortune! Uri. Uri Even-Chen Speedy Software Raanana, Israel. E-mail: [EMAIL PROTECTED] ICQ Number: 7461268 Phone Number: 09-7710730 Welcome to Speedy Net (In Hebrew):

[PHP] APC with horde/imp: 99.9% miss rate and only one cached file

2010-04-08 Thread Derek Chen-Becker
_ttl0 apc.write_lock 1 Any help would be greatly appreciated. Thanks, Derek -- -- Derek Chen-Becker Senior Network Engineer, Security Architect CPI Corp, Inc. 1706 Washington Ave St. Louis, MO 63103

[PHP] Re: APC with horde/imp: 99.9% miss rate and only one cached file

2010-04-09 Thread Derek Chen-Becker
Well, downgrading APC from 3.1.3b1 to 3.0.19 fixed it. Working great now! On 04/08/2010 02:21 PM, Derek Chen-Becker wrote: > I suspect I've either done something horribly wrong or found a weird > bug, probably the former. I'm running PHP 5.2.13 on Solaris 10 under > Apache 2.2.