[PHP] links extract from a string

2004-08-24 Thread Syed Ghouse
Hi all (B (Bi m doing a project in which i m displaying the statistics of (B (Bclickcounts of links send thru a message. (B (BFor that i have to extract the links from the message string given by user. (B (BSo pls tell me how to get the url/links from a string (or) To track clicks of all

[PHP] Re: links extract from a string

2004-08-24 Thread Ustimenko Alexander
use http://php.net/preg_match Syed Ghouse [EMAIL PROTECTED] $B'c'`'`'R'k'Z'](B/$B'c'`'`'R'k'Z']'Q(B $B'S(B $B'_'`'S'`'c'd'q'g(B $B'c']'V'U'e'p'k'V'V(B: news:[EMAIL PROTECTED] Hi all i m doing a project in which i m displaying the statistics of clickcounts of links send thru a message.

Re: [PHP] [OFF] - Fraudulent web orders - any ideas?

2004-08-24 Thread Markus Mayer
It may well be that they're using anonymous proxies. I know of a couple that spread the visiting IP addresses over a wide range of IP addresses, although everything does make it back eventually. Also possible is that they are using infected Windows machines and proxies. In the case of

Re: [PHP] Using php_value in .htaccess files

2004-08-24 Thread Neil Freeman
[EMAIL PROTECTED] wrote: *** This Email Has Been Virus Swept *** Is there anything special one has to do in order to enable the use of the php_value directive in the context of an apache .htaccess file? I

[PHP] chat server and chat client

2004-08-24 Thread ascll
Greetings, Does anyone know how to use PHP to develop a simple chatting server and client? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessing form values from multi selects or checkboxes

2004-08-24 Thread Alex Bovey
Hi, Is there a way I can access the values selected in a multi-select dropdown or group of checkboxes without appending square brackets to the name of the input field in my form so that it automatically becomes an array in PHP? i.e. rather than this: select name=fruit[] multiple size=5option

[PHP] Where clause

2004-08-24 Thread Phpu
Hi, I have a table with 2 fields: id_from and id_to. I want to interogate the database and to display the results if the id_to is equal to some current id OR id_from id_from is equla to saame current id. I use this but doesn't work $sql = SELECT id_from, id_to FROM ids WHERE id_from

Re: [PHP] How to add Zlib support

2004-08-24 Thread Mauricio Pellegrini
Curt Zirzow wrote: * Thus wrote Mauricio Pellegrini: It's a requisite that the compression library has to be zlib. I don't know how to do that. I guess I should reconfigure with './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs'

Re: [PHP] Where clause

2004-08-24 Thread Markus Mayer
The answer to this is quite simple if you look in a manual. mysql_query returns a resource id from which you extract the results using things like mysql_result() or mysql_fetch_object() or mysql_fetch_row(). Look up the manual on those commands. On Tuesday 24 August 2004 13:24, Phpu wrote:

Re: [PHP] system command

2004-08-24 Thread Daniel Schierbeck
Ron Clark wrote: Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message. ob_get_clean() is preferable: $output = ob_get_clean(); // Gets the buffered output and cleans the buffer -- Daniel Schierbeck -- PHP General

RE: [PHP] Where clause

2004-08-24 Thread Jay Blanchard
[snip] I have a table with 2 fields: id_from and id_to. I want to interogate the database and to display the results if the id_to is equal to some current id OR id_from id_from is equla to saame current id. I use this but doesn't work $sql = SELECT id_from, id_to FROM ids WHERE id_from

Re: [PHP] how to count objects instances

2004-08-24 Thread Daniel Schierbeck
Robert Cummings wrote: On Mon, 2004-08-23 at 20:54, John Holmes wrote: [EMAIL PROTECTED] wrote: hi, What is best method(if it's possible) to count how many times an object is instanced in one time script call? I means that if i have a class named Test, i what to know how many times she's called,

[PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread Daniel Schierbeck
Eric Peters wrote: I think I've boiled my problemfor some reason I can't header() a serialized $_POST variable Running PHP 5.0 Final (and also tested with 4.3.3): -- begin file -- ?php function jpcache_debug2($s) { header(X-CacheDebug-five: $s); print $s; } $myVariable =

Re: [PHP] Accessing form values from multi selects or checkboxes

2004-08-24 Thread John Holmes
Alex Bovey wrote: Is there a way I can access the values selected in a multi-select dropdown or group of checkboxes without appending square brackets to the name of the input field in my form so that it automatically becomes an array in PHP? Write your own function to parse

Re: [PHP] how to count objects instances

2004-08-24 Thread Daniel Schierbeck
Curt Zirzow wrote: * Thus wrote Robert Cummings: On Mon, 2004-08-23 at 20:54, John Holmes wrote: [EMAIL PROTECTED] wrote: You could write a wrapper class for Test that kept count of the instances and returned a new object upon request... In PHP5: ?php class Foo { static $instances = 0;

Re: [PHP] Accessing form values from multi selects or checkboxes

2004-08-24 Thread Jason Wong
On Tuesday 24 August 2004 18:00, Alex Bovey wrote: Basically I am using a JavaScript chained select function which complains when I use square brackets in a field name, manual PHP and HTML -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators *

[PHP] post file from one server to other

2004-08-24 Thread QT
dear Sirs, I have a database with binary file. I want to post that file from my server to another one with posting method. I have no problem to post any text data but I can not post binary data such as picture.jpe. Where can I find some solution about this Best Regards -- PHP General Mailing

[PHP] ... extendet library ...

2004-08-24 Thread Marko Rastislav
Hi all, I just starting with php, and i hawe problem with Bzip2 library. I will using this library, but when I use function bzcompress() in the editor ZDE (Zend Development Enviroment 3.0.2), this editor write text Call to undefined function: bzcompress() ... . Example: ?php $str =

[PHP] Re: Where clause

2004-08-24 Thread Ustimenko Alexander
read mysql manual: you must replace ' to ` ' to `` in your $sql so $sql = SELECT id_from, id_to FROM ids WHERE id_from =`$current_id` OR id_to=`$current_id`; or more intelligent without ``` in your $sql so $sql =

RE: [PHP] [OFF] - Fraudulent web orders - any ideas?

2004-08-24 Thread Daryl Meese
If the problem is only with AmEx then the question is: how important is AmEx to your business? Stop accepting them or don't accept them for a little while. Just a thought because AmEx doesn't make up much of our business. Daryl Meese On Monday 23 August 2004 23:33, Brian Dunning wrote: The

Re: [PHP] system command

2004-08-24 Thread ron clark
Daniel Schierbeck wrote: Ron Clark wrote: Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message. ob_get_clean() is preferable: $output = ob_get_clean(); // Gets the buffered output and cleans the buffer Didn't need the

Re: [PHP] system command

2004-08-24 Thread Daniel Schierbeck
Ron Clark wrote: Daniel Schierbeck wrote: Ron Clark wrote: Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message. ob_get_clean() is preferable: $output = ob_get_clean(); // Gets the buffered output and cleans the buffer

[PHP] Re: ... extendet library ...

2004-08-24 Thread Ustimenko Alexander
1) find php.ini 2) uncomment ;extension=php_bz2.dll 3) restart apache 4) if it`s suck, then see event viewer for info 5) may be Bzip2 library wants to some additional dll`s to system32 from bzip2 site Marko Rastislav [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:[EMAIL

[PHP] making sure sendmail function is on and running

2004-08-24 Thread AceZero2790
Background: Server-Apache 1.3.31 OS-Windows XP PHP-5 Problem-I'm trying to run eFiction, a story/fanfiction archive script. On this, people self register, and they are supposed to get an e-mail with their password. However, I and one other attempted signing up, and neither of us got our

[PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
I need to active php error level Warning and log the errors in a file for my whole Apache virtual website. It is clear how to do everything on a script-by-script basis; but, I need to do it across the site. I can't find any direct documentation to help. The php manual and Apache directives

Re: [PHP] how to count objects instances

2004-08-24 Thread tyler
Thanks, But im using php 4.3. Quoting Curt Zirzow [EMAIL PROTECTED]: * Thus wrote Robert Cummings: On Mon, 2004-08-23 at 20:54, John Holmes wrote: [EMAIL PROTECTED] wrote: You could write a wrapper class for Test that kept count of the instances and returned a new object upon

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread John Holmes
From: Al [EMAIL PROTECTED] I need to active php error level Warning and log the errors in a file for my whole Apache virtual website. It is clear how to do everything on a script-by-script basis; but, I need to do it across the site. http://us2.php.net/manual/en/configuration.changes.php

[PHP] Re: post file from one server to other

2004-08-24 Thread Matthew Weier O'Phinney
* Qt [EMAIL PROTECTED]: I have a database with binary file. I want to post that file from my server to another one with posting method. I have no problem to post any text data but I can not post binary data such as picture.jpe. Where can I find some solution about this Look into PHP's cURL

RE: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread Peters, Eric
Check this out: bash-2.05$ cat test.php ?php function jpcache_debug2($s2) { $length = strlen($s2); $length++; $headers = X-CacheDebug-five: $length; header($headers); print $length . \n;

Re: [PHP] making sure sendmail function is on and running

2004-08-24 Thread Markus Mayer
This one is rather annoying as I have found out in the last couple of weeks. Depending on if your apache/php is on Windows or Unix, one or the other of the configurations you mentioned is relevant. If you have Windows, PHP can only use an extrenal smtp server, so you have to open that

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Thanks, that has me started. Per the documentation, error_reporting must use the bitmask values form. And, that works great. However, I can't get the errors to log in a special file. They insist on being logged in the system's error log file. I've tried: php_value error_log errors.txt with

Re: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread John Holmes
Exactly what part of this is confusing you? When you first request the page, $_POST is empty, so you end up with a serialized value of a:0:{} which has a length of 6. When you submit the form, you end up with a serialized value of: a:1:{s:3:foo;s:3:bar;} which has a length of 26. Maybe I missed

RE: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread Peters, Eric
You have to look at the headers Exactly...submit the form and the HEADER version of the string returns a:0:{} But, a print() of the same string variable correctly returns a:1:{s:3:foo;s:3:bar;} Dig deeper into it :) I had to use the Developer tools plugin in Firefox to get the HTTP Headers

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread John Holmes
From: Al [EMAIL PROTECTED] Per the documentation, error_reporting must use the bitmask values form. And, that works great. However, I can't get the errors to log in a special file. They insist on being logged in the system's error log file. There is a log_errors setting and a error_log

[PHP] Re: post file from one server to other

2004-08-24 Thread Ustimenko Alexander
see php.net/base64_encode user comments in POST protocol all content must send in, as i memorize, application/x-www-urlencoded form . then try combination like == guy at bhaktiandvedanta dot com

Re: [PHP] making sure sendmail function is on and running

2004-08-24 Thread AceZero2790
If you have Windows, PHP can only use an extrenal smtp server, so you have to open that server up to connections from your web server to your mail server. That could be on the same physical machine as your web server, in which case the mail server will have to be configured to accept

[PHP] Sessions vs. IE security

2004-08-24 Thread Stanislav Kuhn
Hi there, I have a problem and i can't find solution. Poblem is with security level of IE and using session. Normaly IE sending session id to server automatically, when you lift security level in IE to HIGH (i'm talking about version 6.x now) IE doesn't send session id atomatically to server. I

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Jason Wong
On Tuesday 24 August 2004 23:15, John Holmes wrote: There is a log_errors setting and a error_log setting. Try setting the log_errors value. To be absolutely clear, you need both, enable log_errors and specify error_log. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
The php.ini is already set to log errors and it works; but, they are appended to the system log. Just for the heck of it I tried; but it doesn't work. php_value error_reporting 2047 php_value log_errors TRUE php_value error_log ./errors.txt[and the full path string] John Holmes wrote:

Re: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread John Holmes
Peters, Eric wrote: You have to look at the headers Exactly...submit the form and the HEADER version of the string returns a:0:{} But, a print() of the same string variable correctly returns a:1:{s:3:foo;s:3:bar;} Dig deeper into it :) Okay. Running 4.3.6 and 5.0.0, I see the following requests

Re: [PHP] Sessions vs. IE security

2004-08-24 Thread John Holmes
Stanislav Kuhn wrote: I have a problem and i can't find solution. Poblem is with security level of IE and using session. Normaly IE sending session id to server automatically, when you lift security level in IE to HIGH (i'm talking about version 6.x now) IE doesn't send session id atomatically to

Re: [PHP] Sessions vs. IE security

2004-08-24 Thread Chris Shiflett
--- Stanislav Kuhn [EMAIL PROTECTED] wrote: But problem is when I want to include my sctipt to a client web site. Technically my script is included in frame of html page on another server. I know, using frames is . but clients are using them very offten and I can do nothing with that.

[PHP] Re: post file from one server to other

2004-08-24 Thread QT
I checked the curl but I have same problem; I have to say file type to other server with some method. I couldn't find that method: Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Qt [EMAIL PROTECTED]: I have a database with binary file. I want to post that

RE: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread Peters, Eric
I figured it out...wasn't a PHP thing at all but rather the Firefox addin to view response headers It was cheating and doing a GET to grab the headers instead of the cached POST output. Thanks for your help John, Eric -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]

Re: [PHP] [OFF] - Fraudulent web orders - any ideas?

2004-08-24 Thread Brian Dunning
On Aug 24, 2004, at 9:05 AM, [EMAIL PROTECTED] wrote: are you passing the cvm on the mc/visa charges? is that stopping them? Yes, I'm doing CVM (or whatever) and AVS on all orders. Where CVM passes, I accept anything but a NN match on AVS. If CVM is blank, I accept only YY on AVS. So far only

[PHP] Re: post file from one server to other

2004-08-24 Thread QT
thank you but I do not need display, I need to post other server. And other server is waiting as a binary file. Ustimenko Alexander [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] see php.net/base64_encode user comments in POST protocol all content must send in, as i memorize,

Re: [PHP] quick globalisation?

2004-08-24 Thread Justin Patrin
On Tue, 24 Aug 2004 12:21:03 +1000, Justin French [EMAIL PROTECTED] wrote: Jay, global $a, $b, $c is used for bringing global variables INTO the scope of the function... what I'm after is a way of making localised variables (in function) available outside of the function. Justin It

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Jason Wong
On Tuesday 24 August 2004 23:37, Al wrote: The php.ini is already set to log errors and it works; but, they are appended to the system log. Just for the heck of it I tried; but it doesn't work. php_value error_reporting 2047 php_value log_errors TRUE php_value error_log ./errors.txt

[PHP] delimiter question?

2004-08-24 Thread Steve Buehler
How can I make the following work on an apache 2.0.46/php 4.3.2 installation? /dist/gogo.php/order-inventory-form.php Right now, unless it is a question mark after the gogo.php script, it will not run. Thank You Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] post file from one server to other

2004-08-24 Thread Michal Migurski
I have a database with binary file. I want to post that file from my server to another one with posting method. I have no problem to post any text data but I can not post binary data such as picture.jpe. The HTTP_Client class in Pear will handle post requests:

[PHP] Closing my Window after Download

2004-08-24 Thread PHP Junkie
Ave, I use the PHP Header directives to create a page which would force-download the file for the user... ?php $file = $P/$F; header(Content-Description: File Transfer); header(Content-Type: application/force-download); header(Content-Disposition: attachment; filename=.basename($file));

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
Ave, Nope... Didn't work. Didn't return an error or anything, didn't delete the folders either! On 8/23/04 8:21 PM, Richard Whitney [EMAIL PROTECTED] wrote: Let me clarify: system() is like working in a shell rm -rf forces removal of the directory $file_dir, which you define

Re: [PHP] Closing my Window after Download

2004-08-24 Thread John Holmes
From: PHP Junkie [EMAIL PROTECTED] Anyone's got any tips for me? Find a JavaScript list? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing my Window after Download

2004-08-24 Thread John Nichel
PHP Junkie wrote: Ave, I use the PHP Header directives to create a page which would force-download the file for the user... ?php $file = $P/$F; header(Content-Description: File Transfer); header(Content-Type: application/force-download); header(Content-Disposition: attachment;

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
Ave, Trust me I do... I double checked it actually.. On 8/24/04 1:41 PM, Richard Whitney [EMAIL PROTECTED] wrote: Dumb question - are you sure you got the path right? i.e. /home/public_html/rest/of/your/path On Tue, 24 Aug 2004 13:31:06 -0400, PHP Junkie [EMAIL PROTECTED] wrote: Ave,

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread John Nichel
PHP Junkie wrote: Ave, Nope... Didn't work. Didn't return an error or anything, didn't delete the folders either! If you cannot delete via the php functions or via system calls, then you have a permission problem. What user/group is Apache running as? What is the output of 'ls -al' for the files

Re: [PHP] Closing my Window after Download

2004-08-24 Thread PHP Junkie
Ave, The browser window which launched the Save As window... On 8/24/04 1:41 PM, John Nichel [EMAIL PROTECTED] wrote: PHP Junkie wrote: Ave, I use the PHP Header directives to create a page which would force-download the file for the user... ?php $file = $P/$F;

[PHP] Image Width Error

2004-08-24 Thread Jed R. Brubaker
Hi all! I am trying to do something really simple, but my error is outside of my expertise (hopefully not for long!). Code: - $this-lVertical = images/box/.$template._lVertical.gif; $borderWidth = imagesx($this-lVertical);

[PHP] Re: delimiter question?

2004-08-24 Thread Torsten Roehr
Steve Buehler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How can I make the following work on an apache 2.0.46/php 4.3.2 installation? /dist/gogo.php/order-inventory-form.php Right now, unless it is a question mark after the gogo.php script, it will not run. Thank You Steve

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread Jason Wong
Please do not top post. On Wednesday 25 August 2004 01:31, PHP Junkie wrote: Ave, Nope... Didn't work. Didn't return an error or anything, didn't delete the folders either! system('rm -rf',$user_dir,$ret_val); That should be: system(rm -rf $user_dir, $ret_val); -- Jason Wong -

[PHP] Re: Image Width Error

2004-08-24 Thread Torsten Roehr
Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all! I am trying to do something really simple, but my error is outside of my expertise (hopefully not for long!). Code: - $this-lVertical =

Re: [PHP] Closing my Window after Download

2004-08-24 Thread John Nichel
PHP Junkie wrote: Ave, The browser window which launched the Save As window... PHP cannot do this. You'll have to use JavaScript in the browser window. Something like ?php $file = $P/$F; header(Content-Description: File Transfer); header(Content-Type: application/force-download);

Re: [PHP] [OFF] - Fraudulent web orders - any ideas?

2004-08-24 Thread Justin Patrin
On Tue, 24 Aug 2004 09:51:53 +0200, Markus Mayer [EMAIL PROTECTED] wrote: It may well be that they're using anonymous proxies. I know of a couple that spread the visiting IP addresses over a wide range of IP addresses, although everything does make it back eventually. Also possible is that

Re: [PHP] delimiter question?

2004-08-24 Thread Justin Patrin
On Tue, 24 Aug 2004 11:52:21 -0500, Steve Buehler [EMAIL PROTECTED] wrote: How can I make the following work on an apache 2.0.46/php 4.3.2 installation? /dist/gogo.php/order-inventory-form.php mod_rewrite Right now, unless it is a question mark after the gogo.php script, it will not run.

RE: [PHP] Image Width Error

2004-08-24 Thread Jay Blanchard
[snip] Fatal error: Call to undefined function imagesx() in c:\web\www\php\classes\Box.class on line 65 Am I missing something in the PHP config? What should I be looking for. Oh! I am on PHP5.0 - that should help. [/snip] Do you have GD compiled with PHP? -- PHP General Mailing List

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
Ave, Apache to the best of my knowledge runs as nobody by default and since I didn't change any settings, it is probably running as nobody. This is what I got with ls -al rahul:/Library/WebServer/Documents/informed-sources.com/imsafm bob$ ls -al total 16 drwxrwxrwx5 nobody nobody170 24

Re: [PHP] Image Width Error

2004-08-24 Thread Greg Donald
On Tue, 2004-08-24 at 12:56, Jed R. Brubaker wrote: Code: - $this-lVertical = images/box/.$template._lVertical.gif; $borderWidth = imagesx($this-lVertical); - Error:

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread John Nichel
PHP Junkie wrote: Ave, Apache to the best of my knowledge runs as nobody by default and since I didn't change any settings, it is probably running as nobody. This is what I got with ls -al rahul:/Library/WebServer/Documents/informed-sources.com/imsafm bob$ ls -al total 16 drwxrwxrwx5 nobody

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
Ave, IT WORKS!!! I guess it was the syntax which was the problem! Finally it works!! system(rm -rf $user_dir, $ret_val); Works perfectly... Removes folder! Thanks a TON! On 8/24/04 2:04 PM, Jason Wong [EMAIL PROTECTED] wrote: Please do not top post. On Wednesday 25 August 2004 01:31,

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Here is what I having working so far: php_value error_reporting 2# Just warnings, which is what I want php_flag log_errors 1 #this turns logging on and off in the syslog php_flag display_errors 1 #this turns error display at client's

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
Ave, IT WORKS!!! I guess it was the syntax which was the problem! Finally it works!! system(rm -rf $user_dir, $ret_val); Works perfectly... Removes folder! Thanks a TON! On 8/24/04 2:04 PM, Jason Wong [EMAIL PROTECTED] wrote: Please do not top post. On Wednesday 25 August 2004 01:31,

[PHP] Re: Image Width Error

2004-08-24 Thread Jed R. Brubaker
Apologies. I need to be using getimagesize(). I thought it was only for file sizes. Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all! I am trying to do something really simple, but my

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Here is what I having working so far: php_value error_reporting 2# Just warnings, which is what I want php_flag log_errors 1 #this turns logging on and off in the syslog php_flag display_errors 1 #this turns error display at client's

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Here is what I having working so far: php_value error_reporting 2# Just warnings, which is what I want php_flag log_errors 1 #this turns logging on and off in the syslog php_flag display_errors 1 #this turns error display at client's

Re: [PHP] Need help with using htaccess to override php.ini error

2004-08-24 Thread Al
test Al wrote: The php.ini is already set to log errors and it works; but, they are appended to the system log. Just for the heck of it I tried; but it doesn't work. php_value error_reporting 2047 php_value log_errors TRUE php_value error_log ./errors.txt[and the full path string] John

Re: [PHP] Image Width Error

2004-08-24 Thread Jason Wong
On Wednesday 25 August 2004 01:56, Jed R. Brubaker wrote: - Fatal error: Call to undefined function imagesx() in c:\web\www\php\classes\Box.class on line 65 --- Am I missing something in

Re: [PHP] delimiter question?

2004-08-24 Thread Michal Migurski
How can I make the following work on an apache 2.0.46/php 4.3.2 installation? /dist/gogo.php/order-inventory-form.php Right now, unless it is a question mark after the gogo.php script, it will not run. Apache 2.0 differs from 1.3.x in its handling of path info. See:

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread Jason Wong
Please stop top posting. On Wednesday 25 August 2004 02:20, PHP Junkie wrote: Apache to the best of my knowledge runs as nobody by default and since I didn't change any settings, it is probably running as nobody. Instead of speculating, find out for certain by using phpinfo(). -- Jason Wong

Re: [PHP] path info question. Was delimiter question?

2004-08-24 Thread Steve Buehler
Thank You. I didn't know where to start looking. Anyway, putting the following lines in an .htaccess file in the directory worked like a charm: IfModule mod_rewrite.c AcceptPathInfo On /IfModule Thanks to all who helped. Steve At 02:02 PM 8/24/2004, you wrote: How can I make the following

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread William Moore
The reason this works is because you are doing a recursive remove of the directory. The PHP rmdir() does not remove a directory with contents in it. If you modify your script so that it walks the users directory and removes each file and subdirectory then it would probally have worked correctly.

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread John Holmes
From: Al [EMAIL PROTECTED] php_value error_log /home/jones/public_html/AutoSch/errors.txt #This doesn't work either. Anyone know how to write the errors to a file? The documentation says it should work. It should. What are the permissions on the above file? Does the apache/php user have

[PHP] RE: [SPAM] Re: [PHP] Sessions vs. IE security

2004-08-24 Thread Stanislav Kuhn
Thanks for help. I have set up p3p policy to my site.. I passed it trouth validator and IE can find privacy policy but it still doesn't allow me cookies... I can't find information what exactly to specify in privacy policy IE allows me third party cookies... Does somebody idea? tnx. S.

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread Jason Wong
On Wednesday 25 August 2004 02:30, John Nichel wrote: This is what I got with ls -al rahul:/Library/WebServer/Documents/informed-sources.com/imsafm bob$ ls -al total 16 drwxrwxrwx5 nobody nobody170 24 Aug 13:55 . drwxrwxrwx 102 bob unknown 3468 24 Aug 11:23 ..

[PHP] ftp_ssl_connect()

2004-08-24 Thread Jesse Castro
Does ftp_ssl_connect() support Explicit SSL, Implicit SSL, or both? Thanks, -jess-

[PHP] PHP 4.3.8 + Apache 1.3.31 + Oracle 9.2.0.4 Segmentation Fault

2004-08-24 Thread Francisco Puente XFMP (QA/EMC)
Hi all, I'm trying to get apache + php to work with Oracle on Debian(Woody). I've managed to install Oracle 9.2.0.4 on Debian Woody, it's working fine from the command line. I've compiled Apache/PHP both from the sources with the following parameters. PHP: ./configure

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Everything is working, thanks to you and Jason. The key was that I had to provide a seed file since error_log only appends messages to an existing file and doesn't create one if it does not exist. Al John Holmes wrote: From: Al [EMAIL PROTECTED] php_value error_log

RE: [PHP] RE: [SPAM] Re: [PHP] Sessions vs. IE security

2004-08-24 Thread Michael Sims
Stanislav Kuhn wrote: Thanks for help. I have set up p3p policy to my site.. I passed it trouth validator and IE can find privacy policy but it still doesn't allow me cookies... I can't find information what exactly to specify in privacy policy IE allows me third party cookies... Does

RE: [PHP] RE: [SPAM] Re: [PHP] Sessions vs. IE security

2004-08-24 Thread Ed Lazor
-Original Message- Thanks for help. I have set up p3p policy to my site.. I passed it trouth validator and IE can find privacy policy but it still doesn't allow me cookies... I can't find information what exactly to specify in privacy policy IE allows me third party cookies... Does

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread John Nichel
Jason Wong wrote: snip If Apache is running as nobody/nobody, it does not have permission to delete these directories. The only users who can delete these directories are the respective users, and root. You need to have write permission to delete... drwxr-xr-x3 www www 102 24 Aug

Fwd: [PHP] making sure sendmail function is on and running

2004-08-24 Thread AceZero2790
---BeginMessage--- Background: Server-Apache 1.3.31 OS-Windows XP PHP-5 Problem-I'm trying to run eFiction, a story/fanfiction archive script. On this, people self register, and they are supposed to get an e-mail with their password. However, I and one other attempted signing up, and neither

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread Jason Wong
On Wednesday 25 August 2004 05:31, John Nichel wrote: How so? Even if 'nobody' is in the www group, it still wouldn't have the proper permissions. To be able to delete directories, you need: - 'wx' on the parent directory - 'rx' on the target directory To be able to delete files, you

[PHP] Server Error : Premature end of script headers: php-engine

2004-08-24 Thread Karam Chand
Hello, I have a fairly big table of 60K rows with 9 cols. I have a C++ app that connects to a PHP page. This PHP page in turn connects to the above table and outputs all the row in form of XML. I get all this data in my C++ app, parse it with an XML parser and do my work. My PHP source looks

[PHP] PHP returns empty form

2004-08-24 Thread Richard Miller
Good evening! I am getting an error message that I've never seen before. I am POSTing an HTML form to a PHP script, but when I submit the form, my Safari browser says can't open the page such-and-such because it could not load any data from this location. Mozilla gives no error message but

[PHP] How do I find out if a string will fit in an area of an image?

2004-08-24 Thread Brent Clements
Hi All, Let's say I have a string of text. $foo = I WANT ALot of Text to be diSPLAYed! I have an area on my image that is around 386 pixels wide. How do I find out if my text will fit in that area using any size font? Thanks, Brent

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread Curt Zirzow
* Thus wrote Jason Wong: Please do not top post. On Wednesday 25 August 2004 01:31, PHP Junkie wrote: Ave, Nope... Didn't work. Didn't return an error or anything, didn't delete the folders either! system('rm -rf',$user_dir,$ret_val); That should be: system(rm -rf

Re: [PHP] RE: [SPAM] Re: [PHP] Sessions vs. IE security

2004-08-24 Thread Chris Shiflett
--- Stanislav Kuhn [EMAIL PROTECTED] wrote: Thanks for help. I have set up p3p policy to my site.. I passed it trouth validator and IE can find privacy policy but it still doesn't allow me cookies... I can't find information what exactly to specify in privacy policy IE allows me third party

Re: [PHP] Server Error : Premature end of script headers: php-engine

2004-08-24 Thread Curt Zirzow
* Thus wrote Karam Chand: Hello, I have a fairly big table of 60K rows with 9 cols. I have a C++ app that connects to a PHP page. This PHP page in turn connects to the above table and outputs all the row in form of XML. I get all this data in my C++ app, parse it with an XML parser and

Re: [PHP] PHP returns empty form

2004-08-24 Thread Curt Zirzow
* Thus wrote Richard Miller: Good evening! I am getting an error message that I've never seen before. I am POSTing an HTML form to a PHP script, but when I submit the form, my Safari browser says can't open the page such-and-such because it could not load any data from this location.

Re: [PHP] How do I find out if a string will fit in an area of an image?

2004-08-24 Thread Justin Patrin
On Tue, 24 Aug 2004 21:49:03 -0500, Brent Clements [EMAIL PROTECTED] wrote: Hi All, Let's say I have a string of text. $foo = I WANT ALot of Text to be diSPLAYed! I have an area on my image that is around 386 pixels wide. How do I find out if my text will fit in that area using any

Re: [PHP] How do I find out if a string will fit in an area of an image?

2004-08-24 Thread Curt Zirzow
* Thus wrote Brent Clements: Hi All, Let's say I have a string of text. $foo = I WANT ALot of Text to be diSPLAYed! I have an area on my image that is around 386 pixels wide. How do I find out if my text will fit in that area using any size font? This isn't as simple of a task as

  1   2   >