Re: [PHP] Monitoring download, detecting completion?

2007-03-09 Thread Tijnema !
On 3/9/07, Skip Evans [EMAIL PROTECTED] wrote: Hi Tijnema, To be clear, this can work for the client downloading say a music (mp3) file from the server to their local hard drive? If so, that would be great, but I just want to be clear I spelled out the issue properly. Thanks tons! Skip I'm

Re: [PHP] Passing a class through an array

2007-03-09 Thread Tijnema !
On 3/9/07, Jeff Taylor [EMAIL PROTECTED] wrote: Hey all, I'm very new to programming and PHP. I want to pass instances of a class through an array, and then use a foreach later to grab details of each class at once... but it returns a fatal error Code: $me = new Toon('Toon1','1') $him = new

Re: [PHP] Intro to PHP question

2007-03-09 Thread Tijnema !
On 3/8/07, Ben Ramsey [EMAIL PROTECTED] wrote: On 3/8/07 1:44 PM, Tijnema ! wrote: He wanted to use it for the web, so why should he try it out on CL first? Because there are some advantages to being able to run something quickly through the CLI without having to load it in a web browser. He

Re: [PHP] url fopen() failed to open stream

2007-03-09 Thread Tijnema !
On 3/9/07, Michael Clayfield [EMAIL PROTECTED] wrote: when i open up a url with fopen(), i get this error message:* Warning*: fopen(http://sumurlhere.whatever/index.html) [function.fopen http://127.0.0.1/bots2/function.fopen]: failed to open stream: A connection attempt failed because the

Re: [PHP] PHP Design View

2007-03-09 Thread Tijnema !
On 3/9/07, Chris [EMAIL PROTECTED] wrote: Fred wrote: Hello What program whould i use to see a design view of php scripts not on a server. Im running Windows XP Pro sp2. I thought Dreamweaver did but as i was going to buy a friend told me it cant see design only the script. PHP doesn't have

[PHP] php, oci8 and oracle

2007-03-09 Thread sirakov
Hi, I have a problem with oci8. I installed ORACLE Enterprise with php5 and apache, with this script : ?php phpinfo(); ? I receive information for the set modules. I see that oci8 is enabled however ORACLE_HOME is empty. Additionally, I tried to write a little script which I run as a root. Due

[PHP] name of the variable

2007-03-09 Thread Cefull Lo
Hi everyone, Is there any function that return the name of the variable?? i.e. $foo='abc'; $bar=somefunc($foo); // $bar='foo' here Thanks -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GSC d- s:++ a- C++ UL/B+++$ !P L+++ E--- W+ N o-- K? w++ O? M- V- PS PE++(-) Y+ PGP++@ t 5 X R$ tv-

[PHP] Re: php, oci8 and oracle

2007-03-09 Thread Mikey
sirakov wrote: Hi, I have a problem with oci8. I installed ORACLE Enterprise with php5 and apache, with this script : ?php phpinfo(); ? I receive information for the set modules. I see that oci8 is enabled however ORACLE_HOME is empty. Additionally, I tried to write a little script which I run

Re: [PHP] name of the variable

2007-03-09 Thread Jochem Maas
Cefull Lo wrote: Hi everyone, Is there any function that return the name of the variable?? i.e. $foo='abc'; $bar=somefunc($foo); // $bar='foo' here no - and if you think you need this then there is something very wrong with you code, it's completely backward-assed and you need to rethink

Re: [PHP] name of the variable

2007-03-09 Thread Ólafur Waage
I found this on the zend forums. Hope it helps. function Dump($var) { if (key_exists($var, $GLOBALS)) { echo pre$$var:\n; var_dump($GLOBALS[$var]); echo \n/pre\n; } else echo span class='error'No variables

[PHP] looking for two remote functions

2007-03-09 Thread Riyadh S. Alshaeiq
Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need

Re: [PHP] php, oci8 and oracle

2007-03-09 Thread Miguel J. Jiménez
Hi I use Debian testing with ORACLE INSTANT CLIENT and OCI8 without any problem ... Any how, I think apache run as www-data so if you export the variables as root only root will see them (I think). I think there is a way to export a variable directly within apache configuration files so you do

[PHP] looking for two remote functions

2007-03-09 Thread Riyadh S. Alshaeiq
Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need

Re: [PHP] Re: Classes in PHP5 || Puzzling Problem || Trying to Set $this-$name = $value

2007-03-09 Thread PHP
Hey Stu. Well, isn't that special ;--) Jesus, I kept echoing $this-$foo within the parent class and getting 0, instead of 1. You wrote your reply; I checked the results again, and, voila, it worked -- obviously I must have been missing something and corrected the mistake in my endless trial

[PHP] Re: looking for two remote functions

2007-03-09 Thread Mikey
Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any..

[PHP] Re: looking for two remote functions

2007-03-09 Thread Mikey
Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any..

Re: [PHP] PHP Patch open_basedir for dynamic virtualhost

2007-03-09 Thread DoM
DoM wrote: Hi all, it's a lot of time that i am trying to let Jason Greene open_basedir patch work with apache massive virtualhost. This is direct link to patch when it was developed: http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php This is a FreeBSD port more recent

[PHP] FYI: Scammer alert

2007-03-09 Thread markw
Just FYI: I have a couple web sites and I kept getting this bozo submitting comments with just a bunch of links to porn sites. For a while I didn't notice, but then Google threatened to drop my blog-bits (adsense) account. So, I looked at my logs, and the TCP/IP address is 195.225.176.66 and a

Re: [PHP] FYI: Scammer alert

2007-03-09 Thread Robert Cummings
On Fri, 2007-03-09 at 09:24 -0500, markw@mohawksoft.com wrote: Just FYI: I have a couple web sites and I kept getting this bozo submitting comments with just a bunch of links to porn sites. For a while I didn't notice, but then Google threatened to drop my blog-bits (adsense) account. So,

[PHP] Re: Joke of the day problem

2007-03-09 Thread Mark
Delta Storm wrote: Hi, again me with the silly questions... I need a script that will take data from MySQL database and display one row each day. I have googled, but with no luck. The database retrieving mechanism is of course clear but I really dont know how to do a 24h delay

Re: [PHP] Help with captcha

2007-03-09 Thread Tijnema !
I'm not sure but i think that you need to place your javascript inside the head tags, which you (i guess) output in header.php Tijnema On 3/9/07, Joker7 [EMAIL PROTECTED] wrote: Im trying to use a captcha script from : http://www.boutell.com/newfaq/creating/captcha.html I can get it to work

[PHP] How to verify Folder Existence?

2007-03-09 Thread Helder Lopes
Hi people, how to verify if folder exists in server??

RE: [PHP] How to verify Folder Existence?

2007-03-09 Thread Jay Blanchard
[snip] how to verify if folder exists in server?? [/snip] Do you RTFM at all? http://us2.php.net/manual/en/function.is-dir.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to verify Folder Existence?

2007-03-09 Thread Chris Ditty
I am a little rusty with fopen, but you should be able to do something like if(@fopen($dirName) != true){ note: I am currently in Coldfusion mode, so that line may/may not work as is. On 3/9/07, Helder Lopes [EMAIL PROTECTED] wrote: Hi people, how to verify if folder exists in server??

Re: [PHP] How to verify Folder Existence?

2007-03-09 Thread Németh Zoltán
2007. 03. 9, péntek keltezéssel 16.48-kor Helder Lopes ezt írta: Hi people, how to verify if folder exists in server?? http://hu2.php.net/manual/en/function.is-dir.php greets Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes 20-30 seconds

Re: [PHP] Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Tijnema !
If there are no people willing to, i am, but i don't have a lot of time. I hope it isn't urgent. Tijnema On 3/9/07, Jevos, Peter [EMAIL PROTECTED] wrote: Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul

[PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Mark
Jevos, Peter wrote: Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and

RE: [PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes

Re: [PHP] Hive Dekoder

2007-03-09 Thread Tijnema !
Maybe you want to give an example of what you have, and what it should be after decoding. I have no idea what Hive Logic Enkoder exactly does, but somebody might give you a help on how to decode. Tijnema On 3/9/07, Richard Lynch [EMAIL PROTECTED] wrote: Short Version: Anybody got a good

[PHP] DB_DataContainer

2007-03-09 Thread php trainer
Could someone explain what this does and why it's beneficial? Thanks, Ed -- if (version_compare(phpversion(), '5.0.0', 'ge')) { class DB_DataContainer_Overload { function __call($method,$args) { $retval = null;

[PHP] FW: looking for two remote functions

2007-03-09 Thread Riyadh S. Alshaeiq
Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To:

Re: [PHP] Troubles from the newb again

2007-03-09 Thread Robert Cummings
On Sat, 2007-03-10 at 15:31 +1030, Jeff Taylor wrote: Hey everyone, Newb back again - Im trying to populate my arrays, but getting this error again: Warning: Illegal offset type in This usually means that you are using a non-scalar value as an index. Use var_dump( $array ) to see what's in

Re: [PHP] Troubles from the newb again

2007-03-09 Thread Ryan Fielding
Robert Cummings wrote: On Sat, 2007-03-10 at 15:31 +1030, Jeff Taylor wrote: Hey everyone, Newb back again - Im trying to populate my arrays, but getting this error again: Warning: Illegal offset type in This usually means that you are using a non-scalar value as an index. Use

[PHP] Re: Troubles from the newb again

2007-03-09 Thread Jeff Taylor
Is it possible to just add a value to the existing? here is my current script: foreach ($newarray as $name) { $newarray[$name] = $name-currentInitiative = rand(1,$name-GetInitiative())); } // sort array by ranking (initiative) sort($newarray,SORT_NUMERIC); can I change the

Re: [PHP] Troubles from the newb again

2007-03-09 Thread Jeff Taylor
Yeah I have, but what I dont understand is that the value of $name is an object, and was accepted in the original array as the index: the original array was: $me = new Toon(,xxx,xxx,,xxx,etc,etc,etc) $him = new Toon(xxx,xx,x,etc,etc,etc,etc) $array=array($me,$him) So this

Re: [PHP] Troubles from the newb again

2007-03-09 Thread Robert Cummings
On Sat, 2007-03-10 at 16:39 +1100, Ryan Fielding wrote: Robert Cummings wrote: On Sat, 2007-03-10 at 15:31 +1030, Jeff Taylor wrote: Hey everyone, Newb back again - Im trying to populate my arrays, but getting this error again: Warning: Illegal offset type in This

Re: [PHP] Re: Troubles from the newb again

2007-03-09 Thread Stut
Jeff Taylor wrote: Is it possible to just add a value to the existing? here is my current script: foreach ($newarray as $name) { $newarray[$name] = $name-currentInitiative = rand(1,$name-GetInitiative())); } // sort array by ranking (initiative) sort($newarray,SORT_NUMERIC);