wrote:
dont mean to be padantic, but 5.7 is not an integer :p
lol
-Original Message-
From: graeme <[EMAIL PROTECTED]>
To: Louis Young <[EMAIL PROTECTED]>
Date: Mon, 17 Jan 2005 13:47:49 +0600
Subject: Re: [PHP-WIN] Newbie question: convert string to int
If you are holding a s
On Mon, 17 Jan 2005, Louis Young wrote:
> What's the function to convert a string to an int.
echo (int) "123abc";
-Rasmus
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are holding a string with a valid number in it e.g. "5.7" then
the conversion is done automatically. See the manual section Language
Reference / Types / Strings / String conversion to numbers. If you are
holding a string with the number in words e.g. "Five" then you'll need
to write your
Hi there
What's the function to convert a string to an int.
Cheers
Louis
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of your PHP code can help us help you.
Good luck!
-TG
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Newbie Question: PHP/Appache/WINXP/MySQl
>
>
&g
Does the PHP script have to be already running to communicate send a HTTP Post
varibale to it (from a DHTML client browser)? Or can it initiate the HTTP Post fron
the client that activates the PHP script?
I know this must seems simple but I'm having troble receiving these varible from my
clien
Hi,
i m using php version 4.3.2
i want to try on the image function.
i tested with the documentation sample.. but it din work
pls teach me how to do it??. thanx!!
e-
From: Elvin Certeza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 1:52 PM
To: php
Subject: [PHP-WIN] newbie question (forms)
I have just recently installed apache and php into my system (win98).
The system test is ok(showing php pages)
Now for the question...
I've create
EMAIL PROTECTED]
Subject: Re: [PHP-WIN] newbie question (forms)
Its just a warning. It tells you that you are using a variable which has no
value. Just ignore the notice, or turn down error reporting to exclude
notices.
All it means is that the variable of $test which you have included in your
scrip
December 12, 2002 1:52 PM
To: php
Subject: [PHP-WIN] newbie question (forms)
I have just recently installed apache and php into my system (win98).
The system test is ok(showing php pages)
Now for the question...
I've created a form.. (rather cut and paste a form). This form works onlin
*** This is a quote from a mail I posted earlier. it seems a lot of people
ask the same question :-) ***
- Original Message -
From: "Elvin Certeza" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 9:52 PM
Subject: [PHP-WIN] new
I have just recently installed apache and php into my system (win98).
The system test is ok(showing php pages)
Now for the question...
I've created a form.. (rather cut and paste a form). This form works online
I have tested it myself.. but locally it gives me an error..
When my php page lo
l Message-
From: Kit Kerbel [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 6:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Newbie Question
Why do you have to use backslashes in a file path? (i.e. c:\\upload)
Also, is there any way to avoid doing this, or is i
Why do you have to use backslashes in a file path? (i.e. c:\\upload)
Also, is there any way to avoid doing this, or is it just the php way.
Kit
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
PHP Wind
Thanks for your help, but i've found what was wrong, it was in the code, but
in the data file
I wrote the picture name with first letter uppercase and unix server doesn(t
like it
Thanks again
Hubert
Lyon, France
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
At 03:31 PM 4/8/2002 +0200, Alberto. Sartori wrote:
>You should do the cicle and get the datas until you reach the end of file
>aka feof($fp) or better, try to use fread()
Yup, good point. Here's the modified code.. not using fread() though. For
non-binary data I think this should work ok tho
You should do the cicle and get the datas until you reach the end of file aka
feof($fp) or better, try to use fread()
-Messaggio originale-
Da: Mike Flynn [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 8 aprile 2002 15.30
A: Hubert DAUL; [EMAIL PROTECTED]
Oggetto: Re: [PHP-WIN] Newbie
Give this a shot...
");
print("$vignette");
print("");
print("$marque");
print("$nom");
print("$pdfproduit");
print("$commprod");
print("");
}
?>
At 08:54 AM 4/8/2002 +0200, Hubert DAUL wrote:
>Hi ,
>
>Here's my problem :
>
>I read a data file (no sql file)
Hi ,
Here's my problem :
I read a data file (no sql file) which contains 8 lines, and in each line, 8
datas
(ex: name1;picture1;title1;anything1;everything1;nothing1)
and when i run it I see only one picture(the second data) and not all of
them
If someone could help me
TYA
Here the code :
NT the particular user, with rights over the database.
>
> Then, let him/her do with it as they please.
>
> > -Original Message-
> > From: Jack Cazes [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 04, 2002 10:53 AM
> > To: [EMAIL PROTECTED]
> >
[EMAIL PROTECTED]]
> Sent: Friday, January 04, 2002 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Newbie Question: Creating database
>
>
> I have windows 2000 server with PHP 4.1.0 and Mysql. I'm not
> quite sure how
> PHP interelates with Mysql. Does PHP access
I have windows 2000 server with PHP 4.1.0 and Mysql. I'm not quite sure how
PHP interelates with Mysql. Does PHP access Mysql directly? Or does it via
the Windows ODBC.
The reason why I am asking is because I have a user who wants a database
created and wants to know the credentials to access the
I'm new to PHP and am trying this script to see if a cookie has been set on
my server. It has a fifteen minute expiration time.
I'm using MS Windows 98 / Apache
Before I load the browser, I have designated to have the prompt box ask
whether to accept cookies or not to see if, in fact, the cooki
Hello,
This is my first post to this mailing list, so I hope this is
clear enough...
What are the consequences of turning off 'magic_quotes_gpc'
(ignore quotes)in the php.ini file to avoid / marks in my comment
form, vs. inserting the line 'stripslashes($var);' in the page itself?
Is this
thanks for the speedy reply
your not wrong about phpinfo
ill go tinker with it now :)
- Original Message -
From: Tomasz Abramowicz <[EMAIL PROTECTED]>
To: Dane Carlsson <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 4:53 AM
Subject: Re: [PHP-WI
> Hi,
>
> Is there a function to get the current path?
make a file with
in it. You will get all the variables you can dream of includeing
$DOCUMENT_ROOT and $PHP_SELF which you might find
interesting.
> I haven't be able to locate one in a quick browse over the documentation.
if you know mor
Hi,
Is there a function to get the current path?
I haven't be able to locate one in a quick browse over the documentation.
Also are there php irc channels ?
TIA
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
It is slower. Maybe not REEAALLY slower if you don't have much
traffic, but when it comes to kicks, you're losing quite some
performance. I would suggest that you have a look at some of the DB
abstraction layer classes available un phpclasses.upperdesign.com or
at www.hotscripts.com; they could co
Hi,
I'm doing my first steps in PHP and I have my first simple question:
We use MySQL in our website and I saw that PHP has special functions for
MySQL.
Now, I'm starting a big project and I don't want it to be MySQL-dependant,
so I would like to access MySQL via MyODBC.
Is this ok?
Is there a
t; Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie question...
>
> don't like being picky, but you may be thinking of MySQL where
> % is the multiple character wildcard (eg select 'David!' LIKE '%D%v%';)
> _ is the single character wildcard (e
don't like being picky, but you may be thinking of MySQL where
% is the multiple character wildcard (eg select 'David!' LIKE '%D%v%';)
_ is the single character wildcard (eg select 'David' LIKE 'Davi_';
Tom
Ben Cairns wrote:
> The wildcard in PHP is a %
>
> E.G.
> select * from YOUR_TABLE where
The wildcard in PHP is a %
E.G.
select * from YOUR_TABLE where SOME_FIELD like '%$dan%'";
Hope this helps
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNO
Hi,
I'm having problems getting a query to work, it's a fairly simple select
query, with wildcards.
This is the query as designed in MS Access 97's query designer:
SELECT Contacts.ForeName FROM Contacts WHERE (((Contacts.ForeName) Like
"*dan*"));
This selects 7 names from our database when run
33 matches
Mail list logo