RE: [PHP] How do I capture a POST responce

2003-06-13 Thread Ralph
You have to use socket connection. Take a look at: http://us4.php.net/fsockopen In the User Contributed Notes look for a post by info at agriya dot com 02-Feb-2003 12:38 there you will see a script that shows you how to do it. Hope this helps. -Original Message- From: Joaco

RE: [PHP] $_SESSION as $key=$value

2003-06-13 Thread Ralph
Daniel, Rather than sending them to a new page to validate the form and then sending them back if a field is invalid, do the error checking from the same script. Here's an example, a bit simple but just to give you an idea. For a better explanation, you should read this article which elaborates

[PHP] Re: 4.3.2 -- does connection_status() actually work?

2003-06-13 Thread Per Jessen
Rasmus Lerdorf wrote: What does it do? Using connection_status() in a script that doesn't ignore user aborts is pretty useless. Regardless of whether I use ignore(0) or ignore(1), the script keeps going after the user has hit stop. The apache error-log is then full of: (32)Broken pipe:

[PHP] Re: 4.3.2 -- does connection_status() actually work?

2003-06-13 Thread Per Jessen
Jeff Harris wrote: I'm just guessing here, because you didn't give us the desired result, but how about: if (connection_status() ) break; Yeah, that would do about the same. The expected result is for the script to stop running once the client disconnects. /Per -- Per Jessen, Zurich

Re: [PHP] Zend Optimizer not active?

2003-06-13 Thread Marek Kilimajer
Are the logs saying anything? Or if you run php from command line? Steve Yates wrote: Starting with a working site (FreeBSD 4.7, Apache 1.3.27) using PHP 4.3.0 and the latest Zend Optimizer, I upraded to PHP 4.3.2. Afterwards, phpinfo () did not show the Optimizer as loaded. Reinstalling

[PHP] re : ldap problem

2003-06-13 Thread chandrakant Reddy
Hi The proto type is not correct. array ldap_get_values(link_identifier , result_entry_identifier, string attribute); ^ try this 1) connect 2) bind 3) search 4) get_entries // this the step you are missing 5) get_values regards CVR Can anyone tell me what

RE: [PHP] How to find if a string is an integer?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Alex Earl [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 21:13 Jumping in a little late here, but what about is_numeric()? Haven't tried it, but the php manual for is_int says: Note: To test if a variable is a number or a numeric string (such as form

RE: [PHP] make a variable not exist?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Amanda McComb [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 22:21 Is there a way to make a variable not exist? There are several places where I test (!$variable), and I want to be able to change the variable to pass that test, even though it exists, under

RE: [PHP] POST detection

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 00:49 Will this work for $_GET as well? Yup. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:14 PM if ($_POST) {

[PHP] XML

2003-06-13 Thread Diana Castillo
does anyone know if there are any advantages/disadvantages as far as performance to using one of the following methods for gettting xml responses? 1) get 2)normal post with php 3)curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Priter Functions

2003-06-13 Thread Stephen Goddard
Hi, Has anyone managed to get the php printer functions to work on a network printer. My code is connecting to the printer but . Warning: couldn't allocate new print job in c:\inetpub\wwwroot\phpprinter\print2.php on line 32 test.bmp Warning: couldn't start a new page in

[PHP] Re: General question...

2003-06-13 Thread Valentin
Thanks Bobby! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to find if a string is an integer?

2003-06-13 Thread António Rafael Paiva
Why don't you write your own test function since it's getting so hard to find one. All you have to do is check if the string only has number characters. I would say this is a simple task! Good luck, Rafael On Thu, 12 Jun 2003 13:13:28 -0700 (MST) Alex Earl [EMAIL PROTECTED] wrote: Jumping in

[PHP] Some error

2003-06-13 Thread Birgir Þór Halldórsson
I have an error in a PHP script I’m working with. Here is information about my PHP: http://kalk.snerpa.is/test.php The error describes like this: After the size of the page that the script is writing reaches 16 KB it just stop process. Do somone out there know what the problem could be?

[PHP] Setting Return-Path header for mail() on Linux

2003-06-13 Thread Tom Woody
Is it possible to change the Return-Path header in PHP on linux? I have seen all the posts about setting it in the php.ini with the -f switch to sendmail. But I need to set it based on the person logged into the page? Right now the Return-Path is set to a default that gets sent to me (the

[PHP] regarding ?php ? tags

2003-06-13 Thread Ulrik NIelsen
Hi NG, Does any og you know why it's not possible to use the syntax: ?php=$something? when you can use this: ?=$something? it would be a nice feature when mixing xml and php ... -- ulrik - ulrik(@)lazy.dk excuse of the day : Domain controller not responding from bofh :

Re: [PHP] Re: mail() function exchange

2003-06-13 Thread Manuel Lemos
Hello, On 06/12/2003 02:32 PM, Diana wrote: I totally agree with your first sentence *grin*. Anyways, I won`t be able to use your class because my server is kind of locked in their network, meaning I don`t have the possibility to connect outside, only to their servers (NT servers). And as

RE: [PHP] regarding ?php ? tags

2003-06-13 Thread PHP4 Emailer
My understanding of this (am still a newbie though) is that the ?=$variable? is a short tag that assignes the $variable directly to a print/echo command. You can use the other way by just adding ?php print $variable; ? Hope this helps. -Original Message- From: Ulrik NIelsen

RE: [PHP] regarding ?php ? tags

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Ulrik NIelsen [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 13:25 Does any og you know why it's not possible to use the syntax: ?php=$something? when you can use this: ?=$something? This has been discussed more than once by the PHP developers, and

[PHP] PHP crashes when using gd with true type fonts.

2003-06-13 Thread Branko F. Granar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Check out the following code: ?php $image_file = images/test.gif; $font_file = dirname(__FILE__) . / . fonts/timesbd.ttf; $str = You must be kidding :); $red = 0; $blue = 0; $green = 0; $img = imagecreatefromgif(images/test.gif); $color =

[PHP] slow mail()

2003-06-13 Thread Marko
Hi all, Sending multiple emails using PHP - as BCC or multiple mail() commands - takes quite long; usually over 50 seconds for 10 addresses. While sending these messages the browser won't show anything else but a blank page, which is not a very exciting internetexperience for people using my

Re: [PHP] slow mail()

2003-06-13 Thread Miles Thompson
Are you sending these in a loop? Write out something as each mail is sent, the email address is useful, plus an OK or FAIL depending on what mail() returned. Also, don't enclose this in a table as on some browsers nothing will display until the closing table tag is received. You might also

Re: [PHP] regarding ?php ? tags

2003-06-13 Thread Ulrik NIelsen
Mike Ford wrote: This has been discussed more than once by the PHP developers, and the decision has always been not to adopt it. I think you can safely file it in the Won't Fix category (there may even be a Feature Request at bugs.php.net marked as such). bugger ;) I would have loved this

[PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Petre Agenbag
Hi List I recently installed 4.3.1 and enabled the magic_quotes_gpc to deal with quotes in mysql inserts. However, I think I have run into a problem that might be related, and was wondering if there is an easy way to fix it: I have a script that gets user input from a drop-down, on the action

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Awlad Hussain
addslashes (PHP 3, PHP 4 ) addslashes -- Quote string with slashes Description string addslashes ( string str) Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote (), backslash (\) and NUL (the

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Petre Agenbag
Hi Awlad Yes, I know addslashes(), but that's the point, I would rather NOT want to go and have to use addslashes() to all my extracted vars as there are almost a hundred vars, and I douldn't want to go and have to add addslashes($var1), addlsashes($var2), ., addslashes($var100) UNLESS it is

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread CPT John W. Holmes
I recently installed 4.3.1 and enabled the magic_quotes_gpc to deal with quotes in mysql inserts. However, I think I have run into a problem that might be related, and was wondering if there is an easy way to fix it: I have a script that gets user input from a drop-down, on the action

[PHP] fgets() problem

2003-06-13 Thread Armand Turpel
It seems that some php versions have difficulties with the fgets() function. On php 4.3.2 it works fine, but other versions report warnings. fgets($f); Warning: Wrong parameter count for fgets() in /var/www/Xprotector/include/base.inc.php on line 70 If I change fgets to fgets($f, 4096); it

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Petre Agenbag
Thanks, it was there right infront of me... Just as a matter of interest, are there security/performance issues with this setting as well as the magic_quotes_gpc or other oddities that it could cause? On Fri, 2003-06-13 at 15:54, CPT John W. Holmes wrote: I recently installed 4.3.1 and enabled

RE: [PHP] regarding ?php ? tags

2003-06-13 Thread Wim Paulussen
extract from php.ini file ; Allow the ? tag. Otherwise, only ?php and script tags are recognized. ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because

[PHP] Variable variables question?

2003-06-13 Thread Douglas Douglas
Hello everybody. I have the following class method: function HTTPValidator($method) { $this-data = ${'_'.$method}; $this-rules= array(); $this-required = array(); } data, rules and required are arrays. The parameter $method can have the values: GET or POST. I'm trying to store

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Marek Kilimajer
Yes, there is a performance hit. And the oddity is (if set globaly in php.ini) you have to stripslashes() everything you want to echo to the browser. So I would recomend you to ini_set() magic_quotes_runtime on right before this process and then turn it off. Petre Agenbag wrote: Thanks, it was

Re: [PHP] fgets() problem

2003-06-13 Thread Marek Kilimajer
From the manual: Note: The length parameter became optional in PHP 4.2.0, if omitted, it would assume 1024 as the line length. As of PHP 4.3, omitting length will keep reading from the stream until it reaches the end of the line. If the majority of the lines in the file are all larger than

[PHP] shopping cart and login system

2003-06-13 Thread electroteque
hi there , i am about to build a shopping cart which will interact with a paypal payment system , the cart will use sessions to store the items and basket information before checking out and posting to the paypal form , what i'd like to know is would the cart require a login system to track users

[PHP] Access violation for an EXE file

2003-06-13 Thread Ferhat BINGOL
Hi, I am using W2000pro. I have Apache 1.3.2 and Mysql 4 servers. I am using PHP 4.2.3. I have an EXE file. When I run it from command line it works perfect. But with PHP system command I got this error message. Untrapped exception :Access violation at address 0049403A in module run.exe'. Read

[PHP] Re: Access violation for an EXE file

2003-06-13 Thread Ferhat BINGOL
The EXE file has been made by Delphi 6. A command line tool. (as far as I know) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Redirects in PHP

2003-06-13 Thread Carl Furst
I want to do one of those redirect pages where a php script prints HTML saying sorry we're not here, we're redirecting you to the right location and then after about 2-3 seconds a new location header gets printed and you are transported to the new location. I see this everywhere but don't know how

[PHP] failed to delete buffer default output handler

2003-06-13 Thread Shawn McKenzie
echo ob_get_level(); returns 1 but the next line: ob_end_clean(); returns Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer default output handler. Any ideas? Thanks! Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirects in PHP

2003-06-13 Thread Wendell Brown
On Fri, 13 Jun 2003 12:22:44 -0400, Carl Furst wrote: How do you do this? Use JavaScript. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] It´s a test!!

2003-06-13 Thread Felipe Desiderati
sorry, It´s only a test!!

RE: [PHP] Redirects in PHP

2003-06-13 Thread Johnny Martinez
try a delayed javascript redirect. location header must be in the header whichprevents your visitor from seeing html...thats irritating. i miss the ASP response.redirect which can be placed anywhere J -Original Message- From: Carl Furst [mailto:[EMAIL PROTECTED] Sent: Friday, June 13,

RE: [PHP] Redirects in PHP

2003-06-13 Thread chris sherwood
Build a JavaScript and have it execute as the document loads... i.e. in the body tag with an onLoad event... the header function in php will not do anything if you have sent output already -Original Message- From: Carl Furst [mailto:[EMAIL PROTECTED] Sent: June 13, 2003 9:23 AM To:

Re: [PHP] Redirects in PHP

2003-06-13 Thread Michael
I miss the response.redirect in Python and DTML which can be placed anywhere as well. Michael On Friday 13 June 2003 10:28 am, Johnny Martinez wrote: try a delayed javascript redirect. location header must be in the header whichprevents your visitor from seeing html...thats irritating. i miss

Re: [PHP] Redirects in PHP

2003-06-13 Thread Kevin Stone
Javascript.. bah humbug. :) Carl, you can avoid these issues by using output buffering allowing you to call header() whever you want in your script. ? // example.. ob_start(); // buffer output echo this is output you'll never see; header(Location: thankyou.html); // header redirect

Re: [PHP] Redirects in PHP

2003-06-13 Thread Zak Johnson
On 2003-06-13 10:54-0600, Kevin Stone wrote: Carl, you can avoid these issues by using output buffering allowing you to call header() whever you want in your script. This will not solve the OP's problem; the header will still be output first, and the client will be immediately redirected. I am

Re: [PHP] Redirects in PHP

2003-06-13 Thread Wendell Brown
On Fri, 13 Jun 2003 10:54:39 -0600, Kevin Stone wrote: Javascript.. bah humbug. :) Carl, you can avoid these issues by using output buffering allowing you to call header() whever you want in your script. But he doesn't get to see the printed info - so it's basically the same difference. I

Re: [PHP] Redirects in PHP

2003-06-13 Thread Kevin Stone
- Original Message - From: Zak Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:00 AM Subject: Re: [PHP] Redirects in PHP On 2003-06-13 10:54-0600, Kevin Stone wrote: Carl, you can avoid these issues by using output buffering allowing you to call

[PHP] Re: Redirects in PHP

2003-06-13 Thread DvDmanDT
It's like a meta tag...meta http-equiv=Refresh content=5;url=FILE.PHP JavaScript version: script language=javascript function deelay(secs) { setTimeout(goto_url(),secs*1000) } function goto_url() { location.href=FILE.PHP } /script body onload=deelay(2) Carl Furst [EMAIL PROTECTED] skrev i

RE: [PHP] General question...

2003-06-13 Thread Ralph
Read the following: http://us2.php.net/fsockopen http://www.zend.com/manual/ref.stream.php -Original Message- From: Jason Paschal [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:48 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] General question... ppl,

Re: [PHP] Redirects in PHP

2003-06-13 Thread Michael
Search engines frown on using meta refresh because of abuse problems. Some engines won't index the page period and all of them penalize you at the very least. While it will work as you described, you're sacrificing search engine positioning to use it. You need to weigh the trade-offs

Re: [PHP] Redirects in PHP

2003-06-13 Thread Zak Johnson
On 2003-06-13 10:34-0600, Michael wrote: Search engines frown on using meta refresh because of abuse problems. Some engines won't index the page period and all of them penalize you at the very least. While it will work as you described, you're sacrificing search engine positioning to

Re: [PHP] Redirects in PHP

2003-06-13 Thread Michael
You're absolutely right. Thus, the need for a server-side redirect. You can use meta refresh as long as the time is set to around 10 seconds without being penalized. I guess you could include a message that you are going to be transferred in 10 seconds, then provide a link for the

php-general Digest 13 Jun 2003 17:39:40 -0000 Issue 2115

2003-06-13 Thread php-general-digest-help
php-general Digest 13 Jun 2003 17:39:40 - Issue 2115 Topics (messages 151331 through 151385): Re: Gettnig PHP code out of a DB? 151331 by: Ignatius Teo 151332 by: Ben Houlton 151333 by: Leif K-Brooks Re: How do I capture a POST responce 151334 by: Ralph Re:

RE: [PHP] Redirects in PHP

2003-06-13 Thread Brian S. Drexler
I don't know of any, but is there a good alternative? -Original Message- From: Zak Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:31 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Redirects in PHP On 2003-06-13 10:34-0600, Michael wrote: Search engines frown on using meta

RE: [PHP] Redirects in PHP

2003-06-13 Thread Carl Furst
I can understand the abuse, but this page wouldn't need to be indexed on any search engines really.. but I it's an important consideration. Thanks! Thanks to everyone! Carl. -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:35 PM To: Zak

RE: [PHP] Redirects in PHP

2003-06-13 Thread Johnny Martinez
You can do the cheesy: This page has moved. Please click this link. heheh J -Original Message- From: Carl Furst [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:43 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Redirects in PHP I can understand the abuse,

Re: [PHP] Redirects in PHP

2003-06-13 Thread Ernest E Vogelsinger
At 19:00 13.06.2003, Zak Johnson said: [snip] This will not solve the OP's problem; the header will still be output first, and the client will be immediately redirected. I am curious though; why is everyone suggesting to use JavaScript when the following in

RE: [PHP] Redirects in PHP

2003-06-13 Thread Brian S. Drexler
But is this the type of stuff that gets penalized in Search Engines or no? -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:47 PM To: Zak Johnson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Redirects in PHP At 19:00 13.06.2003, Zak

[PHP] Patch: No input file specified

2003-06-13 Thread Zak Johnson
I run PHP via a simple-minded webserver which sets up some environment variables and then calls my php scripts (which begin with a #!/usr/local/bin/php line). My scripts must handle all the headers, including the HTTP status header. My standard included file contains

[PHP] stumped on mysql_num_rows

2003-06-13 Thread Global I.S. S.A.
Hello List, The issue appears to be that no rows are being found with mysql_num_rows using the SQL LIMIT offset. There should be rows found. Further, all processing just halts, and no query is shown as per the code here: // RUN THE QUERY TO RETRIEVE EACH FOUND RECORD $queryResultHandle =

Re: [PHP] stumped on mysql_num_rows

2003-06-13 Thread Alex Earl
Can you give us the query too? Alex Hello List, The issue appears to be that no rows are being found with mysql_num_rows using the SQL LIMIT offset. There should be rows found. Further, all processing just halts, and no query is shown as per the code here: // RUN THE QUERY TO RETRIEVE

[PHP] Stumped @ MySql insert query

2003-06-13 Thread Pushpinder Singh Garcha
Hello everyone, I am trying to execute a simple query using $_POST variables, so that variable poisoning is not possible. note: I have register_globals ON on my site. I am getting the error shown below . Please advise ... as I can't seem to figure out why ! ? // connect to the BD/Table

Re: [PHP] Translate easy the language of the web site

2003-06-13 Thread Jacob Marble
Amen; machine-translators are no good for something that you don't want confused. ie- english season could be sazon or estacion in Spanish, which mean two different things. Jake Joel Rees [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all mailing-list people, I need help, my

Re: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Zak Johnson
On 2003-06-13 14:15-0400, Pushpinder Singh Garcha wrote: I am trying to execute a simple query using $_POST variables, so that variable poisoning is not possible. note: I have register_globals ON on my site. I am getting the error shown below . Please advise ... as I can't seem to

RE: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Jay Blanchard
[snip] $sql1 = INSERT INTO `contacts` VALUES ( $_POST['company'], $_POST['pri_name'], $_POST['sec_name'], $_POST['assistant_1'],

[PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
I have a script that creates a php file based on user input. I need this newly created file to have write permissions - chmod 777. How can I have the script create the file with these permissions already set? Is this possible? Thanks, Matt

Re: [PHP] create a chmod'd file

2003-06-13 Thread Alex Earl
I have a script that creates a php file based on user input. I need this newly created file to have write permissions - chmod 777. How can I have the script create the file with these permissions already set? Is this possible? Thanks, Matt How are you creating the file? fopen()?

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
uh, could it be... http://us3.php.net/manual/en/function.chmod.php -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: [PHP] create a chmod'd file I have a script that creates a php file based on user

Re: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Pushpinder Singh Garcha
On Friday, June 13, 2003, at 02:22 PM, Zak Johnson wrote: $_POST variables are still subject to poisoning; in your case, SQL injection. How is variable poisoning possible when using $_POST ?? I always felt that the php compiler should check to see if the variable was part of the POST Global

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777); But, this doesn't work, and I'm not sure how to go about chmod'ing the file for these permissions so that it can be changed later on. Matt -

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
[snip] I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777); But, this doesn't work, and I'm not sure how to go about chmod'ing the file for these permissions so that it can be changed later on. [/snip]

[PHP] ABOUT SOCKETS (HELP!)

2003-06-13 Thread David Elìas Sánchez Vásquez
I know this is a PHP forum, but this is really urgent!! A close friend of mine has got many trouble with this problem while developing a Java chat. Any help would be really appreciated. Thanks David. Problem is as follows: I'm programming an applet java chat but I have a big problem and I

Re: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Zak Johnson
On 2003-06-13 14:42-0400, Pushpinder Singh Garcha wrote: How is variable poisoning possible when using $_POST ?? I always felt that the php compiler should check to see if the variable was part of the POST Global array. At least this is is what I thought about the $_POST global array. It

Re: [PHP] create a chmod'd file

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 02:43, Matt Palermo wrote: I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777); But, this doesn't work, and I'm not sure how to go about chmod'ing the file for these

Re: [PHP] Translate easy the language of the web site

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 02:19, Jacob Marble wrote: Amen; machine-translators are no good for something that you don't want confused. ie- english season could be sazon or estacion in Spanish, which mean two different things. Never mind translation, season in English has more than one meaning.

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
It just doesn't chmod the file. It doesn't produce errors except for later on in the script when it says it can't access the file with write permissions (but it should already be chmod'd by then). Thanks. Matt - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] create a chmod'd file

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 03:01, Matt Palermo wrote: It just doesn't chmod the file. It doesn't produce errors except for later on in the script when it says it can't access the file with write permissions (but it should already be chmod'd by then). Thanks. If chmod() fails I'm pretty sure it

[PHP] Re: Zend Optimizer not active?

2003-06-13 Thread Steve Yates
On Fri, 13 Jun 2003 10:38:39 +0200, Marek Kilimajer wrote: Are the logs saying anything? Or if you run php from command line? Sorry should have made that clear. Apache's error log does not show any reference to PHP or Zend, nor does /var/log/messages. Is there another place I should look?

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
[snip] It just doesn't chmod the file. It doesn't produce errors except for later on in the script when it says it can't access the file with write permissions (but it should already be chmod'd by then). Thanks. [/snip] What are the permissions of the script producing the file? Does it have the

Re: [PHP] stumped on mysql_num_rows

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 01:55, Global I.S. S.A. wrote: The issue appears to be that no rows are being found with mysql_num_rows using the SQL LIMIT offset. There should be rows found. Further, all processing just halts, and no query is shown as per the code here: // RUN THE QUERY TO

[PHP] set_error_handler() with class, method as parameters problem.

2003-06-13 Thread Lukasz Karapuda
This is not exactly a bug report, because i am not sure where problem is. I am using PHP4.3.1 on Win2000/IIS. I am setting a custom error handler through: set_error_handler(array($objError, 'handleError')); where $objError is an instance of an error handling class. Then, i trigger a user error

RE: [PHP] Variable variables question?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Douglas Douglas To: [EMAIL PROTECTED] To get the superglobal array ($_GET or $_POST), I try to build these strings '_'.$method. I'm sure this part works, PHP builds the string _GET or _POST according to the $method parameter. I use ${'_'.$method} to get the

[PHP] File lsiting exec(ls... using variables.

2003-06-13 Thread Vernon
I'm trying to add a variable to the end of a directory listing. This will give me the root directory and show me all the files exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/', $filelist); I figured I could do this but it shows me all the files in the root of the site not of

RE: [PHP] File lsiting exec(ls... using variables.

2003-06-13 Thread Jay Blanchard
[snip] I'm trying to add a variable to the end of a directory listing. This will give me the root directory and show me all the files exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/', $filelist); [/snip] Have you thought about using

[PHP] forms question -- simple

2003-06-13 Thread Gregory Landry
Hi all, I'm new to the list and to PHP. I haven't bought a book as of yet but I've found a number of resources that are getting me through the basics. I am collecting data from a form. I've having no problems collecting the data and printing it out. But... I have a form with check boxes with 4

RE: [PHP] forms question -- simple

2003-06-13 Thread gregory landry
I figured it out. Yipppee.. Thanks -Original Message- From: Gregory Landry [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: [PHP] forms question -- simple Hi all, I'm new to the list and to PHP. I haven't bought a book as of yet but

[PHP] PLEASE STOP SENDING ME MAIL!!! PLEASE UNSUBSCRIBE NOW!!!

2003-06-13 Thread Ruth Copland
--- gregory landry [EMAIL PROTECTED] wrote: I figured it out. Yipppee.. Thanks -Original Message- From: Gregory Landry [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: [PHP] forms question -- simple Hi all, I'm new to

[PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
The following function converts minutes to years, monthes, weeks, days, hours, minutes. For instance, 61 minutes would become 1 hour, one minute. Before I use it, I want to make sure there are no stupid mistakes. I can't find any, can any of you? function min2ymwdhm($min){ $a = array();

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
How do I get the script to own the file? Are there special commands needed for this? Matt -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] create a chmod'd file [snip] It just

Re: [PHP] Will this work right?

2003-06-13 Thread Alex Earl
The following function converts minutes to years, monthes, weeks, days, hours, minutes. For instance, 61 minutes would become 1 hour, one minute. Before I use it, I want to make sure there are no stupid mistakes. I can't find any, can any of you? function min2ymwdhm($min){ $a =

Re: [PHP] PLEASE STOP SENDING ME MAIL!!! PLEASE UNSUBSCRIBE NOW!!!

2003-06-13 Thread Alex Earl
Read the bottom of the email messages, it tells you how to unsubscribe. Alex --- gregory landry [EMAIL PROTECTED] wrote: I figured it out. Yipppee.. Thanks -Original Message- From: Gregory Landry [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:10 PM To: [EMAIL

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
What is the umask()? What is that used for? How do I set that up right? Matt -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] create a chmod'd file On Saturday 14 June 2003 03:01, Matt Palermo

Re: [PHP] create a chmod'd file

2003-06-13 Thread John Nichel
Matt Palermo wrote: I need this newly created file to have write permissions - chmod 777. First, if you just need to write to it, don't chmod it to 777 (you're giving rwx across the board doing that). Who needs to write to the file? The webserver only? Then set the permissions to 600,

Re: [PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
Already have, and it seems to work fine. Fairly hard to test though, since the human brain has a hard time converting number of minutes into years/monthes/weeks/days/hours/minutes. Alex Earl wrote: Why not just try it? Alex -- The above message is encrypted with double rot13 encoding.

[PHP] Pipe $var to a shell command

2003-06-13 Thread Tim T
I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec(command $myoutput) however this is not quite right. Anybody have any ideas?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread DvDmanDT
Like $myoutput=`command`; ? Tim T [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec(command $myoutput) however this is not quite right. Anybody have any ideas?? --

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread Bobby Patel
maybe try exec? $instruction = $myOutput command ; # for piping (as I recall) I used to do the input from the right, but I don't think that will make a difference exec ($instruction); Bobby exec (command Tim T [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a mem var $myoutput

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread DvDmanDT
Oh, sorry, I missunderstood you... You want $myoutput to be the programs input, not the output of the program... Hmm... Look into popen(), fputs() and fclose()... Tim T [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I have a mem var $myoutput I would like to pipe it to the input of

Re: [PHP] Pipe $var to a shell command

2003-06-13 Thread Leif K-Brooks
If $myoutput is foo, it will attempt to get input from a file named foo. Use command | $myoutput instead. Tim T wrote: I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec(command $myoutput) however this is not quite right. Anybody have

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread DvDmanDT
Ok, last reply from me I think... Must read until I know for sure before I post... http://se.php.net/manual/en/function.proc-open.php seems to be just what you need! Tim T [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I have a mem var $myoutput I would like to pipe it to the input

  1   2   >