[PHP] Re: links extract from a string

2004-08-23 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 messa

[PHP] links extract from a string

2004-08-23 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 

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

2004-08-23 Thread Ustimenko Alexander
curt, it`s a bug. on my machine [Apache/2.0.48 (Win32) PHP/4.3.8] all works fine - as expected "Curt Zirzow" <[EMAIL PROTECTED]> ???/ ? ?: news:[EMAIL PROTECTED] > * Thus wrote Peters, Eric: > > I think I've boiled my problemfor some reason I can't header() a seria

Re: [PHP] quick globalisation?

2004-08-23 Thread 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. Justin On 24/08/2004, at 1:38 AM, Jay Blanchard wrote: [snip] Is there a quicker way to globalis

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

2004-08-23 Thread Curt Zirzow
* Thus wrote Peters, Eric: > 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-

Re: [PHP] How to add Zlib support

2004-08-23 Thread Curt Zirzow
* 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' > '--with-zl

Re: [PHP] how to count objects instances

2004-08-23 Thread Robert Cummings
On Mon, 2004-08-23 at 20:33, 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...

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

2004-08-23 Thread Peters, Eric
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 -- -- end file -- Response Headers - Begin output: Date: Mon, 23 Aug 2004 23:56:14 GMT Server: Apache/1.3.27 (Unix)

Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: > > I believe Apache's Allowoverride directive must have "Options" or > > "+Options" set for php_value changes to be permitted on a per-directory > > basis in .htaccess files. > > > > "Allowoverride All" is one way to make sure they're permitted. :D > > So... if I

Re: [PHP] how to count objects instances

2004-08-23 Thread Curt Zirzow
* 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

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

2004-08-23 Thread 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 link php scripting c++ rather than c

Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread weston
> I believe Apache's Allowoverride directive must have "Options" or > "+Options" set for php_value changes to be permitted on a per-directory > basis in .htaccess files. > > "Allowoverride All" is one way to make sure they're permitted. :D So... if I throw an override all in the .htaccess file I'

Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread Michal Migurski
> 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 notice that on some hosts I can drop in something like: > > php_value auto_prepend_file groove.php > > with impunity. Other hosts, it causes Ap

Re: [PHP] how to count objects instances

2004-08-23 Thread Robert Cummings
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, h

[PHP] Using php_value in .htaccess files

2004-08-23 Thread weston
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 notice that on some hosts I can drop in something like: php_value auto_prepend_file groove.php with impunity. Other hosts, it causes Apache to ge

[PHP] PHP Runtime Debugger (Was: [PHP] how to count objects instances)

2004-08-23 Thread Michal Migurski
> There's no predefined variable or method for determining this, that I'm > aware of, short of counting how many "new Test" lines you have. > > You could write a wrapper class for Test that kept count of the > instances and returned a new object upon request... A slightly more general question: ar

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

2004-08-23 Thread Justin Patrin
On Mon, 23 Aug 2004 14:33:56 -0700, Brian Dunning <[EMAIL PROTECTED]> wrote: > The plot thickens. I added AVS *and* CVM to the site - and the Amex > orders are still going through. Amex ignores CVM, and the address was > correct, so the thieves must have gotten ahold of printed statements > that sh

Re: [PHP] how to count objects instances

2004-08-23 Thread John Holmes
[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, how many copies exists etc. The idea is for monitoring in the way to op

[PHP] how to count objects instances

2004-08-23 Thread tyler
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, how many copies exists etc. The idea is for monitoring in the way to optimizing the code. The m

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

2004-08-23 Thread Brian Dunning
The plot thickens. I added AVS *and* CVM to the site - and the Amex orders are still going through. Amex ignores CVM, and the address was correct, so the thieves must have gotten ahold of printed statements that show the billing address. Any idea how to combat THAT? They are using fake IP addre

[PHP] Re:[PHP] system command

2004-08-23 Thread ron clark
John Holmes wrote: From: "ron clark" <[EMAIL PROTECTED]> I an trying to add virus scanning to the file upload section of our portal using uvscan. The virus scanning is working properly using a system call , but I am having problems with formatting the output. I need to check the return value and

[PHP] How to add Zlib support

2004-08-23 Thread Mauricio Pellegrini
Hi , On March 9th this year I 've compiled and installed php 4.3.4 on SuSe linux Server with apache 1.3. The configure command was this: './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '-enable-dbase' Nowadays I'm urged to install z

Re: [PHP] How to add zlib support

2004-08-23 Thread Curt Zirzow
I dont see how this has anything to do with: - Cookie behaviour - opening a save dialog box. - unlink and rmdir problems Please start a new email when starting a new topic, this is the 3rd unrelated topic that has been started on this thread. Curt -- First, let me assure you that this

Re: [PHP] readfile()

2004-08-23 Thread Aaron Todd
Not too familure with a chroot'd web setup and I dont know if my ISP has some security that I dont know about. I tried some tests with file_exists() and it doesnt seemt to be able to get to the files either. I've put in an info request to my ISP but they are usually not much help with somethin

Re: [PHP] system command

2004-08-23 Thread Jason Wong
On Tuesday 24 August 2004 03:49, ron clark wrote: > I an trying to add virus scanning to the file upload section of our > portal using uvscan. The virus scanning is working properly using a > system call , but I am having problems with formatting the output. I > need to check the return value and i

Re: [PHP] system command

2004-08-23 Thread John Holmes
From: "ron clark" <[EMAIL PROTECTED]> I an trying to add virus scanning to the file upload section of our portal using uvscan. The virus scanning is working properly using a system call , but I am having problems with formatting the output. I need to check the return value and if it is not a 0,

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

2004-08-23 Thread PHP Junkie
Ave, Richard... What exactly did you mean by this? system('rm -rf',$user_dir,$ret_val); I don't understand. On 8/23/04 12:11 PM, "Richard Whitney" <[EMAIL PROTECTED]> wrote: > system('rm -rf',$user_dir,$ret_val); > > On Mon, 23 Aug 2004 11:57:35 -0400, PHP Junkie <[EMAIL PROTECTED]> wrote:

Re: [PHP] readfile()

2004-08-23 Thread Greg Donald
On Mon, 2004-08-23 at 15:35, Aaron Todd wrote: > Not too familure with a chroot'd web setup and I dont know if my ISP has > some security that I dont know about. I tried some tests with file_exists() > and it doesnt seemt to be able to get to the files either. I've put in an > info request to

[PHP] How to add zlib support

2004-08-23 Thread Mauricio Pellegrini
Hi , On March 9th this year I 've compiled and installed php 4.3.4 on SuSe linux Server with apache 1.3. The configure command was this: './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '-enable-dbase' Nowadays I'm urged to install zl

RE: [PHP] Upload script not working

2004-08-23 Thread Lizet Peña de Sola
Thanks, I better check the file type first then... strip_tags on a PDF file is a bad idea. strip_tags() is only meant for text files that may contain HTML tags that you want to remove... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] system command

2004-08-23 Thread ron clark
I an trying to add virus scanning to the file upload section of our portal using uvscan. The virus scanning is working properly using a system call , but I am having problems with formatting the output. I need to check the return value and if it is not a 0, I want to create a custom message. Th

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Jason Wong
On Tuesday 24 August 2004 02:42, Joshua Capy wrote: > Ok next stupid question > > At the command line how to I force the execution of the 4.3.6 apache > version or change the default to it. What one usually does is compile different 'versions' of php using the same config options (if you want the

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

2004-08-23 Thread Jason Wong
On Tuesday 24 August 2004 01:55, PHP Junkie wrote: > I do have the original permission set to CHMOD 777 thus the uploads are > working fine. > > I had presumed that anything uploaded by the server is owned by it thus I > wouldn't have to interfere with the permissions thereafter... But somehow > t

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

2004-08-23 Thread Jason Wong
On Tuesday 24 August 2004 02:32, John Nichel wrote: > Jason Wong wrote > > > phpinfo() is your friend. > > I thought phpinfo() was *MY* friend??? ;) Don't worry it's a one-to-many relationship. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * We

Re: [PHP] Select List PHP,HTML

2004-08-23 Thread Chuck
Thanks a lot, that worked perfectly. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I have been able to create a list with no problem, but now I need to get the value of which item is selected in the list. I looked around, but couldn't find anywhere that would

Re: [PHP] Upload script not working

2004-08-23 Thread John Holmes
From: "Lizet Peña de Sola" <[EMAIL PROTECTED]> Hello Jones, thanks for looking at the code, will try the uploading without stripping the tags, I've tried with pdf files without success. strip_tags on a PDF file is a bad idea. strip_tags() is only meant for text files that may contain HTML tags th

RE: [PHP] Select List PHP,HTML

2004-08-23 Thread Jay Blanchard
[snip] I have been able to create a list with no problem, but now I need to get the value of which item is selected in the list. I looked around, but couldn't find anywhere that would let me do this. Here's my code to build the list. Open($dsn); $rs = $db->Execute("SELECT * from co

[PHP] Select List PHP,HTML

2004-08-23 Thread Chuck
Hello everyone, I have been able to create a list with no problem, but now I need to get the value of which item is selected in the list. I looked around, but couldn't find anywhere that would let me do this. Here's my code to build the list. Open($dsn); $rs = $db->Execute("SELECT

RE: [PHP] Upload script not working

2004-08-23 Thread Lizet Peña de Sola
Hello again, tried to remove the last part and the script worked, it looks like strip_tags strips more than tags... Thanks a lot Lizet -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 3:02 PM To: Lizet Peña de Sola; [EMAIL PROTECTED] Subject: R

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

2004-08-23 Thread PHP Junkie
I guess phpinfo() is *OUR* friend!! Great guy! Although I'd be happier if my files & folders started getting deleted with the script, which still ain't happening. On 8/23/04 2:32 PM, "John Nichel" <[EMAIL PROTECTED]> wrote: > Jason Wong wrote >> phpinfo() is your friend. >> > > I thought phpi

RE: [PHP] Upload script not working

2004-08-23 Thread Lizet Peña de Sola
Hello Jones, thanks for looking at the code, will try the uploading without stripping the tags, I've tried with pdf files without success. Lizet -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 3:02 PM To: Lizet Peña de Sola; [EMAIL PROTECTED]

Re: [PHP] Upload script not working

2004-08-23 Thread John Holmes
From: "Lizet Peña de Sola" <[EMAIL PROTECTED]> I have the following script to upload files to the server, it works partially as only a few bytes of the file are uploaded, is the script wrong or am I missing some setting at the server? Tia, Lizet userfile=$_FILES['userfile']['tmp_name']; // $userf

RE: [PHP] Problem connecting to Postgres

2004-08-23 Thread Jay Blanchard
[snip] At the command line how to I force the execution of the 4.3.6 apache version or change the default to it. [/snip] You need to install the proper CLI version as described http://www.php.net/manual/en/features.commandline.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Upload script not working

2004-08-23 Thread Lizet Peña de Sola
Hi all: I have the following script to upload files to the server, it works partially as only a few bytes of the file are uploaded, is the script wrong or am I missing some setting at the server? Tia, Lizet userfile=$_FILES['userfile']['tmp_name']; // $userfile_name is the original file name wi

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Ok next stupid question At the command line how to I force the execution of the 4.3.6 apache version or change the default to it. On Aug 23, 2004, at 2:39 PM, Jay Blanchard wrote: [snip] Yes I have found that I am running v 4.3.2 on the command line and 4.3.6 under apache Is it possible to run th

RE: [PHP] Problem connecting to Postgres

2004-08-23 Thread Jay Blanchard
[snip] Yes I have found that I am running v 4.3.2 on the command line and 4.3.6 under apache Is it possible to run the same version both on the command line and running on apache? [/snip] Yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Yes I have found that I am running v 4.3.2 on the command line and 4.3.6 under apache Is it possible to run the same version both on the command line and running on apache? On Aug 23, 2004, at 12:23 PM, Michal Migurski wrote: I am a newby having a configuration problem. I am using PHP 4.3.6 an

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

2004-08-23 Thread John Nichel
Jason Wong wrote phpinfo() is your friend. I thought phpinfo() was *MY* friend??? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-08-23 Thread Jason Wong
On Tuesday 24 August 2004 00:34, PHP Junkie wrote: > How do I find out which user/group my web server is running as? > I'm running an Apache Web Server on my Power MAC G5 (Mac OS X) machine. > I can change the user/group permissions... But which user/group does the > web server use? phpinfo() is

Re: [PHP] readfile()

2004-08-23 Thread Greg Donald
On Mon, 2004-08-23 at 13:02, Aaron Todd wrote: > I'm trying to use readfile() to allow a user to download a file that is > outside of my webroot. > > webroot = /var/www/html > downloads dir = /var/www/downloads > > Here is the code that I have been using: > $file = "/var/www/downloads/test.t

[PHP] readfile()

2004-08-23 Thread Aaron Todd
I'm trying to use readfile() to allow a user to download a file that is outside of my webroot. webroot = /var/www/html downloads dir = /var/www/downloads Here is the code that I have been using: $file = "/var/www/downloads/test.txt"; header("Content-Description: File Transfer"); head

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

2004-08-23 Thread PHP Junkie
Ave, I do have the original permission set to CHMOD 777 thus the uploads are working fine. I had presumed that anything uploaded by the server is owned by it thus I wouldn't have to interfere with the permissions thereafter... But somehow that doesn't seem to be working out. I did actually set

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

2004-08-23 Thread Jonathan Haddad
the chmod 666 sets the exisiting files to be edited by the server. anything that's uploaded by the server is owned by it, and thusly can be edited. as a side note, you'd have to chmod 777 the directory to be edited if you want uploads to work. PHP Junkie wrote: Ave, Well here's my situation..

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

2004-08-23 Thread PHP Junkie
Ave, Well here's my situation... You see the File Manager allows users to Upload files ... Once a user uploads the file... It resides in a particular folder on my server. Users will be constantly uploading, downloading, deleting files. I can't possibly CHMOD 777 all the time... My question is...

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
Ave, Yes indeed that's what it's doing. But that's ok... My main concern was for Windows users because that's the majority of the users for this application. Thanks. On 8/23/04 12:50 PM, "Jonathan Haddad" <[EMAIL PROTECTED]> wrote: > In Safari it'll download the file and then open it. > > Jo

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

2004-08-23 Thread John Nichel
PHP Junkie wrote: Ave, How do I find out which user/group my web server is running as? I'm running an Apache Web Server on my Power MAC G5 (Mac OS X) machine. I can change the user/group permissions... But which user/group does the web server use? Default setup? Probably nobody/nobody. Check your

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Jonathan Haddad
In Safari it'll download the file and then open it. Jon PHP Junkie wrote: Ave, IT WORKS!! There wasn't one bit of a problem.. I'll just paste the code here again for anyone who might be looking for it. I guess I was very close to it but just doing one thing wrong... I wasn't specifying the Basena

[PHP] Problems with Mcrypt - encoding works, but decoding hangs

2004-08-23 Thread Marcel Guzman
Hi all, I'm in the process of writing a script that will accept credit cards through a secure html form, and then encrypt them using MCRYPT_RIJNDAEL_256 and store them in my mysql database. When I run the following code snippet, nothing is returned through the server - the connection is estab

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

2004-08-23 Thread Jonathan Haddad
PHP probably does not have permission to change those files. chmod 777 and it should work. However now those files are writable by anyone. If you're on a shared server there could be problems later. Jon PHP Junkie wrote: Ave, I do not really know what the problem is because I don't get an err

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

2004-08-23 Thread Jay Blanchard
[snip] How do I find out which user/group my web server is running as? I'm running an Apache Web Server on my Power MAC G5 (Mac OS X) machine. I can change the user/group permissions... But which user/group does the web server use? [/snip] For security reasons Apache typically runs as "nobody" --

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

2004-08-23 Thread PHP Junkie
Ave, How do I find out which user/group my web server is running as? I'm running an Apache Web Server on my Power MAC G5 (Mac OS X) machine. I can change the user/group permissions... But which user/group does the web server use? Thanks. On 8/23/04 12:08 PM, "John Nichel" <[EMAIL PROTECTED]> wro

Re: [PHP] Text from file into database

2004-08-23 Thread Michal Migurski
> I want to create a script that will read each line of the file and > insert it to database. I am new to php and maybe you could help me You've been posting here for *months*, how new could you be? Look up the file() function. And the docs for your database.

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Michal Migurski
> I am a newby having a configuration problem. I am using PHP 4.3.6 and > postgres 7.4.3 > > The problem is when I try to execute my php scripts that connect to > postgres from the command line I get error like this: > > Fatal error: Call to undefined function: pg_connect() in > /Users/jcapy2/Site

Re: [PHP] Cookie behaviour

2004-08-23 Thread Chris Shiflett
--- Michael Purdy <[EMAIL PROTECTED]> wrote: > > setcookie('cat','large',time()+3600); > setcookie('dog','small',time()+3600); > > > The outcome of this script is that only the LAST cookie is successfully > stored. This seems unlikely. It's possible that neither of these statements is succe

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Thanks On Aug 23, 2004, at 12:04 PM, Jay Blanchard wrote: [snip] Fatal error: Call to undefined function: pg_connect() in /Users/jcapy2/Sites/Jesper/SyncPosgresToMbrMaxData .php on line 28 [/snip] http://www.php.net/manual/en/features.commandline.php -- PHP General Mailing List (http://www.php.net

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

2004-08-23 Thread John Nichel
PHP Junkie wrote: Again, no error... The entries in the table get deleted.. But file remains in the directory. Any suggestions? Neither of these functions return an error. They will return false on failure. Does the user/group which your web server is running as have permission to remove these

RE: [PHP] Problem connecting to Postgres

2004-08-23 Thread Jay Blanchard
[snip] Fatal error: Call to undefined function: pg_connect() in /Users/jcapy2/Sites/Jesper/SyncPosgresToMbrMaxData .php on line 28 [/snip] http://www.php.net/manual/en/features.commandline.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-08-23 Thread PHP Junkie
Ave, I do not really know what the problem is because I don't get an error, and in fact my scripts execute fine... Except that, niether is the directory deleted, nor is the file deleted. Only corresponding database entries are deleted which I specify in my SQL code. There are 2 different function

Re: [PHP] Need Help for Session

2004-08-23 Thread Tom Rogers
Hi, Make sure that http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Hi, I am a newby having a configuration problem. I am using PHP 4.3.6 and postgres 7.4.3 The problem is when I try to execute my php scripts that connect to postgres from the command line I get error like this: Fatal error: Call to undefined function: pg_connect() in /Users/jcapy2/Sites/Jespe

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
Ave, IT WORKS!! There wasn't one bit of a problem.. I'll just paste the code here again for anyone who might be looking for it. I guess I was very close to it but just doing one thing wrong... I wasn't specifying the Basename directive. Although this doesn't work on MAC... It works on Windows

Re: [PHP] Re: Reading the documentation

2004-08-23 Thread Matthew Weier O'Phinney
* Octavian Rasnita <[EMAIL PROTECTED]>: > Well, it seems that PHP libraries don't have the documentation included... > This is too bad, because it is much harder to search in the PHP manual, and > some libraries that might be downloaded from different sites and made by > different programmers won't

RE: [PHP] quick globalisation?

2004-08-23 Thread Jay Blanchard
[snip] Is there a quicker way to globalise something other than: $a = 'foo'; $b = 'bah'; ... $GLOBALS['a'] = $a; $GLOBALS['b'] = $b; ?? I was hoping for something like $a = 'foo'; $b = 'bah'; ... makeGlobal('a','b') /*or*/ makeGlobal($a,$b); [/snip] According to http://us3.php.net/language.var

[PHP] Need Help for Session

2004-08-23 Thread Afzal hussain \( Aslam\)
> Sir, > I am afzal hussain from bangladesh. Acually i am getting some problem using session > in php. This is the sample code that i have written, > > session_start(); > $vbl="This variable is registered"; > session_register('vbl'); > echo $vbl; > ?> > it shows this output. > > > Warning:

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Daniel Schierbeck
Php Junkie wrote: Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on

[PHP] quick globalisation?

2004-08-23 Thread Justin French
Is there a quicker way to globalise something other than: $a = 'foo'; $b = 'bah'; ... $GLOBALS['a'] = $a; $GLOBALS['b'] = $b; ?? I was hoping for something like $a = 'foo'; $b = 'bah'; ... makeGlobal('a','b') /*or*/ makeGlobal($a,$b); --- Justin French http://indent.com.au -- PHP General Mailing Li

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Torsten Roehr
"Php Junkie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ave, > > I'm facing a little problem. > I have created a File Manager Application for my company which has a place > where authorized users can download the stored files. The files are of > various MIME Types.. Mainly PDF, T

[PHP] Re: php4 classes, extending same class

2004-08-23 Thread Matthew Weier O'Phinney
* Mnp <[EMAIL PROTECTED]>: > I have the following classes being inherited: > > User extends School > > I have two classes: > Profile extends User > and > Buddies extends User > > being used in the same .php file. I get a "Fatal error: Cannot > redeclare class school in ..." > > > I can see why this

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread John Nichel
PHP Junkie wrote: Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on the Download

[PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on the Download But

Re: [PHP] Re: Cookie behaviour

2004-08-23 Thread John Holmes
I am running php 5.0.1 on NT. I have a small test script as shown below setcookie('cat','large',time()+3600); setcookie('dog','small',time()+3600); The outcome of this script is that only the LAST cookie is successfully stored.despite having a different name. Is this because they are both

[PHP] Re: Cookie behaviour

2004-08-23 Thread Daniel Schierbeck
Michael Purdy wrote: Folks I am running php 5.0.1 on NT. I have a small test script as shown below setcookie('cat','large',time()+3600); setcookie('dog','small',time()+3600); The outcome of this script is that only the LAST cookie is successfully stored.despite having a different name. I

Re: [PHP] After upgrading PHP, Session Values not stored properly

2004-08-23 Thread Sheni R. Meledath
Hi Andre, Thank you. Yes, the register_globals is set to 'on'. At 05:41 PM 8/23/2004, Andre Dubuc wrote: On your new setup, is register_globals=on by any chance? I ran into the same problem -- once set to off, everything started working properly. Just a thought, Hth Andre On Monday 23 August 2004 0

Re: [PHP] Class Con- and Destructor Inheritance

2004-08-23 Thread Daniel Schierbeck
Curt Zirzow wrote: * Thus wrote Justin Patrin: On Sun, 22 Aug 2004 13:04:11 +0200, Daniel Schierbeck <[EMAIL PROTECTED]> wrote: ... Note: Parent constructors are not called implicitly. In order to run a parent constructor, a call to parent::__construct() is required. Is this a

Re: [PHP] After upgrading PHP, Session Values not stored properly

2004-08-23 Thread Andre Dubuc
On your new setup, is register_globals=on by any chance? I ran into the same problem -- once set to off, everything started working properly. Just a thought, Hth Andre On Monday 23 August 2004 02:45 am, Sheni R. Meledath wrote: > Hi Gerard, > > Many thanks. We are using cookies to store the se

RE: [PHP] Error message

2004-08-23 Thread Thijs Lensselink
define constant with "DB_PORTABILITY_ALL"; Pete wrote: > Hi List, > > I am getting a strange error notice for the following config file: > > /** > * Database > */ > $dsn = array( > 'phptype' => 'mysql', > 'username' => 'root', > 'password' => 'secretpass', > 'hostspec' => 'loca

Re: [PHP] Error message

2004-08-23 Thread Matt M.
> Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed 'DB_PORTABILITY_ALL' > in D:\utf8php5\config.php on line 16 > > What can I do about this? include PEAR::DB before you include this config file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

RE: [PHP] Error message

2004-08-23 Thread Jay Blanchard
[snip] Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed 'DB_PORTABILITY_ALL' in D:\utf8php5\config.php on line 16 What can I do about this? [/snip] http://www.php.net/constant DEFINE the constant DB_PORTABILITY_ALL -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Error message

2004-08-23 Thread Pete
Hi List, I am getting a strange error notice for the following config file: 'mysql', 'username' => 'root', 'password' => 'secretpass', 'hostspec' => 'localhost', 'database' => 'mydb', ); $options = array( 'debug' => 2, 'portability' => DB_PORTABILITY_ALL, ); /**

Re: [PHP] downloading files

2004-08-23 Thread Aaron Todd
I did exactly what you said but its not working for me. I am getting the following error: Warning: filesize(): SAFE MODE Restriction in effect. The script whose uid is 20373 is not allowed to access /var/www owned by uid 0 in /home/virtual/site341/fst/var/www/html/test.php on line 3 I checked

Re: [PHP] Re: Clear HTTP POST value

2004-08-23 Thread John Holmes
From: "Nicklas Bondesson" <[EMAIL PROTECTED]> Didn't work for me (PHP 4.3.9 + Apache 2.0.4). I will try the other method you suggested. Can you define "didn't work" for us? Are you saying that if $_POST['foo'] has a value of bar, that: echo $_POST['foo']; unset($_POST['foo']); echo $_POST['foo'];

RE: [PHP] Re: Clear HTTP POST value

2004-08-23 Thread Nicklas Bondesson
Didn't work for me (PHP 4.3.9 + Apache 2.0.4). I will try the other method you suggested. Nicke -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: den 23 augusti 2004 13:41 To: [EMAIL PROTECTED] Subject: [PHP] Re: Clear HTTP POST value "Nicklas Bondesson" <[EMAIL PRO

[PHP] ... extendet library ...

2004-08-23 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] Re: Clear HTTP POST value

2004-08-23 Thread Torsten Roehr
"Nicklas Bondesson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > Is there a smooth way to clear a posted value on a page? I have tried the > following without sucess. > > unset($_POST["var"]); > unset($HTTP_POST_VARS["var"]); > > Nicke Hi Nicke, unset($_POST['var']) *shou

Re: [PHP] PHP5 Gd Library error compiling

2004-08-23 Thread Martin Visser
Curt Zirzow wrote: * Thus wrote Martin Visser: PHP5, with GD on Linux (Slackware 10.0) ./configure goes just fine, but when I try 'make', there's an error. this is how I configured it: ./configure --prefix=/usr/local/php5 --with-zlib --with-pear=/usr/share/pear --with-mysql=/usr/local/mysql --inc

RE: [PHP] How to get a unique series of numbers?

2004-08-23 Thread Henri Marc
Hello, > I would take each number and place it in an array. > Then for each Thank you very much. It has been really very helpful for me. Vous manquez d’espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Créez votre Yahoo! Mail sur ht

[PHP] Clear HTTP POST value

2004-08-23 Thread Nicklas Bondesson
Hi! Is there a smooth way to clear a posted value on a page? I have tried the following without sucess. unset($_POST["var"]); unset($HTTP_POST_VARS["var"]); Nicke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cookie behaviour

2004-08-23 Thread Michael Purdy
Folks I am running php 5.0.1 on NT. I have a small test script as shown below setcookie('cat','large',time()+3600); setcookie('dog','small',time()+3600); The outcome of this script is that only the LAST cookie is successfully stored.despite having a different name. Is this because the

[PHP] just another question

2004-08-23 Thread aRZed
Arzed wrote: Hy! I have a relative simple question about mysqli_prepare: When I prepare a statement and then bind parameters to it, does php automatically care for escaping strings etc.? Example: prepare("SELECT FROM table WHERE x=?"); $p = "5'" $stmt->bind_param("i",$p); # is "5'" conve

  1   2   >