Re: [PHP] Code contents of a function

2003-01-02 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 09:17 am, Shawn McKenzie wrote: > I have a script with some functions and within the script I want to read > the code from one of the functions into a string. you'd probably have to fopen/fgets or file, and then parse for the function start and end and read the contents.

[PHP] parse error

2003-01-02 Thread Ezequiel Sapoznik
Hi! I am receiving a parse error in the following code. The file is located at http://www.historiadelpais.com.ar/ppal_bio.php Anyone can help me? Thanks! Ezequiel Biografias "); print ""; echo(""); echo(""); echo(""); echo(""); echo(""); echo(""); echo(""); echo("

Re: [PHP] parse error

2003-01-02 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 10:27 am, Ezequiel Sapoznik wrote: > echo(" width="274" height="43">"); you have embedded double quotes inside a string delimited by double quotes. use single quotes to delimit the string (since nothing inside is a variable). or escape your internal double quotes with

Re: [PHP] parse error

2003-01-02 Thread Michael J. Pawlowsky
You need to esape your quotes in the HTML as in echo(""); should be echo(""); Mike *** REPLY SEPARATOR *** On 02/01/2003 at 11:27 PM Ezequiel Sapoznik wrote: >Hi! >I am receiving a parse error in the following code. The file is located at >http://www.historiadelpais.

[PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
if there a command, or a way I can put say a 5 second, or a 10 second pause which will make it so it will output x amount of html, and then continue? or if I can pause it will it not display any of the html until the entire script has ran? -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] parse error

2003-01-02 Thread Dan Goodes
Or, another option is to use single-quotes in the HTML: echo(""); That way you can include variables in there if you see fit (since the string itself is still double-quoted), and you don't have to worry about escpaing the double-quotes. -Dan On Thu, 2 Jan 2003, Michael J. Pawlowsky wrote: >

[PHP] 2 servers for mail implementation

2003-01-02 Thread Roger Thomas
dear all, i have 2 servers that were *given* to me to setup and implement webmail solution for our client. i have done some groundwork in terms of the backend applications that are needed to do this. what i wanted to know is, how best can i distribute the backend applications between those 2 serve

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky
I'm not sure I totally understand... but... to pause... sleep(10); i.e. 10 second pause Everything stops... not just output you can buffer everything and only output it when you want look at ob_start But a warning... your server or the clients might change the expexted behaviour. Mik

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Andrew Brampton
I beleive you can use output buffering to stop anything from being displayed until the very last moment. Or you can code your page with tables. I know IE wont' render a table until the last (I beleive), so this could stop your html from showing. Or if there is going to be a long pause, you could

[PHP] help with form adding to database!!

2003-01-02 Thread Karl James
Hey guys, I cant figure out what’s wrong with this code. Im sure its syntax can some one take a look at it and Help me out What im trying to do is create a form for sign up. So that the values will be added to the table in the databse.. For log in purposes. Thanks Karl Here is the code.

[PHP] Re: PHP memory usage

2003-01-02 Thread Fernando Serboncini
I don't know if I'm talking bullshit, but don't forget that each parameter or return valeu in php, if not explicited as a pointer, it's a copy of the full parameter. This way, any function a(myclass c) { return c; } would create another copy of "c" in memory. Things get a bit larger when you

RE: [PHP] way to insert timer / pause?

2003-01-02 Thread SED
Sure, just read the following: http://www.php.net/manual/en/function.sleep.php As a reply for your second question, you can always assign the output to a variable and echo the variable in the end of the script. Regards, Sumarlidi E. Dadason SED - Graphic Design

Re: [PHP] Sessions & Security

2003-01-02 Thread Duncan
Ah, thanks a lot. I will add my 2 cents in there then :) Regards, Duncan Justin French wrote: Hi, There's actually another thread on this topic at the moment... quick summary: 1. you can't rely on the IP address 2. you can't rely on the referrer It's been suggested on the list that you cou

[PHP] email/time question

2003-01-02 Thread Randy Johnson
Here is what i need to do. I have a form where a user will submit, email address, email text and a time like 11:15pm and at 11:15pm the email is supposed to be sent out. any ideas on how i can make this happen automatically??? Randy -- PHP General Mailing List (http://www.php.net/) To

[PHP] BreadCrumb Class

2003-01-02 Thread Michael J. Pawlowsky
I was wondering if anyone had a good BreadCrumb class. If not I will write my own, but thought surely there must be many out there. But quick searches only brought up "Poof" which is more than I want. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] parse error

2003-01-02 Thread John Nichel
You have numerous errors in that code. Your DB connection line is messed up, the username and password either need to be a quoted string, a variable representing that string, or a constant. Your database selection needs to be quoted. You need to escape out the double quotes that you want to

Re: [PHP] PHP memory usage

2003-01-02 Thread James H. Thompson
> On Friday 03 January 2003 05:54 am, James H. Thompson wrote: > > We have a good size PHP libary -- about 370KB of source code. > > Its one class with a multitude of small functions in it. > > that's a huge class. is it feasible to split it into smaller classes that > do smaller things? Its sp

Re: [PHP] email/time question

2003-01-02 Thread John Nichel
Running Linux / UNIX? man crontab Make a php script for command line use. Randy Johnson wrote: Here is what i need to do. I have a form where a user will submit, email address, email text and a time like 11:15pm and at 11:15pm the email is supposed to be sent out. any ideas on how i can

Re[2]: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Tom Rogers
Hi, Friday, January 3, 2003, 10:33:39 AM, you wrote: MJP> Just to add to that... what it is doing is reading it as a 0. 0,0,0,09,30,1998 =>> 883458000 MJP> Tue, 30 Dec 1997 00:00:00 -0500 0,0,0,0,30,1998 =>> 883458000 MJP> Tue, 30 Dec 1997 00:00:00 -0500 MJP> Did you see this in the manual?

Re: [PHP] email/time question

2003-01-02 Thread Michael J. Pawlowsky
Well a few ways you can do it... how precise does it need to be? You can have PHP write the mails to files with the time to be sent in then or in the filename; like somerandomstring.200301021545 Run a script from cron that would look at the files, parse the time and if it's time to send them ju

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thanks Sed "Sed" <[EMAIL PROTECTED]> wrote in message 014d01c2b2d7$86935330$fe78a8c0@mamma">news:014d01c2b2d7$86935330$fe78a8c0@mamma... Sure, just read the following: http://www.php.net/manual/en/function.sleep.php As a reply for your second question, you can always assign the output to a varia

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thanks for the reply Mike... Jeff "Michael J. Pawlowsky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm not sure I totally understand... but... > > to pause... sleep(10); i.e. 10 second pause Everything stops... not just output > > you can buffer every

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
Andrew, my application is of customer service tries to recharge the balance on a pin, and it is over their charge limit (the customer service personnel) then I was thinking I would display a header for a few seconds telling them the recharge failed, and why. however, I think I will just out it in

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky
Thank god the tag in HTML was removed. Don't know how long you've been working on sites, but I started at the same time the first NSCA Mosaic browser came out. About 10 years now. They had back then, and everyone starting using it just about everywhere! Imagine trying to read complete pages

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thats a good idea Mike... thanks for the suggestion. "Michael J. Pawlowsky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Thank god the tag in HTML was removed. > Don't know how long you've been working on sites, > but I started at the same time the fir

[PHP] Mass-mailing method

2003-01-02 Thread Cesar Aracena
Hi all, I did a registration page for a customer, and now I'm trying to develop a way for him to send an e-mail once in a while to the people registered with him. I did something (shown below) and everything seems to be ok, but the e-mail never reaches... Can someone find the problem or maybe poin

Re: [PHP] Mass-mailing method

2003-01-02 Thread Michael J. Pawlowsky
Take a look at the sendmail.log for some clues... But I had something weird were it worked fine for me at home Linux 8 PHP 4.2.2 and when I sent it up to the prod server I had to change the ."\r\n"; to ."\n"; Which technically is wrong. Go figure! But take a look at the sendmail log to begin wi

[PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Adam French
I'm just starting out, this is my script... " .$feildvalue. ""; } echo""; } ?> This is the error I get... Parse error: parse error, unexpected ':' in C:\Xitami\webpages\php\result1.php on line 12 I dunno what I'm doing wrong. Help please??? -- PHP General Mailing List (http://www.php.ne

RE: [PHP] Mass-mailing method

2003-01-02 Thread Cesar Aracena
I'm going to try changing that. I don't have access to my client's server as I work remotely, so I can't view any logs... or can I? If anyone else have something for me to try, start shooting... Thanks, Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén (8300) Capital

[PHP] Re: DUMB QUESTION I'M SURE

2003-01-02 Thread Fernando Serboncini
on the line that starts with $query = there's an extra ." the line should be: $query = "SELECT shops.name FROM shops WHERE name = ".$name; []s Fernando "Adam French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm just starting out, this is my script... >

Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Tom Rogers
Hi, Friday, January 3, 2003, 4:18:05 PM, you wrote: AF> I'm just starting out, this is my script... AF> $name = $_POST['username']; AF> $name = $name; AF> $db = mysql_connect("localhost"); AF> mysql_select_db("vinyldealers",$db); AF> $query = "SELECT shops.name FROM shops WHERE name = ".$name.";

RE: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Cesar Aracena
Try by adding a backslash to the : there (..."\: "...) Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén (8300) Capital Argentina -Mensaje original- De: Adam French [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 03 de enero de 2003 3:18 Para: [EMAIL PROTECT

RE: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Cesar Aracena
What they mean is to make that line: $query = "SELECT shops.name FROM shops WHERE name = $name"; Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén (8300) Capital Argentina -Mensaje original- De: Adam French [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 03

Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Jason k Larson
I think it's just the $query var not having the right number of quotes. I added single quotes around the value. $name = $_POST['username']; $name = $name; $db = mysql_connect("localhost"); mysql_select_db("vinyldealers",$db); $query = "SELECT shops.name FROM shops WHERE name = '".$name."'"; $re

RE: [PHP] Mass-mailing method

2003-01-02 Thread Michael J. Pawlowsky
I have the same problem with one of my clients. I use this... Just keep it well protected... you can cat, ls, find etc. no ps for some reason Might also depend on server security settings. But worth a shot. -- STart Here

RE: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread rw
Quoting Cesar Aracena <[EMAIL PROTECTED]>: ### Try by adding a backslash to the : there (..."\: "...) ### ### Cesar L. Aracena ### [EMAIL PROTECTED] ### [EMAIL PROTECTED] ### (0299) 156-356688 ### Neuquén (8300) Capital ### Argentina ### ### ### -Mensaje original- ### De: Adam French [m

[PHP] Re: Timeout during SMTP operation.

2003-01-02 Thread Manuel Lemos
Hello, On 01/02/2003 06:02 PM, Gilrain wrote: I've just finished a PHP/MySQL mailing list. Basically, I'm having problems with my sendmail function. It takes an array of e-mail addresses ($addresses) and loops through it, e-mailing each one using an SMTP class I found (the only identifying commen

[PHP] returning data from a function in a class

2003-01-02 Thread Ken Nagorski
Hi there, I am totally new at classes and oop... I have never done any object oriented stuff before so I don't know if my question is a php one, a browser issue or an oop one but here goes. I am writing a class that deals with members for a site (I know there are examples on the web, I have used

[PHP] Re: 2 servers for mail implementation

2003-01-02 Thread Manuel Lemos
Hello, On 01/03/2003 01:11 AM, Roger Thomas wrote: dear all, i have 2 servers that were *given* to me to setup and implement webmail solution for our client. i have done some groundwork in terms of the backend applications that are needed to do this. what i wanted to know is, how best can i dist

[PHP] Re: Mass-mailing method

2003-01-02 Thread Manuel Lemos
Hello, On 01/03/2003 04:08 AM, Cesar Aracena wrote: I did a registration page for a customer, and now I'm trying to develop a way for him to send an e-mail once in a while to the people registered with him. I did something (shown below) and everything seems to be ok, but the e-mail never reaches.

Re: [PHP] PHP Testing

2003-01-02 Thread Rick Widmer
At 05:25 PM 1/2/03 -0800, Jim Lucas wrote: DocumentRoot /some/path/public_html php_admin_value engine On try php_admin_value php_engine on|off Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can it be doen with Array????

2003-01-02 Thread Jason Wong
On Friday 03 January 2003 06:15, Scott Fletcher wrote: > Thanks! I looked it up on the php.net and I wasn't sure if I understood > it, so I post it here instead. Thanks for hte response. It begs the question -- why didn't you just try out the code you posted? It surely would've been much quicke

<    1   2