||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: http:/
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 am
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($h<121){
break;
}
$h=$ht/$i;
$w=$wd/$i;
$i=$i+0.01;
}
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 o
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
If you declare the fields as NOT NULL in mysql table, during insert, if
you are nor insertint the field, it will default to 0 (for numbers) and
'blank' (for text fields). If you already have a table update column to
0 or blank and do 'alter table' to make the field not null
Johnson, Kirk wrote
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
>
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
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 ap
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 revers
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
I am doing the same with the following code
$rec1=@mysql_fetch_object($result);
$image=$rec1->iurl;
$alt=$rec->mnam;
$array=GetImageSize("image/$image");
echo "";
and it works a charm.
Malouin Design Graphique wrote:
> Hello,
>
> My problem is that I have in the table below an URL (see $in
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 (",", $ve
I think you can do all of these using the session.
In your log on script, after validating his uid and pwd, insert a row
with current timestamp and his id.
Either during log off or session close insert another row with uid and
current time stamp. (This part I never done)
Rest is to manipulate th
Thank you and sorry for this stupid mistake
Hsieh, Wen-Yang wrote:
> - Original Message -
> From: "Web master" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 11, 2001 2:36 PM
> Subject: [PHP] Whats wrong with the following c
Hello,
Could any tell me whats wrong with the following code? Even though I
have more than 10 tables in the database, it is not showing any numbers.
$id_link = @mysql_connect('localhost',$uid,$pwd);
$result=@mysql_db_query($db,$id_link,"show tables");
$num_of_rows=@mysql_num_rows($result);
ech
better use 'root' user or create a user with enough privilage to create
database
Jesus Nava wrote:
> Hi everybody!!!
> I want to create a new database using a form to take the name of the database. For
>some reason I get "Couldn't create database". Can some body tell me what I am doing
>wrong.
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 th
you have generate a unique seed to generate random number srand, please read
http://www.php.net/manual/function.rand.php
has more info
Brandon Orther wrote:
> When I use random rand(1, 10) I always get 2?
>
> Thank you,
>
>
> Brandon Orther
> WebInt
try
http://www.php.net/manual/function.rand.php
Brandon Orther wrote:
> How can I get a random number
>
> Thank you,
>
>
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
>
20 matches
Mail list logo