Re: [PHP-WIN] Newbie question: convert string to int

2005-01-17 Thread graeme
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

Re: [PHP-WIN] Newbie question: convert string to int

2005-01-17 Thread Rasmus Lerdorf
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

Re: [PHP-WIN] Newbie question: convert string to int

2005-01-16 Thread graeme
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

[PHP-WIN] Newbie question: convert string to int

2005-01-16 Thread Louis Young
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

RE: [PHP-WIN] Newbie Question: PHP/Appache/WINXP/MySQl

2004-08-27 Thread Gryffyn, Trevor
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

[PHP-WIN] Newbie Question: PHP/Appache/WINXP/MySQl

2004-08-27 Thread Bestman4unowwa
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

[PHP-WIN] newbie question: using image function with php

2003-09-25 Thread Exiang
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!!

Re: [PHP-WIN] newbie question (forms)

2002-12-14 Thread Luis Ferro
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

RE: [PHP-WIN] newbie question (forms)-thank you

2002-12-13 Thread Elvin Certeza
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

RE: [PHP-WIN] newbie question (forms)

2002-12-12 Thread Dash McElroy
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

Re: [PHP-WIN] newbie question (forms)

2002-12-12 Thread Stephen Edmonds
*** 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

[PHP-WIN] newbie question (forms)

2002-12-12 Thread Elvin Certeza
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

RE: [PHP-WIN] Newbie Question

2002-07-22 Thread Vail, Warren
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

[PHP-WIN] Newbie Question

2002-07-22 Thread Kit Kerbel
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

Re: [PHP-WIN] Newbie Question

2002-04-08 Thread Hubert DAUL
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://

Re: [PHP-WIN] Newbie Question

2002-04-08 Thread Mike Flynn
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

[PHP-WIN] R: [PHP-WIN] Newbie Question

2002-04-08 Thread Alberto. Sartori
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

Re: [PHP-WIN] Newbie Question

2002-04-08 Thread Mike Flynn
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)

[PHP-WIN] Newbie Question

2002-04-07 Thread Hubert DAUL
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 :

Re: [PHP-WIN] Newbie Question: Creating database

2002-01-04 Thread Jack Cazes
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] > >

RE: [PHP-WIN] Newbie Question: Creating database

2002-01-04 Thread Carl Campbell
[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

[PHP-WIN] Newbie Question: Creating database

2002-01-04 Thread Jack Cazes
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

[PHP-WIN] Newbie Question: Using Cookies...

2002-01-03 Thread Anthony Ritter
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

[PHP-WIN] newbie question: stripslashes vs. changing the php.ini file

2001-07-18 Thread Matt Cahill
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

Re: [PHP-WIN] Newbie question - Getting the path ?

2001-04-30 Thread Dane Carlsson
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

Re: [PHP-WIN] Newbie question - Getting the path ?

2001-04-30 Thread Tomasz Abramowicz
> 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

[PHP-WIN] Newbie question - Getting the path ?

2001-04-30 Thread Dane Carlsson
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

Re: [PHP-WIN] Newbie question

2001-02-27 Thread Gonzalo Vera
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

[PHP-WIN] Newbie question

2001-02-27 Thread Ernesto
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

RE: [PHP-WIN] Newbie question...

2001-02-23 Thread Mayo, Bill
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

Re: [PHP-WIN] Newbie question...

2001-02-23 Thread Tom Mathews
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

RE: [PHP-WIN] Newbie question...

2001-02-23 Thread Ben Cairns
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

[PHP-WIN] Newbie question...

2001-02-23 Thread Daniel Furse
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