[PHP] Re: [PEAR-DEV] Please Help me..MySQL

2003-07-24 Thread Sebastian Bergmann
Mohsen Pahlevanzadeh wrote: Hi dears. Please post such questions to mailto:[EMAIL PROTECTED] Your posting has no reference to PEAR whatsover. Greetings, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5:

[PHP] Re: Problem with MySQL Query

2003-07-24 Thread Mikael Jansson
Hi Phil, What I can see in your question there is a missing space between fieldname type and the operator != I tested on my machine and it works fine when using both != and operators, but it will not work with the NOT operator. Hope the missing space will do some good. br /Mikael Phillip

Re: [PHP] Re: I'm really getting annoyed with PHP

2003-07-24 Thread Wendell Brown
On Wed, 23 Jul 2003 14:48:03 -0600, Kevin Stone wrote: Beauford, here's a login routine that I wrote using Sessions and Header redirects. It is my interpretation of what you are trying to do. I'm not saying this is the only way to do it but it works well for me. Compare it to what you're doing

Re: [PHP] Re: I'm really getting annoyed with PHP

2003-07-24 Thread Wendell Brown
On Thu, 24 Jul 2003 02:05:58 -0500, Wendell Brown wrote: Ok, I have a question. Where is $_SESSION['valid_user'] getting set (or unset)??? Oooops. I thought that was the code that he was talking about. I missed your lead in. Sorry!!! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Load in a dedicated server

2003-07-24 Thread desa15
Hit to all, i have a Sun cobalt Raq 550, with php 4.1 as a module with apache 1.3 The load average of my server is ever above 0.20 to 0.60 whith the same users When i turn off register globals and turn on safe mode in php.ini and restart the apache daemon to take the changes, the load averge is

RE: [PHP] arguments against moving site from Linux/Apache/PHP server toWindows/IIS/PHP needed

2003-07-24 Thread SLanger
Go with the costs. If you have a running system on apache + php + mysql see how much it costs to support that platform. Meaning how high are the costs to maintain it. Inclusive administration and deployment of apps. Then compare the costs of maintaining a IIS Windows PHP Mysql setup under the

[PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Ivo Fokkema
Hi list, Just out of curiosity I would like to know if anyone can tell me the difference between some $_SERVER variables that generate the same output (in my test-file at least). For instance, what is the difference between $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME']? Can they generate

RE: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Lars Torben Wilson
On Thu, 2003-07-24 at 20:24, Beauford.2005 wrote: It's obvious though that PHP can not handle it. This is why I am forced to use javascript. I have already spent a week on this and am not going to waste any further time. I have posted all my code and if someone can see a problem I'll look at

[PHP] a stupid question

2003-07-24 Thread Joe
how to check the filetype of remote file because is_dir(), is_file() can't work on remote file thx a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Please help!!! thx a lot~~~

2003-07-24 Thread Joe
I have written a php to show file in directories. The problem is due to is_dir() can't opearate on remote files. What should I do in order to fix it. thx a lot~~~ begin 666 list.php M/#]P:' -B @)9I;5N86UE/2=L:7-T+G!H[#0H@(=L;V)A; D8W5R ME]D:7([#0H@(1C=7)R7V1ICTG+B[#0H@(EF*ES4V5T*1?1T54*28F

[PHP] Re: Please help!!! thx a lot~~~

2003-07-24 Thread Joe
any alternative method is also welcome Joe [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] I have written a php to show file in directories. The problem is due to is_dir() can't opearate on remote files. What should I do in order to fix it. thx a lot~~~ -- PHP General Mailing List

[PHP] Please help!!!~~thx a lot

2003-07-24 Thread Joe
I have just started to learn php and written a php to list the files. But there is a problem, seen the is_dir() function can't work on remote files. Therefore, it couldn't check the filetype of subdirectories. Would anyone tell me what should I do. Thx a lot begin 666 list.php M/#]P:' -B

RE: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Ow Mun Heng
This is taken from mantis.. NOt sure if it'll help but take a look at the t_use_iis field function print_header_redirect( $p_url, $p_die=true ) { $t_use_iis = config_get( 'use_iis'); if ( ON == config_get( 'stop_on_errors' ) error_handled() ) {

Re: [PHP] a stupid question

2003-07-24 Thread Jacob Vennervald Madsen
Download it and then check it. But if you need to check a lot of files that's probably to slow. Jacob Vennervald On Thu, 2003-07-24 at 06:03, Joe wrote: how to check the filetype of remote file because is_dir(), is_file() can't work on remote file thx a lot -- PHP General Mailing

: [PHP] Difference between equal $_SERVERvariables?

2003-07-24 Thread chenqi1
$_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME']are different in my circumstance,I found that the $_SERVER['SERVER_NAME']is the same with the ServerName value you set in httpd.conf.

[PHP] Re: people who has done a POS system before

2003-07-24 Thread sven
hi, for mobiles: there is a wap-browser for windows-plattform: http://www.winwap.org ciao SVEN Tan Ai Leen wrote: Hi, I was just wondering there is a emulator for us developers to develop programs for palm and handphone, etc. Is there a program that emulates the output from various printers

[PHP] Re: Please help!!! thx a lot~~~

2003-07-24 Thread sven
hi joe, you want a server-script, that lists a dir on a client? i think that's impossible. think of if you visit a website written in php and in background your hdd is scanned? that's simply a security reason. ciao SVEN Joe wrote: any alternative method is also welcome Joe [EMAIL PROTECTED]

Re: [PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Marek Kilimajer
server name - real name of the server, ie when you do a reverse dns lookup you get (usualy) this http host - content of the Host: header, that is virtual host Ivo Fokkema wrote: Hi list, Just out of curiosity I would like to know if anyone can tell me the difference between some $_SERVER

Re: [PHP] php function on php.net

2003-07-24 Thread Merlin
this is a reply on: I am wondering how on php.net the search for functions is done. You can add any function just behind the php.net like php.net/phpinfo and it will point you right through it. I know how to redirect this as a 404 error in apache to another file, but then the url is

Re: [PHP] Load in a dedicated server

2003-07-24 Thread Marek Kilimajer
Globals off should help you gain performance, but safe mode on is expensive. [EMAIL PROTECTED] wrote: Hit to all, i have a Sun cobalt Raq 550, with php 4.1 as a module with apache 1.3 The load average of my server is ever above 0.20 to 0.60 whith the same users When i turn off register globals

Re: [PHP] Re: Please help!!! thx a lot~~~

2003-07-24 Thread Marek Kilimajer
What is remote in your circumstances? FTP, HTTP, ... ? Joe wrote: any alternative method is also welcome Joe [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] I have written a php to show file in directories. The problem is due to is_dir() can't opearate on remote files. What should I do in

[PHP] Re: closing windows

2003-07-24 Thread WebDevMagazine
hi html script language=javaScript function execute() { windows.close(); } /script ?php echo a href=javascript.execute() Close /a; ? /html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a stupid question

2003-07-24 Thread Joe
thx Jacob Vennervald Madsen [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] Download it and then check it. But if you need to check a lot of files that's probably to slow. Jacob Vennervald On Thu, 2003-07-24 at 06:03, Joe wrote: how to check the filetype of remote file because

[PHP] Re: Please help!!! thx a lot~~~

2003-07-24 Thread Joe
I see the point but I just want to list the subfolder under my directory. Could you please tell me how to distinguish a directory from a file in Unix thx a lot Sven [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] hi joe, you want a server-script, that lists a dir on a client? i think

Re: [PHP] Re: Please help!!! thx a lot~~~

2003-07-24 Thread Joe
HTTP my department disable the function of listing file Marek Kilimajer [EMAIL PROTECTED] ???:[EMAIL PROTECTED] What is remote in your circumstances? FTP, HTTP, ... ? Joe wrote: any alternative method is also welcome Joe [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] I have written

[PHP] Re: people who has done a POS system before

2003-07-24 Thread Tan Ai Leen
Actually I am looking for a emulator that works for printers, not phones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Please help!!! thx a lot~~~

2003-07-24 Thread Marek Kilimajer
Do you mean you cannot access the filesystem on your own server? You can find out if /something is a directory by connecting to the web server and request the file/directory without a trailing slash. If it is a directory server will respond with 301 Moved Permanently response. $is_dir=false;

Re: [PHP] Re: I'm really getting annoyed with PHP

2003-07-24 Thread Comex
Ok, I have a question. Where is $_SESSION['valid_user'] getting set (or unset)??? AFAICS, $_SESSION['valid_user'] is getting set by a previous page, it's a *session*. Have you checked to see if your IF statement at the top of the script is working like you think it should be?? Try putting

[PHP] php4 vs php5

2003-07-24 Thread Robert Janeczek
hi, i`m working on presentation of php5 features and i would like to add some comparison between php4 and php5. new coding features are of course available in doc on php.net, but i`m wondering where can i find benchmarks that show speed differences between the two. if there are none i would like

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Comex
[EMAIL PROTECTED] Lars Torben Wilson: On Wed, 2003-07-23 at 18:21, Daryl Meese wrote: Well, I know I am not running the latest version of PHP but I don't believe this is accurate. I believe PHP case sensitivity is based on the os that processes the file. Can anyone clear this up. Daryl

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Comex
[EMAIL PROTECTED] Beauford.2005: It's obvious though that PHP can not handle it. This is why I am forced to use javascript. I have already spent a week on this and am not going to waste any further time. I have posted all my code and if someone can see a problem I'll look at it, but it just

Re: [PHP] php function on php.net

2003-07-24 Thread Ivo Fokkema
Use a path relative to your httpdocs for your error document, e.g. ErrorDocument 404 /myerrorpage.php instead of ErrorDocument 404 http://mysite/myerrorpage.php Unfortunatelly this is not what I mean. I think it is. When you use a relative path in the .htaccess, the URL will not change,

[PHP] Re: Has anyone successfully installed PHP 5?

2003-07-24 Thread Comex
[EMAIL PROTECTED] Jonathan Villa: Has anyone installed PHP 5 on Windows or Linux using Apache 2? Yes... on Windows. But it's unstable, don't do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Jerry Artman
How about you can get a the world's fastest PC, a 64bit server that handles 8gig of memory that can run cicles around any wintel based machine and still use all the *nix software without having rewrite anything for say $3k. That's with 10/100/1000 ethernet ports. It already has hugely more

[PHP] need help

2003-07-24 Thread dan montgomery
need to know which scripts I can get free or at low cost to create a hosting site and to make an e-mail site. The e-mail site need two features one is for free accounts and one is for paid accounts like yahoo.com. But there is one catch yahoo dosn't give as much space as I will for free I will

Re: [PHP] need help

2003-07-24 Thread skate
check out sourceforget.net, lots of web applications on there for hosting management, and i believe there's a few email applications. - Original Message - From: dan montgomery [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 24, 2003 12:55 PM Subject: [PHP] need help need

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread zerof
I'm using the redirect with php for a long time, with no problems. I use it in all of my pages, including navigational menus. The great problem with headers is the function exit if it is used to ends the call. headers + exit, if used in any place, may cause some collateral efects. - zerof

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Comex
[EMAIL PROTECTED] Zerof: I'm using the redirect with php for a long time, with no problems. I use it in all of my pages, including navigational menus. The great problem with headers is the function exit if it is used to ends the call. headers + exit, if used in any place, may cause some

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread zerof
You are absolutely right, exit, quits my script, this let me use an independent script to handle the headers. if used with conditional calls. . zerof - Comex [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] [EMAIL PROTECTED] - Why? AFAIK, exit quits the

Re: [PHP] Some SESSION Vars not Registering

2003-07-24 Thread Jeff Stillwall
CPT John W. Holmes wrote: Why not just $_SESSION['userArray'] = $userArray; ?? Then $_SESSION['userArray']['fname'] to access the values, for example. Well, yes, that does work. And it's an acceptable workaround (I've already updated my code). It's nice in that it let's me keep the

Re: [PHP] php function on php.net

2003-07-24 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): this is a reply on: I am wondering how on php.net the search for functions is done. You can add any function just behind the php.net like php.net/phpinfo and it will point you right through it. I know how to redirect this as a 404 error in

[PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
I am trying to communicate with an API of a vendors of ours. They provide a Perl example that works fast and well. I am trying to do the same thing with a PHP class. The response takes over a minute before the response comes back. I see from the response text that the API is running on Apache

Re: [PHP] php function on php.net

2003-07-24 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): Use a path relative to your httpdocs for your error document, e.g. ErrorDocument 404 /myerrorpage.php instead of ErrorDocument 404 http://mysite/myerrorpage.php Unfortunatelly this is not what I mean. I think it is. When you use a

Re: [PHP] Some SESSION Vars not Registering

2003-07-24 Thread Curt Zirzow
* Thus wrote Jeff Stillwall ([EMAIL PROTECTED]): CPT John W. Holmes wrote: Why not just $_SESSION['userArray'] = $userArray; ?? Then $_SESSION['userArray']['fname'] to access the values, for example. Well, yes, that does work. And it's an acceptable workaround (I've already

[PHP] removing parts of a string...

2003-07-24 Thread Tristan . Pretty
I wanna be able to take a URL http://www.mysite.com/downloads/file_1_a.pdf and then remove: http;//www.mysite.com/ then add: /host/sites/site1/web/ to downloads/file_1_a.pdf Turning: http://www.mysite.com/downloads/file_1_a.pdf Into: /host/sites/site1/web/downloads/file_1_a.pdf I know I need

Re: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): Go with the costs. If you have a running system on apache + php + mysql see how much it costs to support that platform. Meaning how high are the costs to maintain it. Inclusive administration and deployment of apps. Then compare the costs

Re: [PHP] removing parts of a string...

2003-07-24 Thread Juan Nin
From: [EMAIL PROTECTED] I wanna be able to take a URL http://www.mysite.com/downloads/file_1_a.pdf and then remove: http;//www.mysite.com/ [...] look at preg_match() regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem with MySQL Query

2003-07-24 Thread Curt Zirzow
* Thus wrote Mikael Jansson ([EMAIL PROTECTED]): Hi Phil, What I can see in your question there is a missing space between fieldname type and the operator != I tested on my machine and it works fine when using both != and operators, but it will not work with the NOT operator. Hope the

[PHP] sorting multi-array

2003-07-24 Thread Ji Nmec
hello, i have got a problem, tehere is an array: $x = array( array(15,55,array(1,2,3),3,5,array(1,2,5)), array(25,55,array(1,2,3),3,5,array(1,2,5)), array(5,55,array(1,2,3),3,5,array(1,2,5)) ); and I need to sort this arraybz first item of sub-arrays (x[0][0], $x[1][0], $x[2][0]).

Re: [PHP] removing parts of a string...

2003-07-24 Thread R'twick Niceorgaw
On 24 Jul 2003 at 15:03, [EMAIL PROTECTED] wrote: I wanna be able to take a URL http://www.mysite.com/downloads/file_1_a.pdf and then remove: http;//www.mysite.com/ then add: /host/sites/site1/web/ to downloads/file_1_a.pdf Turning: http://www.mysite.com/downloads/file_1_a.pdf

Re: [PHP] Please help!!!~~thx a lot

2003-07-24 Thread Curt Zirzow
* Thus wrote Joe ([EMAIL PROTECTED]): I have just started to learn php and written a php to list the files. But there is a problem, seen the is_dir() function can't work on remote files. Therefore, it couldn't check the filetype of subdirectories. Would anyone tell me what should I do. Thx a

Re: [PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): Hi list, Just out of curiosity I would like to know if anyone can tell me the difference between some $_SERVER variables that generate the same output (in my test-file at least). For instance, what is the difference between

Re: [PHP] Load in a dedicated server

2003-07-24 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hit to all, i have a Sun cobalt Raq 550, with php 4.1 as a module with apache 1.3 The load average of my server is ever above 0.20 to 0.60 whith the same users When i turn off register globals and turn on safe mode in php.ini and

Re: [PHP] php4 vs php5

2003-07-24 Thread Curt Zirzow
* Thus wrote Robert Janeczek ([EMAIL PROTECTED]): hi, i`m working on presentation of php5 features and i would like to add some comparison between php4 and php5. new coding features are of course available in doc on php.net, but i`m wondering where can i find benchmarks that show speed

RE: [PHP] php4 vs php5

2003-07-24 Thread Edward Peloke
some more good php5 info... http://www.phparch.com/news/343 -Original Message- From: Robert Janeczek [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 7:16 AM To: [EMAIL PROTECTED] Subject: [PHP] php4 vs php5 hi, i`m working on presentation of php5 features and i would like to

Re: [PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Curt Zirzow
* Thus wrote Robert Fitzpatrick ([EMAIL PROTECTED]): I am trying to communicate with an API of a vendors of ours. They provide a Perl example that works fast and well. I am trying to do the same thing with a PHP class. The response takes over a minute before the response comes back. I see from

Re: [PHP] sorting multi-array

2003-07-24 Thread Marek Kilimajer
www.php.net/usort - slight modification of the example (hint: add [0] to $a and $b). Ji Nmec wrote: hello, i have got a problem, tehere is an array: $x = array( array(15,55,array(1,2,3),3,5,array(1,2,5)), array(25,55,array(1,2,3),3,5,array(1,2,5)),

Re: [PHP] removing parts of a string...

2003-07-24 Thread sven
hi, Juan Nin wrote: From: [EMAIL PROTECTED] I wanna be able to take a URL http://www.mysite.com/downloads/file_1_a.pdf and then remove: http;//www.mysite.com/ [...] look at preg_match() ... or preg_replace(); regards, ciao SVEN -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: sorting multi-array

2003-07-24 Thread sven
hi, try usort(); ciao SVEN JiøîÆèî eË wrote: hello, i have got a problem, tehere is an array: $x = array( array(15,55,array(1,2,3),3,5,array(1,2,5)), array(25,55,array(1,2,3),3,5,array(1,2,5)), array(5,55,array(1,2,3),3,5,array(1,2,5)) ); and I need to sort this arraybz

Re: [PHP] reading from dir and displaying thumbs

2003-07-24 Thread Ryan A
oops sorry, I guess I deleted that one accidently. Its kind of hard to keep track as suddenly the volume of the list has gotten higher it seems. Will look into that. Cheers, -Ryan - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 24, 2003

Re: [PHP] Re: I'm really getting annoyed with PHP

2003-07-24 Thread Curt Zirzow
* Thus wrote Wendell Brown ([EMAIL PROTECTED]): On Thu, 24 Jul 2003 02:05:58 -0500, Wendell Brown wrote: Ok, I have a question. Where is $_SESSION['valid_user'] getting set (or unset)??? Oooops. I thought that was the code that he was talking about. I missed your lead in. Sorry!!!

Re: [PHP] php function on php.net

2003-07-24 Thread Chris Shiflett
--- Merlin [EMAIL PROTECTED] wrote: Unfortunatelly this is not what I mean. Have a look on this: http://www.globosapiens.net/hially A php page is redirecting this 404 error to another page, but I would like to have the URL stay the same like it is done on php.net Then don't redirect to

Re: [PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): Hi list, Just out of curiosity I would like to know if anyone can tell me the difference between some $_SERVER variables that generate the same output (in my test-file at

Re: [PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
if (!fputs($fp, $op, strlen($op))) { which HTTP version are you requesting? I know that if you send a HTTP/1.1 then a lot of servers send the data in chunks, thus your retrieval code needs to be different. If it is HTTP/1.1 try using HTTP/1.0 instead. Same difference with the 1.0, I was

[PHP] PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-24 Thread Matt Hedges
Hello. I am building a webpage for a sorority- http://www.olemissaoii.com . I built a basic php script where they add the sisters and their names, grad. date, and email. Is there anyway to build a page that shows all the fields where someone could go in and edit/add what they need? What I

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
Sorry, the correct request and response is below, the one I copied before was from the browser: Request: Request:brPOST /XMLCommunicationServlet HTTP/1.0 Content-Type: application/x-www-form-urlencoded User-Agent: PHP XMLRPC Host: api.newedgenetworks.com:80 Connection: keep-alive Content-Length:

RE: [PHP] PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-24 Thread Jay Blanchard
[snip] Hello. I am building a webpage for a sorority- http://www.olemissaoii.com . I built a basic php script where they add the sisters and their names, grad. date, and email. Is there anyway to build a page that shows all the fields where someone could go in and edit/add what they need? What

Re: [PHP] PHP Webpage like MySql- need to be able to see allfields and edit

2003-07-24 Thread Adam Voigt
Just select the values out, and put them as the default in the value portion of the form inputs, example: $query = mysql_query('select firstname,lastname from table where id=1;'); $array = mysql_fetch_array($query); input name=firstname value=?php echo $array['firstname']; ? input name=lastname

RE: [PHP] Software Application Engineer WANTED (PHP/MySQL Guru)

2003-07-24 Thread Dan Joseph
Aww heck, just go AWOL? :) -Dan Joseph -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 5:51 PM To: Richard Gabriel; [EMAIL PROTECTED] Subject: Re: [PHP] Software Application Engineer WANTED (PHP/MySQL Guru) Subject: [PHP]

[PHP] uploading a file from a form

2003-07-24 Thread Amanda McComb
I am having a problem with uploading a file from a form. I changed the permission on the directory, but I am still getting an error. Here is my error: Copy failed./home/vencel/www/images/apt/company_logo/14Update Failed! It looks like it's not finding the file type. Here is my code: ?

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Pushpinder Singh Garcha
try this, use a meta-refresh ... echo META HTTP-EQUIV=\refresh\ content=\3;URL=http://wherever_u_wana_go.com/hello.html\;; hth --Pushpinder On Thursday, July 24, 2003, at 11:24 PM, Beauford.2005 wrote: It's obvious though that PHP can not handle it. This is why I am forced to use

[PHP] html and php in the same document

2003-07-24 Thread Bill Pilgrim
If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension? Thanks, Bill - Do you Yahoo!? Yahoo! SiteBuilder - Free,

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Peter Clarke
Robert Fitzpatrick wrote: Sorry, the correct request and response is below, the one I copied before was from the browser: Request: Request:brPOST /XMLCommunicationServlet HTTP/1.0 Content-Type: application/x-www-form-urlencoded User-Agent: PHP XMLRPC Host: api.newedgenetworks.com:80 Connection:

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Curt Zirzow
* Thus wrote Robert Fitzpatrick ([EMAIL PROTECTED]): Sorry, the correct request and response is below, the one I copied before was from the browser: I tested it here: http://zirzow.dyndns.org/php/fread/timeout.php Appears to work ok. Curt -- I used to think I was indecisive, but now I'm not

[PHP] command line or http browser?

2003-07-24 Thread ermelir
Hi list, I search to detect if a script is call from command line or if the call from a client http browser. for doing that, I test if: php_sapi_name()=='cli' which returns TRUE if script calls from command line; this work fine with PHP 4.2, but with PHP 5 php_sapi_name() returns cgi-fcgi so, I

Re: [PHP] html and php in the same document

2003-07-24 Thread Curt Zirzow
* Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension? Apache, IIS, Other? If apache: AddType

Re: [PHP] PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-24 Thread Miles Thompson
Matt, Juli Meloni has a tutorial on this at her web site. I think it's called something like Custom Error Messages and if I remember the fields are pulled from a database, and there are code examples of how it operates if fields are not completed, information fails a simple parsing test, etc.

Re: [PHP] html and php in the same document

2003-07-24 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension?

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Curt Zirzow
* Thus wrote Pushpinder Singh Garcha ([EMAIL PROTECTED]): try this, use a meta-refresh ... echo META HTTP-EQUIV=\refresh\ content=\3;URL=http://wherever_u_wana_go.com/hello.html\;; This has already been discussed, and is not the preferred method of doing redirects. PHP can handle what

Re: [PHP] html and php in the same document

2003-07-24 Thread Miles Thompson
At 04:09 PM 7/24/2003 +, Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an

Re: [PHP] command line or http browser?

2003-07-24 Thread Curt Zirzow
* Thus wrote ermelir ([EMAIL PROTECTED]): Hi list, I search to detect if a script is call from command line or if the call from a client http browser. for doing that, I test if: php_sapi_name()=='cli' which returns TRUE if script calls from command line; this work fine with PHP 4.2, but

Re: [PHP] removing parts of a string...

2003-07-24 Thread Tristan . Pretty
Cheers for your help... I did this in the end... $rest = substr($row[file_info], 27, 100); $download = /home/sites/site1/web$rest; where $row[file_info] = the full URL and the 27th character is the .com/ bit. Live and learn, I love this language! Cheers one

Re: [PHP] html and php in the same document

2003-07-24 Thread John W. Holmes
Miles Thompson wrote: At 04:09 PM 7/24/2003 +, Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to

[PHP] Hiding URL's...

2003-07-24 Thread Tristan . Pretty
I read this article, and thought it was perfect for me... Just the same prob I'm having... http://forums.devshed.com/archive/5/2002/06/2/37330 However, I don't understand how to get the file into an A tag where it can still find the file, AND make the URL useless if copied and pasted.. Am I

Re: [PHP] removing parts of a string...

2003-07-24 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): Cheers for your help... I did this in the end... $rest = substr($row[file_info], 27, 100); $download = /home/sites/site1/web$rest; where $row[file_info] = the full URL and the 27th character is the

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
Try not having the connection kept alive. (just a thought) Same long reponse :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] removing parts of a string...

2003-07-24 Thread Tristan . Pretty
Never thought of that... Luckily, this function is gonna be held on a server for downloads only, and all the requests are gonna come straight from the 'master' site else where. So I really shouldn't run into probs right now... I will however lookinto making it that little bit more idiot proof

Re: [PHP] Hiding URL's...

2003-07-24 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): I read this article, and thought it was perfect for me... Just the same prob I'm having... http://forums.devshed.com/archive/5/2002/06/2/37330 You mean i have to read all that? However, I don't understand how to get the file into an A

Re: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-24 Thread Brian Tully
on 7/24/03 8:13 PM, Beauford.2005 at [EMAIL PROTECTED] wrote: FORM onSubmit=return checkrequired(this) ACTION=season-write.php action=post name=testing someone else already raised this issue and it doesn't look like you caught it: you have two actions in your form (the second should

Re: [PHP] Hiding URL's...

2003-07-24 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: I read this article, and thought it was perfect for me... Just the same prob I'm having... http://forums.devshed.com/archive/5/2002/06/2/37330 However, I don't understand how to get the file into an A tag where it can still find the file, AND make the URL

[PHP] PHP with XML on Windows XP

2003-07-24 Thread Sam
I have recently upgraded a server which I use for development: Windows XP Home Apache 1.3.26 MySQL 3.23 PHP 4.3.2 with Pear Everything seemed to go well, except that now I James Clarks expat does not work. Very confused on this one I have uninstalled expat and

[PHP] phpTidy problems (xhtml)

2003-07-24 Thread Pedro Arellano
I want to be able to output the contents of my website in xhtml. There it an opensource program called phpTidy which ties into HTML Tidy that can format all of your html into xhtml or xml. The only problem, I cant get it to work correctly. Does anyone have experience in working with this

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
I tested it here: http://zirzow.dyndns.org/php/fread/timeout.php Thanks, I took your source and pasted it in my debugger and ran it fine like on your server. I narrowed down the, evidently significant, difference. Your content is has crlf line endings, hence, the 'Missing query parameters:

[PHP] Re: Hiding URL's...

2003-07-24 Thread Bobby Patel
If you want to restrict the download to once per user, the best is to use a database (or a I guess a file) which keeps tracks of who can download it and downloaded status, etc.. I haven't worked directly with this issue, but I would start by having a table Permissions with columns username,

Re: [PHP] PHP CGI mode and command line variables

2003-07-24 Thread CDitty
That worked like a charm. Thanks Chris. I've added this to my snippet collection. :) At 12:02 AM 7/24/2003, Chris Shiflett wrote: --- CDitty [EMAIL PROTECTED] wrote: Thanks man. That got rid of the error, however it is not using the variable in the script. You have to read them in. I think

[PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
Hi, Just looking for an opinion on how you would do this... Let's say I have a number: 1281924 The rules call for removing 1280+, meaning remove 128 and all 0's that come after it, until you run into another number. In the end, it would leave 1924, and

Re: [PHP] just looking for some opinions...

2003-07-24 Thread CPT John W. Holmes
Let's say I have a number: 1281924 The rules call for removing 1280+, meaning remove 128 and all 0's that come after it, until you run into another number. In the end, it would leave 1924, and everything else on the beginning would be gone. $new_number =

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Ford, Mike [LSS]
-Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 24 July 2003 18:44 Let's say I have a number: 1281924 The rules call for removing 1280+, meaning remove 128 and all 0's that come after it, until you run into another number. In the end, it

Re: [PHP] command line or http browser?

2003-07-24 Thread ermelir
thanks for your answer and sorry for my poor english ;) in the list of returns values, there somes I can't determine if command line or server values * isapi * nsapi * embed * milter * activescript * java_servlet do you know? thanks for your help - Original Message - From: Curt Zirzow

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
Thanks John, You and 4 others (3 private direct replies) all gave me the same suggestion. I have no idea why I never think to use a regex... Appreciate the thought! -Dan Joseph -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24,

  1   2   >