RE: [PHP] newbie question

2003-10-14 Thread Ford, Mike [LSS]
On 13 October 2003 13:49, 'Eugene Lee' wrote: On Mon, Oct 13, 2003 at 10:32:18AM +0100, Ford, Mike [LSS] wrote: On 12 October 2003 23:36, Eugene Lee wrote: The PHP manual is vague in several sections. I wonder how bug reports get submitted for it?

RE: [PHP] newbie question

2003-10-13 Thread Ford, Mike [LSS]
On 12 October 2003 23:36, Eugene Lee wrote: On Mon, Oct 13, 2003 at 03:23:53AM +1000, Wang Feng wrote: 1. An optional padding specifier that says what character will be used for padding the results to the right string size. This may be a space character or a 0 (zero character). The

Re: [PHP] newbie question

2003-10-13 Thread 'Eugene Lee'
On Mon, Oct 13, 2003 at 10:32:18AM +0100, Ford, Mike [LSS] wrote: : : On 12 October 2003 23:36, Eugene Lee wrote: : : The PHP manual is vague in several sections. I wonder how bug : reports get submitted for it? : : http://bugs.php.net/report.php and select Documentation

[PHP] newbie question

2003-10-12 Thread Wang Feng
Greetings, This is the example from the php manual: *** Example 6. sprintf(): formatting currency ?php $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; // echo $money will output 123.1; $formatted = sprintf(%01.2f, $money);// my question

Re: [PHP] newbie question

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 06:09:21PM +1000, Wang Feng wrote: : : This is the example from the php manual: [...] : $formatted = sprintf(%01.2f, $money);// my question comes here : // echo $formatted will output 123.10 [...] : : I don't understand the meaning of the 01 above, which follows

Re: [PHP] newbie question

2003-10-12 Thread Wang Feng
PROTECTED] Sent: Sunday, October 12, 2003 6:49 PM Subject: Re: [PHP] newbie question On Sun, Oct 12, 2003 at 06:09:21PM +1000, Wang Feng wrote: : : This is the example from the php manual: [...] : $formatted = sprintf(%01.2f, $money);// my question comes here : // echo $formatted will output

Re: [PHP] newbie question

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 06:57:35PM +1000, Wang Feng wrote: : : If I get rid of the 0 and tried this: : : $price=.65; : $f_price=sprintf(%1.2f,$price); : : It displays 0.65 in my Mozilla browser correctly. What do you say then? I say, I dunno. :-) It seems to follow C's printf(3) conversion

Re: [PHP] newbie question

2003-10-12 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]): On Sun, Oct 12, 2003 at 06:57:35PM +1000, Wang Feng wrote: : : If I get rid of the 0 and tried this: : : $price=.65; : $f_price=sprintf(%1.2f,$price); : : It displays 0.65 in my Mozilla browser correctly. What do you say then? I say, I

Re: [PHP] newbie question

2003-10-12 Thread Wang Feng
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:01 AM Subject: Re: [PHP] newbie question * Thus wrote Eugene Lee ([EMAIL PROTECTED]): On Sun, Oct 12, 2003 at 06:57:35PM +1000, Wang Feng wrote: : : If I get rid of the 0 and tried this: : : $price=.65

Re: [PHP] newbie question

2003-10-12 Thread Robert Cummings
: Curt Zirzow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:01 AM Subject: Re: [PHP] newbie question * Thus wrote Eugene Lee ([EMAIL PROTECTED]): On Sun, Oct 12, 2003 at 06:57:35PM +1000, Wang Feng wrote: : : If I get rid of the 0 and tried

Re: [PHP] newbie question

2003-10-12 Thread Wang Feng
] To: Wang Feng [EMAIL PROTECTED] Cc: Curt Zirzow [EMAIL PROTECTED]; PHP-General [EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:29 AM Subject: Re: [PHP] newbie question I believe the documentation (in at least on of the ?printf() functions describes how the implementation follows the C specs. I'm

Re: [PHP] newbie question

2003-10-12 Thread Eugene Lee
On Mon, Oct 13, 2003 at 03:23:53AM +1000, Wang Feng wrote: : : 1. An optional padding specifier that says what character will be used for : padding the results to the right string size. This may be a space character : or a 0 (zero character). The default is to pad with spaces. An alternate :

[PHP] php NEWBIE Question

2003-08-25 Thread Dennis Dujan - Partycult.de
Hi, can you tell me how is it possible to connect to a linux shell via PHP? Greetz Dennis

Re: [PHP] php NEWBIE Question

2003-08-25 Thread Curt Zirzow
* Thus wrote Dennis Dujan - Partycult.de ([EMAIL PROTECTED]): Hi, can you tell me how is it possible to connect to a linux shell via PHP? Ok, i suppose I should reply to this before you ask the same question with less details, again. Please be a little more specific in your question, like what

AW: [PHP] php NEWBIE Question

2003-08-25 Thread Dennis Dujan - Partycult.de
-Ursprungliche Nachricht- Von: Curt Zirzow [mailto:[EMAIL PROTECTED] Gesendet: Montag, 25. August 2003 01:22 An: [EMAIL PROTECTED] Betreff: Re: [PHP] php NEWBIE Question * Thus wrote Dennis Dujan - Partycult.de ([EMAIL PROTECTED]): Hi, can you tell me how is it possible to connect

RE: [PHP] php NEWBIE Question

2003-08-25 Thread Dennis Dujan - Partycult.de
Ok thank you very much -Ursprungliche Nachricht- Von: Chris Kay [mailto:[EMAIL PROTECTED] Gesendet: Montag, 25. August 2003 01:37 An: 'Dennis Dujan - Partycult.de' Betreff: RE: [PHP] php NEWBIE Question Try http://au.php.net/manual/en/function.fsockopen.php If your looking

Re: [PHP] Newbie Question

2003-08-22 Thread Phil King
Hi Everyone, Thanks a lot for all your advice, I really appreciate it. PHP / mysql is new to me so excuse my ignorance of the subject.. I will go get phpMyAdmin and give it a whirl. Thanks again. Phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Newbie Question

2003-08-21 Thread Phil King
Hi, I 'm in the process of modify one of my sites to use PHP/mysql instead of ASP/Ms Access. The Access database has 200 records in it. I have PWS, mysql and PHP running on my local PC. I have used Navicat from mysqlstudio.com to import the access database into mysql and then exported the data

RE: [PHP] Newbie Question

2003-08-21 Thread Van Andel, Robbert
-Original Message- From: Phil King [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 7:40 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie Question Hi, I 'm in the process of modify one of my sites to use PHP/mysql instead of ASP/Ms Access. The Access database has 200 records in it. I have

RE: [PHP] Newbie Question

2003-08-21 Thread Dan Van Derveer
PROTECTED] Subject: RE: [PHP] Newbie Question You can download PHPMySQL and locate it in a secure portion of your site. It's an excellent gui interface into mySQL. This tool will allow you to upload the script file and insert the data. I'm sorry, but I don't know the URL where to get it. Check

RE: [PHP] Newbie Question

2003-08-21 Thread Van Andel, Robbert
Sorry, I did mean phpMyAdmin (no such thing as phpMySQL). Brain fart. Won't happen again. Robbert van Andel -Original Message- From: Dan Van Derveer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:25 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Newbie Question

Re: [PHP] Newbie Question

2003-08-21 Thread Phil King
To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Newbie Question On the same note I recommend phpMyAdmin(www.phpmyadmin.net). Its interface is quite useful especially when you have multiple DB's to manage on the same server. Dan -Original Message- From: Van Andel, Robbert [mailto

Re: [PHP] Newbie Question

2003-08-21 Thread Curt Zirzow
* Thus wrote Phil King ([EMAIL PROTECTED]): Hi Robbert, I beleive my ISP does not allow any GUI interface into mysql databases on the server. They have advised me that ALL functions, table creation, modification, loading data etc has to be done from PHP. It appears I have to use SQL

Re: [PHP] Newbie Question

2003-08-21 Thread Robert Cummings
Even if they do know about it, it's functionality conforms to what they said you can do: use SQL statements within a PHP page to load the data *grin*. Cheers, Rob. On Thu, 2003-08-21 at 14:53, Curt Zirzow wrote: * Thus wrote Phil King ([EMAIL PROTECTED]): Hi Robbert, I beleive my ISP

Re: [PHP] Newbie Question

2003-08-21 Thread Bryan Koschmann - GKT
Hi Robbert, I beleive my ISP does not allow any GUI interface into mysql databases on the server. They have advised me that ALL functions, table creation, modification, loading data etc has to be done from PHP. It appears I have to use SQL statements within a PHP page to load the data.

RE: [PHP] Newbie Question

2003-08-21 Thread Van Andel, Robbert
Whether you write the gui interface or someone else does doens't make a difference. Robbert van Andel -Original Message- From: Phil King [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question Hi Robbert, I beleive

[PHP] Newbie Question regarding Syntax

2003-08-17 Thread Creative Solutions New Media
?php echo 'Email: '.'A HREF=mailto:[EMAIL PROTECTED]'.$row_rep_RS['repEmail'].'/A'; ? Obviously this isn't working. What is the proper syntax when you have to use double quotes inside the tag? Thx Tim Winters Manager, Creative Development Sampling Technologies Incorporated (STI) [EMAIL

RE: [PHP] Newbie Question regarding Syntax

2003-08-17 Thread Cesar Aracena
PROTECTED] Enviado el: Domingo, 17 de Agosto de 2003 08:08 p.m. Para: [EMAIL PROTECTED] Asunto: [PHP] Newbie Question regarding Syntax ?php echo 'Email: '.'A HREF=mailto:[EMAIL PROTECTED]'.$row_rep_RS['repEmail'].'/A'; ? Obviously this isn't working. What is the proper syntax when you

Re: [PHP] Newbie Question regarding Syntax

2003-08-17 Thread Curt Zirzow
* Thus wrote Creative Solutions New Media ([EMAIL PROTECTED]): ?php echo 'Email: '.'A HREF=mailto:[EMAIL PROTECTED]'.$row_rep_RS['repEmail'].'/A'; ? Obviously this isn't working. What is the proper syntax when you have to use double quotes inside the tag? I usually prefer this method, its a

RE: [PHP] Newbie Question regarding Syntax

2003-08-17 Thread Creative Solutions New Media
Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: August 17, 2003 8:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question regarding Syntax * Thus wrote Creative Solutions New Media ([EMAIL PROTECTED]): ?php echo 'Email: '.'A HREF=mailto:[EMAIL PROTECTED]'.$row_rep_RS

Re: [PHP] Newbie Question regarding Syntax

2003-08-17 Thread Curt Zirzow
* Thus wrote Creative Solutions New Media ([EMAIL PROTECTED]): Sorry guys.It think there is a bit of confusion. I miss typed what I need to do. ?php echo 'Email: '.'A HREF=mailto:'.$row_rep_RS['repEmail'].''.$row_rep_RS['repEmail'].'/A'; ? You should make sure to quote your html

RE: [PHP] Newbie Question regarding Syntax

2003-08-17 Thread Creative Solutions New Media
PROTECTED] Sent: August 17, 2003 8:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question regarding Syntax * Thus wrote Creative Solutions New Media ([EMAIL PROTECTED]): Sorry guys.It think there is a bit of confusion. I miss typed what I need to do. ?php echo 'Email: '.'A HREF

[PHP] newbie question

2003-06-24 Thread Blake Schroeder
I just setup php on my linux box and have been messing with a tutorial, and have had some issues. The tutorial says any name=value pairs in the querystring automatically creates a variable with the name and value the querystring indicated. This does not seem to be happening. I have installed:

RE: [PHP] newbie question

2003-06-24 Thread Jay Blanchard
[snip] I just setup php on my linux box and have been messing with a tutorial, and have had some issues. The tutorial says any name=value pairs in the querystring automatically creates a variable with the name and value the querystring indicated. This does not seem to be happening. I have

[PHP] Newbie Question

2003-02-25 Thread Greg Luce
Can someone explain why this code works on the hosting company's server, but won't run on my local server? I'm not sure what version is on the host server, but I'm running 4.0.5 locally on winXP Pro. The error says: Fatal error: Cannot redeclare dbfield() in

RE: [PHP] Newbie Question

2003-02-25 Thread Cal Evans
of a kludge. (IMHO, etc.) =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Greg Luce [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie Question Can someone explain

[PHP] Newbie Question

2002-12-02 Thread hacook
Hi all, I have a mySQL database called srchresult in a srchresult base. In it, i have 9 fields. Everything works perfectly. I would like to know how can i list in a HTML table 30 results for example but only with 7 columns (7 fields only) ? I 've tried some scripts but i can't work this out (i'm

RE: [PHP] Newbie Question

2002-12-02 Thread Jon Haworth
Hi Hacook, I have a mySQL database called srchresult in a srchresult base. In it, i have 9 fields. Everything works perfectly. I would like to know how can i list in a HTML table 30 results for example but only with 7 columns (7 fields only) ? Try this: ?php // open the db connection -

[PHP] PHP Newbie question

2002-11-18 Thread Bryan Cassidy
This might sound stupid but what the hell. I am running Red Hat 8.0 with Apache. I have apache working fine right now. I am wanting to learn some php but really don't know where to start/look or anything to tell the truth. I do everything from my FreeBSD 4.6.2 box but Apache runs on Red Hat. With

Re: [PHP] PHP Newbie question

2002-11-18 Thread Stolen
http://www.php.net/manual/en/tutorial.php Bryan Cassidy wrote: This might sound stupid but what the hell. I am running Red Hat 8.0 with Apache. I have apache working fine right now. I am wanting to learn some php but really don't know where to start/look or anything to tell the truth. I do

Re: [PHP] PHP Newbie question

2002-11-18 Thread Maxim Maletsky
Steps: 1. Install PHP. Already installed? 2. make a file accessible via browser and call it test.php 3. put this into it: ? echo Hello Worldbr; phpinfo(); ? 4. Now, access that file. If you see Hello World outputted followed by a long blue-gray

[PHP] newbie question, open file error

2002-10-30 Thread [EMAIL PROTECTED]
hi, i hope im sending this to the correct place. im getting this error (below) when i run a script on my server. Im assuming I need to communicate with my admin about permissions, but im not 100% sure what the permission is. I'm basically trying to create an html file. if anyone can give

Re: [PHP] newbie question, open file error

2002-10-30 Thread Marek Kilimajer
You might be able to solve this yourself, connect using ftp and try chmod o+w directory, where directory is the directory that you want to write to. [EMAIL PROTECTED] wrote: hi, i hope im sending this to the correct place. im getting this error (below) when i run a script on my server. Im

Re: [PHP] newbie question, open file error

2002-10-30 Thread Marek Kilimajer
Give it a try, that's the way I do it. jennifer villany wrote: hi, thanks for your feedback. chmod is greyed out in my ftp client. im using smart ftp. can i make these changes at the command line? thanks again, jennifer Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] newbie question: need a script

2002-10-30 Thread Ikke
hi all, I got a html page, on which I put a form, with quit a lot of questions (all kinds: textboxes, dropdowns, check, radiobuttons, ...). Its for an online survey Im doing. Now Im looking for a php script that puts all the data in a textfile, the moment someone clicks on Submit. It should

[PHP] newbie question

2002-10-03 Thread Remon Redika
I am newbie in php I have var $query_string in my address page. I want get value of query string. For example I give string on my query string like www.mypages.com?var=numberx I just want get a value of var or numberx I usually do this var on asp request.querystring(var) , so I'll get the value

RE: [PHP] newbie question

2002-10-03 Thread M.A.Bond
Message- From: Remon Redika [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 12:24 To: [EMAIL PROTECTED] Subject: [PHP] newbie question I am newbie in php I have var $query_string in my address page. I want get value of query string. For example I give string on my query string like

Re: [PHP] newbie question

2002-10-03 Thread Scott Houseman
This is very simple To access variables from GET form, which you would use request.querystring( ) for in ASP, use the $_GET array in PHP, e.g. $var = $_GET{'var'} To access POST form values, which you would use request.form( ) for in ASP, use the $_POST array in PHP e.g. $var = $_POST{'var'}.

[PHP] newbie question

2002-08-30 Thread Brian Shannon Windsor
How do I get PHP to automatically open another PHP page in a browser if a condition is met? I have a pull down HTML table that submits a form to a PHP script. That script then uses a little logic to figure out which web page to go to. I have 5 different pages, and each has different content.

Re: [PHP] newbie question

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 03:25, Brian Shannon Windsor wrote: Please do not be lazy and choose a proper descriptive text for your subject. Imagine the blandness and confusion and the utter uselessness if everybody used generic subjects such as Help, Quick question, This one is easy, What

Re: [PHP] newbie question

2002-08-30 Thread Kevin Stone
PM Subject: [PHP] newbie question How do I get PHP to automatically open another PHP page in a browser if a condition is met? I have a pull down HTML table that submits a form to a PHP script. That script then uses a little logic to figure out which web page to go to. I have 5 different

RE: [PHP] newbie question

2002-08-30 Thread Daniel Masson
Just do this: Header(Location: $where_you_wanna_go\n\n); And make sure you do this before produce any HTML autput !! Hope this is helpful !! How do I get PHP to automatically open another PHP page in a browser if a condition is met? I have a pull down HTML table that submits a form to a PHP

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-12 Thread Al
I wasn't clear before. The problem I'm having, and most of the others folks who commented, with include is really with include_path. A good bit of the problem seems to be my virtual host's environment. Most things I've tried with directives in an htaccess don't work and the error log says

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-12 Thread Rasmus Lerdorf
As mentioned a couple of times on that include page, you can just use ini_set() directly in your application to set include_path. eg. ? ini_set(include_path,.:..:../..:/usr/local/lib/php); include foo.inc; ? That will run through each directory listed in your include path. That is,

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Al
Appreciate the feedback, but. The .htaccess approach appears to fit my situation best; but, I've not been able to get it to work. I have a folder with a php script and that folder has several sub-folders each with a small configuration script. I'd like the entry point to be a subfolder

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Rasmus Lerdorf
Does your AllowOverride include Indexes? If it doesn't, you can't put DirectoryIndex in a .htaccess. httpd -L is your friend. -Rasmus On Sun, 11 Aug 2002, Al wrote: Appreciate the feedback, but. The .htaccess approach appears to fit my situation best; but, I've not been able to get

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Analysis Solutions
On Sun, Aug 11, 2002 at 12:33:55PM -0400, Al wrote: The .htaccess approach appears to fit my situation best; but, I've not been able to get it to work. I wondered about the DirectoryIndex directive's ability to utilize files in other directories, so did a little test, which is what you

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Al
The problem may be due to the fact that my environment is Apache Unix. I spent about two hours today pouring over the php on-line manual include spec and trying dozens of combinations. http://www.php.net/manual/en/function.include.php There must be at least 20 user contributed notes at the

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Rasmus Lerdorf
What does include have to do with DirectoryIndex? And what exactly is your problem with include? The only trick is setting the include_path which doesn't seem all that obtuse to me. -Rasmus On Sun, 11 Aug 2002, Al wrote: The problem may be due to the fact that my environment is Apache Unix.

[PHP] Newbie question about UNIX command-line directives

2002-08-10 Thread Al
I'm on a virtual host without a shell account and need execute a UNIX command. ln -s ../afile.php index.php Is there some way to do this [e.g., with a htaccess file]? What happens when you execute UNIX commands like the one above? Does it make a file, change the config? Thanks --

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-10 Thread Analysis Solutions
On Sat, Aug 10, 2002 at 01:12:38PM -0400, Al wrote: I'm on a virtual host without a shell account and need execute a UNIX command. ln -s ../afile.php index.php In a PHP script, you can do this -- if permissions are favorable: exec('ln -s ../afile.php index.php'); Is there some way

[PHP] Newbie question about SQL result formatting

2002-08-09 Thread Kristoffer Strom
Ok, this is totally newbie but I just started messing around with PHP after programming IBM's NetData for a while. My first big problem I haven't been able to solve myself is how to format the result of an SQL query into HTML code. In the (MySQL) database, I have one field for very long texts.

Re: [PHP] Newbie question about SQL result formatting

2002-08-09 Thread Analysis Solutions
On Fri, Aug 09, 2002 at 10:55:52PM +0200, Kristoffer Strom wrote: How do I convert the result to HTML code, I especially want the linebreaks!! Two options. Put the output in between pre tags. Or if you want the regular font, in PHP use the nl2br() function. --Dan PS: For future

[PHP] Newbie Question on Efficiency

2002-07-16 Thread Michael Kennedy
Hello everyone, I'm a newbie and have a question on style that I've not seen addressed anywhere. I have a large number of frequently used functions that I'm trying to find a good way to organize. The method I'm thinking of using is to simply create a .php file called, for example,

Re: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Martin Clifford
Unless the file is getting retartedly big (10-20K), then I wouldn't separate them. Though if you have enough functions, you could justify making separate files for your database functions, output functions, backend functions, etc. Martin Clifford Homepage: http://www.completesource.net

RE: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Michael Kennedy
, 2002 4:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question on Efficiency Unless the file is getting retartedly big (10-20K), then I wouldn't separate them. Though if you have enough functions, you could justify making separate files for your database

Re: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Monty
If you have have a large number of functions, it might be better to separate them into a few files that you can include as needed. I use one file that contains functions needed by every page. I have a few other files that contain functions that aren't needed by every page, so, I include them only

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Michael Kennedy
. Michael -Original Message- From: Monty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 5:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question on Efficiency If you have have a large number of functions, it might be better to separate them into a few files that you can

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread John Holmes
... -Original Message- From: Michael Kennedy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 7:26 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Newbie Question on Efficiency : Follow-up Question OK, if I understand C++ correctly, if I write a program and #include iostream.h

Re: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Analysis Solutions
On Tue, Jul 16, 2002 at 06:25:42PM -0500, Michael Kennedy wrote: OK, if I understand C++ correctly, if I write a program and #include iostream.h or something similar and compile the program it only compiles with the used functions in it, right? So, if I never use 'cin' it leaves that

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Michael Kennedy
. Thanks. Michael -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 8:05 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Newbie Question on Efficiency : Follow-up Question PHP loads everything up before it starts doing anything

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Martin Towell
-Original Message- From: Michael Kennedy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:36 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Newbie Question on Efficiency : Follow-up Question Yeah, that's what I figured. With C++ you could find evidence that it only grabbed

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Michael Kennedy
: [PHP] Newbie Question on Efficiency : Follow-up Question The only reason a compiled language would not include a function/module/etc is to reduce the size of the final executable. Since php doesn't store (barring the caching engines, but they work differently anyway) a compiled version

[PHP] Newbie question

2002-07-13 Thread Jay
I have just started to teach myself php so I am reading through several scripts to see how the language is spoken. I came across the following at phpworld.com $i = 1; while ($i = 10) { print $i++ Its a little script that counts from 1 to 10, but what does $i++ mean. What does the ++ do?

RE: [PHP] Newbie question

2002-07-13 Thread Cal Evans
++ is an incrementor. $i=1; $i++; echo $i; =C= p.s. -- is a decrementor. * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Jay [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 8:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie question

Re: [PHP] Newbie question

2002-07-13 Thread Alberto Serra
ðÒÉ×ÅÔ! Cal Evans wrote: ++ is an incrementor. He may also consider the position of the inc/decrementor. Example (note that the first element of an array has index 0): $a = Array(1,2,3,4,5); $i = 1; executing echo $a[++$i] will output 3 2 echo $a[$i++] will output 2 2 In both cases $i

Re: [PHP] newbie: question about question marks

2002-07-09 Thread Alexander Ross
How bout the question marks in the following line of php generated html: input type = hidden name = parent value = ?=$parent;? what do they mean? Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sun, 7 Jul 2002, Alexander Ross wrote: Can

Re: [PHP] newbie: question about question marks

2002-07-09 Thread Martin Clifford
In that case, the question marks are part of the PHP opening and closing tags. There are several ways to open and close sections of PHP script, mainly being ?php ?, ? ?, and % %. What the below equals is ?php echo $parent; ?, since ?= is the equivalent of saying echo or print the following.

[PHP] newbie: question about question marks

2002-07-07 Thread Alexander Ross
Can someone explain to me what the ? does. I have a vague idea of what it means in a URL (please cearify that) but I haven't the slightest what it means in php code. Thanks for your help Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] newbie: question about question marks

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Alexander Ross wrote: Can someone explain to me what the ? does. I have a vague idea of what it means in a URL (please cearify that) but I haven't the slightest what it means in php code. Thanks for your help Read about the ternary operator at:

[PHP] newbie question - retaining values

2002-06-13 Thread Leston Drake
Hi, I've been creating forms that use hidden inputs to retain variables and values from one instance of the form to the next (by calling itself in the FORM ACTION). Are there other ways to retain *global* variables and values between instances of loading a page? I apologize for the newbie

Re: [PHP] newbie question - retaining values

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Leston Drake wrote: I've been creating forms that use hidden inputs to retain variables and values from one instance of the form to the next (by calling itself in the FORM ACTION). Are there other ways to retain *global* variables and values between instances of

[PHP] Newbie Question - InstallShield PHP Installation with PWS

2002-06-02 Thread Jesse Segovia
Here's a newbie question. I installed the Windows CGI InstallShield version of PHP to use with the MS Personal Web Server I already have working perfectly on my system. On restarting my PC and trying a very simple php script, I get the error at the bottom of this email. Unfortunately there

[PHP] Newbie question : PHP variables are not posted by this

2002-05-31 Thread Frédérick St-Hilaire
It a BASIC question, With the following: FORM NAME='Job_Application' ACTION=job_action.php METHOD=post ENCTYPE=multipart/form-data INPUT TYPE=text NAME=name Name : BR INPUT TYPE=HIDDEN NAME=MAX_FILE_SIZE VALUE=20 INPUT TYPE=FILE NAME=userfileBRBR INPUT TYPE=submit

[PHP] php newbie question

2002-05-31 Thread Taylor Lewick
I am having a hard time getting apache to load the php4 module. Can I still use PHP for my web stuff...? Thanks Taylor Lewick Unix System Administrator Fortis Benefits 816 881 6073 Help Wanted. Seeking Telepath... You Know where to apply.

Re: [PHP] Newbie question about PHP and Oracle

2002-05-28 Thread DrouetL
: Subject: [PHP] Newbie question about PHP and Oracle 28/05/02 00:08

[PHP] Newbie question about PHP and Oracle

2002-05-27 Thread Michael Sweeney
a VERY newbie question, just how do I get data into a listbox? In mysql it was pretty easy with mysql_fetch_row, but for oracle I am totally lost. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie question to everybody....PHP

2002-05-11 Thread r
Greetings people, Special greetings to all of you who have helped me in the past. As most of you know i am a newbie, I learned a bit of PHP via webmonkey and a few other places, seeing the power of PHP i decided to convert from Java servlets and JSP (JSP coz its expensive to host and not many

Re: [PHP] Newbie question to everybody....PHP

2002-05-11 Thread Neil Highley
: [PHP] Newbie question to everybodyPHP Greetings people, Special greetings to all of you who have helped me in the past. As most of you know i am a newbie, I learned a bit of PHP via webmonkey and a few other places, seeing the power of PHP i decided to convert from Java servlets and JSP

Re: [PHP] Newbie question to everybody....PHP

2002-05-11 Thread Bogdan Stancescu
Hi! 1. I believe every serious programmer out there uses arrays on a regular basis... 1.1. ...exactly because there are so many problems virtually unsolvable without them. Take for instance the case of a product page where people would fill in ordering quantitites. My recommendation would be

RE: [PHP] Newbie question to everybody....PHP

2002-05-11 Thread Matthew Walker
PROTECTED] Subject: [PHP] Newbie question to everybodyPHP Greetings people, Special greetings to all of you who have helped me in the past. As most of you know i am a newbie, I learned a bit of PHP via webmonkey and a few other places, seeing the power of PHP i decided to convert from Java

RE: [PHP] Newbie question to everybody....PHP

2002-05-11 Thread John Holmes
1)How many of you have seriously dug into arrays and has it been important in your programming? 1.1)Do you think you could have done the same thing you did with arrays WITHOUT arrays? (The reason i ask this is theres a whole chapter dedicated to arrays in the book its pretty frustrating)

Re: [PHP] Newbie question to everybody....PHP

2002-05-11 Thread Olexandr Vynnychenko
Hello r, Sunday, May 12, 2002, 4:25:37 AM, you wrote: r Greetings people, r Special greetings to all of you who have helped me in the past. r As most of you know i am a newbie, I learned a bit of PHP via webmonkey and r a few other places, seeing the power of PHP i decided to convert from Java

[PHP] Newbie Question

2002-04-15 Thread Hubert DAUL
I've got a small pb i'm looking to send parameters from a php window to another. I'll try to explain : On the browser i have a page in which i select the first button which has a link in the form of products.php?tosend = 1 but in the second pagein where I try to trap the value of tosend to

[PHP] newbie question: templates with frames

2002-04-15 Thread Alexander Javier
Hello to all. Please help me in this problem of mine. I have an html template with a frame. I'm using phplib's templating functions to replace values in the templates. How do i also replace values both in the main template (frleft.htm) and in the html page contained in the frame? My code

Re: [PHP] Newbie Question

2002-04-15 Thread Janet Valade
On the browser i have a page in which i select the first button which has a link in the form of products.php?tosend = 1 but in the second pagein where I try to trap the value of tosend to include a file, i don't get anything. I assume you mean that you can see the value in the URL, but when

Re: [PHP] Newbie Question

2002-04-15 Thread Chris Hewitt
Hubert, It may just be the way you typed it in the email but your products.php?tosend = 1 has spaces in it. This will truncate the tosend parameter and give it a null value. HTH Regards Chris Janet Valade wrote: On the browser i have a page in which i select the first button which has a

Re: [PHP] newbie question: templates with frames

2002-04-15 Thread Richard Archer
At 3:02 AM -0700 15/4/02, Alexander Javier wrote: Hello to all. Please help me in this problem of mine. I have an html template with a frame. I'm using phplib's templating functions to replace values in the templates. How do i also replace values both in the main template (frleft.htm) and in

[PHP] Newbie Question

2002-04-08 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] Newbie Question

2002-04-08 Thread Miguel Cruz
$fp = fopen($filename, 'r'); while ($l = fgets($fp, 1000)) { list ($parts, $vignette, $marque, $nom, $pdfproduit, $commprod) = explode (';', $l); // now use the data print p$parts/p; // or whatever } fclose ($fp); On Mon, 8 Apr 2002, Hubert DAUL wrote: Hi , Here's my problem :

<    1   2   3   4   5   6   >