[PHP] Regular expression help

2004-08-24 Thread Daniel Lahey
I'm trying to figure out how to formulate a regular expression that will get me everything following a pound sign (#) up to the first space or { character. (I'm trying to parse the ids out of a style sheet.) Can anyone point me in the right direction? I've been searching on the web for hours

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

2004-08-24 Thread Karam Chand
Hi, Thanks for your continued help. Even I was wondering the same problem. So I went ahead to look into the ini settings. My local memory limit is 8M as well as the ISP one. The timeout for my local PHP is 300 secs and timeout for my ISP is 30 secs. Even if I try to reduce my local timeout valu

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

2004-08-24 Thread Curt Zirzow
* Thus wrote Karam Chand: > Hello, > > Connecting to the PHP using Windows WinInet APIs. Mine > is a C++ app that connects to the PHP and gets data. > > The above probcess works like a cheese for tables upto > 10-20K but when I put on more heavy load like the > table described, WinInetAPI returns

Re: [PHP] quick globalisation?

2004-08-24 Thread Curt Zirzow
* Thus wrote Justin French: > 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. http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Building a "self-made" compilation of php?

2004-08-24 Thread Curt Zirzow
* Thus wrote mathieu: > Hi, > > I know that there are severals ways to add personnal functions into php and > i am looking for documentation about how to realize it. > If u need a bash explication, i want to do this with php: > "./configure -with-my-stuff" > Additional question: is it possible to

Re: [PHP] chat server and chat client

2004-08-24 Thread Curt Zirzow
* Thus wrote ascll: > Greetings, > > Does anyone know how to use PHP to develop a simple chatting server and > client? what protocol? Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP G

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

2004-08-24 Thread Karam Chand
Hello, Connecting to the PHP using Windows WinInet APIs. Mine is a C++ app that connects to the PHP and gets data. The above probcess works like a cheese for tables upto 10-20K but when I put on more heavy load like the table described, WinInetAPI returns with the following error. Regards, Karam

Re: [PHP] Re: Where clause

2004-08-24 Thread Curt Zirzow
* Thus wrote Ustimenko Alexander: > read mysql manual: you must replace ' to ` > > ' to > `` in your $sql so um.. what is with all of these qutes? > > $sql = "SELECT id_from, id_to FROM ids WHERE id_from =`$current_id` OR

Re: [PHP] How to add Zlib support

2004-08-24 Thread Curt Zirzow
* Thus wrote Mauricio Pellegrini: > Curt Zirzow wrote: > > Ok, Thanks . > > But should I recompile only php or do I have to recompile > apache,mysql,etcetera,etcetera? Nope, php will be compiled as a shared object so everything else doesn't need to be recompiled. Curt -- First, let me assure

Re: [PHP] how to count objects instances

2004-08-24 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: > Thanks, > But im using php 4.3. Then you'll have to resort to some very unstandard methods: class foo { var $instance_manager; function getInstanceNum() { return $this->instance_manager->instancesOf(__CLASS__); } function getInstanceName() { re

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

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

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 locati

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 pars

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 pa

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: > > sys

[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

[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] 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 som

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 nee

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

2004-08-24 Thread AceZero2790
--- Begin Message --- 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 neith

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

2004-08-24 Thread John Nichel
Jason Wong wrote: 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 11:09

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... >

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 so

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 /home/jones/publi

[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 --enable-gd-imgstrt

[PHP] ftp_ssl_connect()

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

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] 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. -Ori

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 perm

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] 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: AcceptPathInfo On Thanks to all who helped. Steve At 02:02 PM 8/24/2004, you wrote: > How can I make the following work on an apache 2.0.46/php 4.3.2

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

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: http://h

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

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] Joh

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 br

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 br

[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

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

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 br

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

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] 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 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

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 (http://www

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 > n

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 tha

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 window.close(); -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing Lis

[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 = "images/box/

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: 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

[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);

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... >> >> > $file = "$P/$F"; >> hea

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] 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:

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... What I want is to have this window close automatically once it's launched the Save As Dialog Box ... I tried several javascript window.close(), self.close() functions but non

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] 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 bef

[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... What I want is to have this window close automatically once it's launched the Save As Dialog Box ... I tried several javascript window.close(), self.close() functions but none of them seem

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: http://pear.php.net/pa

[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: http:/

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 "./error

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

[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] [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 o

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] Se

[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 po

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 > tha

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 s

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 r

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] 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 S

[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 c

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 connecti

[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 (01-

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"

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 He

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 mi

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] 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 server

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 bash-2.05$ Response: Date: Tue, 24 Aug 2004 14:35:55 GMT Server: Apache/1.3.26 (Unix) mod_ssl/2.8.9 OpenSSL/0.9.6k PHP/4.3.3 mod_perl/1.26 mod_fastcgi/2.2.10 X-Powered-By: PHP/4.3.3 X-CacheDebug-five: 7 Connection: close Transfer-Encoding: ch

[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

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

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 ne

[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

[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 passwo

[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 PR

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 D

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 co

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 p

[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

[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: In h

[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 L

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

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: class Foo { static $instances = 0; function

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 $_SERVER['QUERY_STRING']

[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 -- function jpcache_debug2($s) { header("X-CacheDebug-five: $s"); print $s; } $myVariable = serialize($_P

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,

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 ='$curre

  1   2   >