Re: [PHP] PHP Execution Timer

2002-09-19 Thread WEB MASTER
Easy, Put a code to the beginning of the page that takes the unix time stamp, and another one to the end. The difference is the execution time at the server side... -=[ Julien Bonastre ]=- wrote: I have seen it on many sites now and since I have been using PHP for so long and done a huge

Re: [PHP] string division

2002-09-19 Thread WEB MASTER
||string *strtok*| (string arg1, string arg2); | Meltem Demirkus wrote: which function divides astring to the pieces accorrding to another string. for example according to a comma .. thanks... meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Generating thumbnails of JPEG/GIF images

2001-05-04 Thread Web master
I wrote a small function like the following to create my won thumbnails. function make_tumb_nail($url){ $size=GetImageSize(image/$url); $ht=$size[1]; $wd=$size[0]; if($ht$wd){ $h=$ht; for($i=1.01;;){ if($h121){ break; } $h=$ht/$i; $w=$wd/$i; $i=$i+0.01; } }

[PHP] very basic question, needs direction!

2001-05-03 Thread Web master
Hello, I am using PHP as my main language in my websites. I am planning to set up my own server to host all my domains. Is there a place, where I can see, how do I set up a server with PHP as the main language and what are the hardware/software requirements for this? All I need is just a url

Re: [PHP] Paging a Recordset

2001-03-15 Thread Web master
you can use 'limit x,y' in MySql. James Crowley wrote: Hi, I want to spread the results of a recordset over a number of pages. In ASP, I would have opened a connection with a client-side cursor... but with PHP (using it's ODBC functions), it only seems to be able to execute an SQL

Re: [PHP] Help! Can't redeclare already declared function in

2001-03-15 Thread Web master
I thought it will say, which function it can not redeclare. How many functions you have in the file? If it is small number, you could comment out each function and see which one is casuing the problem. Jack Sasportas wrote: I just finished coding everything on a project it was working (all

Re: [PHP] Stripping Single Quotes

2001-03-15 Thread Web master
use the following code $vals=explode("'", "'abc'"); $your_value=$vals[0]; //I am little confused, if it is not working try index1 Elan wrote: Hi, I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I strip the embedded single quotes) with a minimum of overhead? (In case

[PHP] Direction Help!

2001-02-27 Thread Web master
Hello Php Gurus, Need help on direction. I am using PHP for a while now, I was able to develop very nice sites using PHP/MySql. Now I very comfortable in using PHP and I want to learn more advanced features of PHP. Can anyone tell me go from here?? I have used PHP for tradtional query based

Re: [PHP] @ Scope

2001-02-14 Thread Web master
My understanding is, it simple supress the any messages generated from the result. So I guess it is local. Karl J. Stubsjoen wrote: When you @ "at" a command (supress error messaging) within a function, is the scope of the @ within the function? Example: CloseODBC(1); # is error

Re: [PHP] Qoute problem

2001-02-14 Thread Web master
My approach towards this problem was to parse the data before inserting and before displaying. Before inserting the data entered by user, do something like str_replace($comments, "'","~") and do the same thing for " do a different character like | and then insert it into database. Do the

Re: [PHP] mysql +php+ array

2001-02-12 Thread Web master
Hi Ramiro, Your code looks ok, why don't you try the following and tell me is working or not $arr_aantal = explode (",", $aantal); $arr_str_men = explode (",", $str_men); $arr_recht = explode (",", $recht); $arr_rechtverstek = explode (",", $rechtverstek); $arr_verstekgelijk = explode (",",

Re: [PHP] BIG include file !!!

2001-01-10 Thread Web Master
I don't think so, I have bunch of include files, which have more than 5000 lines and is running very fine. Abe wrote: Hey Guys, I am developing an application in PHP. I make use of an include file that contains regularly used functions. As I am working I am taking more and more of the