RE: [PHP] Want to send email in html format

2001-04-23 Thread Peter Houchin
have something like mail("$address", "$subject", "$body", "$headers \nContent-Type: text/HTML; charset=iso-8859-1\nContent-Transfer-Encoding: 64bit" )in your mail mail( -Original Message- From: George Alexander [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 4:37 P

Re: [PHP] how do I do this

2001-04-23 Thread Philip Olson
I missed this thread but check out : http://zend.com/zend/tut/drop-down.php regards, philip On Tue, 24 Apr 2001, Adrian D'Costa wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Mon, 23 Apr 2001, Andreas Landmark wrote: > > > > country the corresponding cities should only be

[PHP] Want to send email in html format

2001-04-23 Thread George Alexander
Hi, I am working on a newsletter module. What I want to know is that how can we send a newsletter via email to all the subscribers in html format with images in the htm too??? Well I am able to send an html file as attachment using the php mail() function. But I still can't see the images in th

Re: [PHP] how do I do this

2001-04-23 Thread Adrian D'Costa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 23 Apr 2001, Andreas Landmark wrote: > > country the corresponding cities should only be listed in the second > > dropdown box. Can some one guide me. Right below is my table > > structure. > > If you want to do this with pure php you'll

Re: [PHP] BASIC function question

2001-04-23 Thread Philip Olson
Looks like you have a scope issue : $a = 'foo'; function bar() { $a = 'bar'; } bar(); print $a; // prints foo outside of the function, $a has not been affected. want it to be? then try something like : $a = 'foo'; function bar() { global $a; $a = 'bar'; } bar();

Re: [PHP] Looping through variables

2001-04-23 Thread Dan Lowe
Previously, Ashley M. Kirchner said: > > I have a bunch of variables (through a POST form) that I need to > loop through and check for content. Right now, each one is being > evaluated separately: > > if ($var1 == '') { > $url .= "&var1="; > $error = 1; > } else { > $url .=

Re: [PHP] Using

2001-04-23 Thread David Robley
On Tue, 24 Apr 2001 14:12, Martin Cameron wrote: > Hi Rene > > I think that I first used a submit button about html ver 2.0. I want to > use a button type - not submit. > > regards > Martin > > Rene Maldonado wrote: > > Hi I think it woulf be better this way: > > > > print " > name = 'hell

Re: [PHP] Using

2001-04-23 Thread Martin Cameron
Hi Rene I think that I first used a submit button about html ver 2.0. I want to use a button type - not submit. regards Martin Rene Maldonado wrote: > Hi I think it woulf be better this way: > > print " name = 'hello'>"; > print ""; > print ""; > > > and, the var name i

Re: [PHP] Why is it dangerous to have register_globals on?

2001-04-23 Thread Rasmus Lerdorf
> Actually it's not "dangerous" per se. > > However if can be very dangerous if you aren't being careful in your code, > for instance, consider this. > > Let's say I've conditionally set $sql somewhere else in the code based upon > certain conditions, which works fine. But let's say those conditio

Re: [PHP] PHP and useradd

2001-04-23 Thread Steve Werby
"Nashirak Bosk" <[EMAIL PROTECTED]> wrote: > Ok. I have looked at all my options for creating account dynamically > from a webpage, and have not come up with much. I want to create an > user account that only creates a mail account. I think I can do this > with the useradd command (I am running

Re: [PHP] BASIC function question

2001-04-23 Thread David Robley
On Tue, 24 Apr 2001 12:57, Martin Skjöldebrand wrote: > I have a function on an include page that says > > function update_stuff($database) > { > include("includes/connect.inc.php"); > include("config/db.conf.php"); > $query="SELECT * FROM $database"; > $query_res=mysql_query($query, $mysql_link);

Re: [PHP] Sensitive Information (like CC)

2001-04-23 Thread Aaron D. Turner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Have the email be a "you've got an order" email that has a URL in it which the then can view the order via SSL. That way you don't have to put all the information in the email. PGP is another option, but I find it beyond the abilities of many winbl

Re: [PHP] is_link() behavior

2001-04-23 Thread J. Jones
On Tue, Apr 24, 2001 at 05:31:04AM +0200, Martin Skjöldebrand wrote: > > Warning: stat failed for /tmp/this_is_a_symlink (errno=2 - No such file or > > directory) in ./test.php on line 3. > > Do you have permission to read the /tmp catalog? Otherwise you may get that > error I suppose. > > M.

RE: [PHP] Sensitive Information (like CC)

2001-04-23 Thread Jason Murray
> What's the best (secure?) way of transmitting sensitive > information over email? I'm helping some friends build an online > order form. They have a Thawte certificate and are already using > it for the order form, but they would like the information to be > emailed to them when an order i

Re: [PHP] is_link() behavior

2001-04-23 Thread Martin Skjöldebrand
J. Jones wrote: > Forgive me for my ignorance, but I've noticed some unwanted behavior (IMO, > at least) with the is_link() function. Given the simple code.. > > if ( is_link ("/tmp/this_is_a_symlink") ) > print ("Success\n"); > > and the file.. > lrwxrwxrwx 1 root root 5 Apr 23 21:19 /tmp/thi

Re: [PHP] file_exists with remote file???

2001-04-23 Thread J. Jones
On Tue, Apr 24, 2001 at 12:20:01AM -0300, Paulo - Bruc Internet wrote: > Can anyone help me? > > The sintax of function file_exists is: > > if(file_exists("t.txt")) > { > print... > } > > Does anybody knows how can work with remote files? > This is not working: > if(file_exists("http://www.

[PHP] BASIC function question

2001-04-23 Thread Martin Skjöldebrand
I have a function on an include page that says function update_stuff($database) { include("includes/connect.inc.php"); include("config/db.conf.php"); $query="SELECT * FROM $database"; $query_res=mysql_query($query, $mysql_link); $isequip=mysql_num_rows($query_res); } If I call it from a script a

[PHP] file_exists with remote file???

2001-04-23 Thread Paulo - Bruc Internet
Can anyone help me? The sintax of function file_exists is: if(file_exists("t.txt")) { print... } Does anybody knows how can work with remote files? This is not working: if(file_exists("http://www.ttt.com/t.txt";)) { print... } Thanks for any help, Paulo Roberto Ens - Brazil Bruc S

[PHP] Sensitive Information (like CC)

2001-04-23 Thread Ashley M. Kirchner
What's the best (secure?) way of transmitting sensitive information over email? I'm helping some friends build an online order form. They have a Thawte certificate and are already using it for the order form, but they would like the information to be emailed to them when an order is placed.

RE: [PHP] date add more 7 days, help needed.

2001-04-23 Thread Maxim Maletsky
hehe ... here I am again: mySQL? if yes then do date+INTERVAL 8 DAYS. PHP? then convert everything into UNIX timestamp with mktime() and do a plus of (60*60*24 for each day) and then reconvert it back into the time format you want. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBegi

[PHP] is_link() behavior

2001-04-23 Thread J. Jones
Forgive me for my ignorance, but I've noticed some unwanted behavior (IMO, at least) with the is_link() function. Given the simple code.. if ( is_link ("/tmp/this_is_a_symlink") ) print ("Success\n"); and the file.. lrwxrwxrwx 1 root root 5 Apr 23 21:19 /tmp/thi

RE: [PHP] Now, why doesn't this work? (this thread can die off now)

2001-04-23 Thread Tyler Longren
Yup...it was the table. I have 2 sets of variables on my config.inc file. One is for my local servers, the others are for remote servers (the host). I didn't have $mysql_shows_table defined in the remote servers section. Sorry about that everyone. This thread can die now. Tyler > -Original

[PHP] date add more 7 days, help needed.

2001-04-23 Thread Jacky
Hi all I have variable that store date like this : $First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb 1,2001) . I wanna do the loop 8 times that will add 7 more days to the begining date and keep adding it for 8 times. The looping thing is okay but I am not sure if I simply p

Re: [PHP] function in if statement not executed ?-->> Help

2001-04-23 Thread PHPhyperboy
actually yes, the r is "register" the l is "login" and r to y is "yes" r to d is "done" if that makes sense? :) the actual problem is coming from a missing { or an } I just actually found a misplaced "}" other then that Im still at a loss - Original Message - From: "Jason Murray" <[EMA

Re: [PHP] Now, why doesn't this work?

2001-04-23 Thread David Robley
On Tue, 24 Apr 2001 11:50, Tyler Longren wrote: > Hello everybody, > > My host seems to be having some weird problems. > Here's a piece of code: > > if (($this_month_sql = mysql_query("SELECT * FROM $mysql_shows_table > WHERE month = '$thismonth' ORDER BY timestamp ASC")) && > ($next_month_sql = m

RE: [PHP] function in if statement not executed ?-->> Help

2001-04-23 Thread Jason Murray
> if($l=="d") { > log_user(); > } else if($r=="d") { > add_user(); > } else { > $r ="y"; > } looks like: 1. $l is not set to "d". 2. $r is not set to "d". $r may be set to "y" by this code. Did you check it? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

RE: [PHP] Now, why doesn't this work (update)?

2001-04-23 Thread Tyler Longren
Also, I ran this SQL on the regular mysql client, and it returned the correct data...for some reason if I run it in PHP, I get the SQL syntax error. Tyler > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 23, 2001 9:20 PM > To: PHP-General > Subj

RE: [PHP] Now, why doesn't this work?

2001-04-23 Thread Jason Murray
> Any ideas? Yes - get it to output the actual SQL that's running. That way you can execute it yourself, and see what's going wrong. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] date plus 7 more days

2001-04-23 Thread David Robley
On Tue, 24 Apr 2001 23:44, Jacky wrote: > Hi all > I have variable that store date like this : > $First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb > 1,2001) . I wanna do the loop 8 times that will add 7 more days to the > begining date and keep adding it for 8 times. The loopi

[PHP] function in if statement not executed ?-->> Help

2001-04-23 Thread PHPhyperboy
hey guys, I have this simple if else statement going and depending on a var it executes a funtion, but for some reason its not running the function or so I think... heres code snippet : - TIA Andy _

[PHP] Now, why doesn't this work?

2001-04-23 Thread Tyler Longren
Hello everybody, My host seems to be having some weird problems. Here's a piece of code: if (($this_month_sql = mysql_query("SELECT * FROM $mysql_shows_table WHERE month = '$thismonth' ORDER BY timestamp ASC")) && ($next_month_sql = mysql_query("SELECT * FROM $mysql_shows_table WHERE month = '$n

[PHP] date plus 7 more days

2001-04-23 Thread Jacky
Hi all I have variable that store date like this : $First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb 1,2001) . I wanna do the loop 8 times that will add 7 more days to the begining date and keep adding it for 8 times. The looping thing is okay but I am not sure if I simply p

Re: [PHP] PHP and useradd

2001-04-23 Thread Plutarck
One way is to use a cron job to handle the account adding from a text file, which PHP will write the data into. Since the cron job will use only the account name and password the user submitted it's much less of a security risk. -- Plutarck Should be working on something... ...but forgot what i

Re: [PHP] Question on installation

2001-04-23 Thread Nashirak Bosk
Well if you are using Linux you could try looking for a .o file or I think they have RPMs for some of these that just have a .o file in them and then configure php for you. Basically what you are looking for is a php_$whatever_module. Like I downloaded php_imap_mod.rpm and php_mysql_mod.rpm I

Re: [PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread CC Zona
In article <9c2j66$1nt$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > If you are trying to match a $ in your code, just use a backspace to escape > it. Or enclose it in square braces. [$] Or use preg_quote(). -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] PHP and useradd

2001-04-23 Thread Nashirak Bosk
Ok. I have looked at all my options for creating account dynamically from a webpage, and have not come up with much. I want to create an user account that only creates a mail account. I think I can do this with the useradd command (I am running Linux). Like this: useradd accountname -s /b

[PHP] gif and jpeg support

2001-04-23 Thread Dan Phoenix
Downloaded the latest snapshot so postgres would work. ALl is fine except i cannot get gif and jpeg to work at same time. http://www.ranman.huggle.com/gd_plus_gif.txt i followed those instructions when i tried at first to build stable. and yes i did compile jpeg etc into gd. my configure line i

RE: [PHP] trouble reading a database (fwd)

2001-04-23 Thread johndmiller
Thanks for the pointer about ' vs ". I have changed my code to used these. The code is a lot cleaner. I am still getting a not found error. Below is the new "cleaner" messages that I display. One point that may be important, FLD_Name and FLD_Path are the primary key. Couple of questions, can

Re: Re[3]: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread Joe Brown
IMHO, an ideal default is the path up to php.exe with a conf/php.ini This would be a good default for unix/windows both, and maintain some resembelence consistency with Apache if not anything else. Then I could throw php.ini in the apache conf dir and php.exe would find it there, w/o me having t

Re: [PHP] newbie migration issues

2001-04-23 Thread Plutarck
Check out the FAQ on php.net to see about migration issues. They have a section in there...or is it in the manual...well it's in one of those somewhere. First, what security issues are you having? If code is being displayed to the browser it's because the extension is probably not correctly figur

[PHP-CVS] cvs: php4 /sapi/caudium caudium.c

2001-04-23 Thread David Hedbor
neotron Mon Apr 23 18:08:35 2001 EDT Modified files: /php4/sapi/caudium caudium.c Log: Disable use of th_farm since it doesn't seem to work. Uses a Pike layer thread farm now instead. Index: php4/sapi/caudium/caudium.c diff -u php4/sapi/caudium/caudium.c:1.1

Re: [PHP] newbie migration issues

2001-04-23 Thread Jack Dempsey
S.J. Basic syntax that you would be using in things like counters, statistics, date and time functions hasn't changed much at all...I don't have personal experience with php3, but i know that the developers of php4 have tried hard to make php4 very compatible with php3...i'm sure you'll get an e-

Re: [PHP] Printing

2001-04-23 Thread Plutarck
Any data can be sent to the viewer's browser using print or echo in PHP. >From then on you'll need javascript to do any conditional displaying once it hits the user's browser. -- Plutarck Should be working on something... ...but forgot what it was. "Dmitry" <[EMAIL PROTECTED]> wrote in message

[PHP] Re: Method Not Allowed

2001-04-23 Thread Steve Maroney
I just deleted a post that I wanted to reply to. Try reading the FAQ on apache.org Click here or go here -> http://httpd.apache.org/docs/misc/FAQ.html#POSTnotallowed Hope this helps, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] newbie migration issues

2001-04-23 Thread S.J. Black
Hi, all - Hoping someone can help me with this..I have a client who has a webiste with a number of php3 scripts in it, and we're having a spate of problems relating to migration to php4. 1) I need to know what needs to be done to convert php3 scripts to be compatible with php4. These are scr

Re: [PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread Plutarck
Try switing the modifier to "e". "E" is not a supported modifier according to the manual. Only the following are supported: i m s x e A D S U X If you are trying to match a $ in your code, just use a backspace to escape it. But I don't think that was your problem... -- Plutarck Should be worki

Re: [PHP] web page grab

2001-04-23 Thread Plutarck
The eregi_replace syntax would be: $string = eregi_replace(".*Wish(.+)numbers", "\\1", $page); It should be noted that I prefer preg_replace, but that's neither here nor there. That _should_ work. It looks fine to me, but test it out to make sure. -- Plutarck Should be working on something...

[PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread Grant Walters
Hi, I'm having problems stopping preg_replace from losing $ signs and following text when replacing with array variables. I am trying to use the E modifier and keep getting: "Warning: Unknown modifier 'E' in script.WEB.php3 on line 413" $template=array( "/({PAGETOP})/E", "/({PAGEMIDDLE})/

Re: [PHP] logging in (online?!)

2001-04-23 Thread Plutarck
> Write to MySQL (last logged in) ? Best, fastest, least error causing way. Yes. -- Plutarck Should be working on something... ...but forgot what it was. ""FredrikAT"" <[EMAIL PROTECTED]> wrote in message 9c19n1$li2$[EMAIL PROTECTED]">news:9c19n1$li2$[EMAIL PROTECTED]... > Hi! > > I have user

Re: [PHP] Having trouble executing unzip from PHP script

2001-04-23 Thread David Robley
On Tue, 24 Apr 2001 09:51, Dexter wrote: > Hi PHP ers, > > Cant unzip a file from a PHP script. It does nothing. > > It works on the command line. Added paths to both the zip file and > unzip program nothing happens > > exec("/usr/bin/unzip $IMAGE_TEMP_DIR/phpxXTN3T "); > > Thanks > > Dexter Wha

Re: [PHP] ereg_replace: Help!

2001-04-23 Thread Plutarck
This works: $str = ''; echo eregi_replace("", "Replaced", $str); -- Plutarck Should be working on something... ...but forgot what it was. "Erica Douglass" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have one ereg_replace problem that I cannot seem t

[PHP] ereg_replace: Help!

2001-04-23 Thread Erica Douglass
I have one ereg_replace problem that I cannot seem to fix. I need to delete an IMG tag. The only thing I know about this tag is that it will contain SRC="images/headers in the string. Here is an example: I tried this, but it didn't work: $contents = ereg_replace ("", "", $contents); Can s

RE: [PHP] Using

2001-04-23 Thread Jason Murray
> One question though. Why does your have a name > attribute at all? Probably so it can be addressed through JavaScript. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list a

Re: [PHP] How to turn off warnings ???

2001-04-23 Thread Plutarck
And just thought I'd add in that you should _almost_ never allow a warning to be sent in your script as it's just begging for something to go wrong without you knowing why. And for your reading enjoyment (if you call reading about errors enjoyable...which I of course, do): http://www.php.net/man

Re: [PHP] Using

2001-04-23 Thread Plutarck
In addition, it's worth of note that whenever something has a name attribute it that will show up as a variable in your script. More or less. One question though. Why does your have a name attribute at all? And naming it the same as a variable, for whatever reason, isn't a good idea if for no ot

RE: [PHP] trouble reading a database (fwd)

2001-04-23 Thread Jason Murray
> Read_sql SELECT * FROM TBL_Picture WHERE FLD_FileName = > "SailBoat.jpg"and FLD_Path =" /var/www/html/slidecollection/WinterCarnival" This is a little hideous. For one thing, you should probably use ' and not ". It may not make a difference to MySQL, but it does to other databases you may us

[PHP] trouble reading a database (fwd)

2001-04-23 Thread johndmiller
I have posted the following message a couple of times on the php-db list and have not gotten a response. I am hoping someone here is willing to help. Thank you John Below is the output and code for my problem. When the database gets read, it returns 0 rows. When it writes, it says it can't b

Re: [PHP] PHP 4.0.5

2001-04-23 Thread Plutarck
Or it could be RC8 that will be the last one :) Then again, that's why it's called an RC (Release Candidate...or something similar). Nice to know that when you get a new version it's been hammered to death to squish all the latent bugs. Unlike some people...*cough* -- Plutarck Should be workin

Re: [PHP]PHP script and new window.

2001-04-23 Thread Plutarck
First of all, I believe since you are using javascript on your button you shouldn't use type="submit". Change it to type="button", which means it will have no effect for browsers that don't have javascript enabled when clicked. That could be an error, for one. But then again, it might not. It mig

Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Plutarck
The best way is to use an email list manager. I remember someone suggesting one, but I've totally forgotten it now. Personally the way I would do it is take the first list and load all the email addys into the Bcc field. Or break them up into small chunks of less than 50 at a time, since trying t

Re: [PHP] Calculating the difference between two dates

2001-04-23 Thread Plutarck
Try mkdate. You'll have to make sure it's in a format it knows, but it works. -- Plutarck Should be working on something... ...but forgot what it was. ""Stuart Rees"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Please can someone tell me there is a nice

Re: [PHP] How to find the object name in a class?

2001-04-23 Thread Plutarck
*sigh* I'm thinking so too ;( Doh! However, I have at least a usable hack around. In the constructor of your class, add: function Class ($object_name) { global $pge; $pge = $object_name; } Then when you use create a new object of that type you must use: $objectname = new Class('objectname')

[PHP-CVS] cvs: php4 /build build2.mk

2001-04-23 Thread Zeev Suraski
zeevMon Apr 23 16:50:56 2001 EDT Modified files: /php4/build build2.mk Log: Remove unnecessary tab (was killing Tru64 make) Index: php4/build/build2.mk diff -u php4/build/build2.mk:1.18 php4/build/build2.mk:1.19 --- php4/build/build2.mk:1.18 Tue Mar 6

Re: [PHP] How to find the object...(clarification)

2001-04-23 Thread Plutarck
Before anyone get's confused I thought I should note that $this won't work because I need the name of the object for use _outside_ of the class itself too. For instance I have a group of about 30 functions in a seperate file which directly modify $front_page. $front_page will now be inside of an

[PHP] Calculating the difference between two dates

2001-04-23 Thread Stuart Rees
Please can someone tell me there is a nice function that can calculate the difference between two dates. If there isn't such a function I'm sure someone could tell me how I can do a different way. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [PHP] Posting to a form

2001-04-23 Thread Jack Dempsey
it looks like you left off the quotes around the value that you're echoing...try putting it in like this -jack Wade wrote: > > I'm trying to do the following > > > echo strtoupper($Aname); > ?> > > But when Aname is multiple words, such as "Wade Williams", everything from > the whitespac

Re: [PHP] Posting to a form

2001-04-23 Thread Philip Olson
value="foo bar" as opposed to value=foo bar regards, philip On Mon, 23 Apr 2001, Wade wrote: > I'm trying to do the following > > > echo strtoupper($Aname); > ?> > > But when Aname is multiple words, such as "Wade Williams", everything from > the whitespace on gets cut off. > > Any ide

Re: Re[3]: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread Zeev Suraski
I think environment variables aren't any better than registry entries under Windows. It's not as if it's easier to configure environment variables than it is to run regedit... Zeev At 01:10 24/4/2001, Frank M. Kromann wrote: >We can not use regestry settingns unless we have an installer or at

Re: [PHP] Using

2001-04-23 Thread Rene Maldonado
Hi I think it woulf be better this way:     print "";     print "";     print "";   and, the var name is $var_hello this way, the value of your var do not appear in the URL, This work for me...     Martin Cameron wrote: Here is a simple form file that needs to pass a variable - $hello

Re: [PHP] ereg_replace: Replacing only first occurrence

2001-04-23 Thread ~~~i LeoNid ~~
On 23 Apr 2001 13:04:36 -0700 impersonator of [EMAIL PROTECTED] ("Erica Douglass") planted &I saw in php.general: >I want to only replace the first occurrence of a string in a file using >ereg_replace. Should I use a loop to do this? Any suggestions? Please email >me at [EMAIL PROTECTED] with sug

Re: [PHP] Site Structure

2001-04-23 Thread Steve Werby
"Toby Miller" <[EMAIL PROTECTED]> wrote: > While it is true that you don't have to put your files in the web directory > at all and it is a more secure option there is still one very large > inconvenience that prevents me from going with that option. You lose the > usefulness of just including "$D

[PHP] Posting to a form

2001-04-23 Thread Wade
I'm trying to do the following But when Aname is multiple words, such as "Wade Williams", everything from the whitespace on gets cut off. Any ideas how to fix this? Thanks Wade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

RE: [PHP] How to turn off warnings ???

2001-04-23 Thread Brandon Orther
You can put a @ in front of you function. Example -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 3:05 PM To: [EMAIL PROTECTED]; Php-General Subject: RE: [PHP] How to turn off warnings ??? > I am a newbie to PHP and I am trying to get a nu

Re: [PHP] PHP 4.0.5

2001-04-23 Thread Henrik Hansen
Martín Marqués <[EMAIL PROTECTED]> wrote: > On Lun 23 Abr 2001 22:13, Felix Kronlage wrote: > > On Mon, Apr 23, 2001 at 03:00:07PM -0700, Dominique Paquin wrote: > > > I asked when the new version of PHP was comming out at the beginning of > > > the month and some one told me that it was comm

Re: [PHP] PHP 4.0.5

2001-04-23 Thread Henrik Hansen
Felix Kronlage <[EMAIL PROTECTED]> wrote: > On Mon, Apr 23, 2001 at 03:00:07PM -0700, Dominique Paquin wrote: > > > I asked when the new version of PHP was comming out at the beginning of the > > month and some one told me that it was comming out the week after. Haven't > > seen it yet, any

Re: [PHP] Site Structure

2001-04-23 Thread Meir kriheli
On Monday 23 April 2001 22:47, Jaxon wrote: > Hmm... > > Is there any way to set something like include_path on the fly, so you just > define all your possible direcories at once in what is essential a 'site > environment' variable, and then you can include/require your files without > putting any

[PHP]PHP script and new window.

2001-04-23 Thread Angerer, Chad
I have searched high and low for thos but with no luck. Hopefully someone will give me some good pointers. I have a poll on a page that I am building which uses php. I would like to have a new window open when the submit and view results links are selected. I am using an onClick and the view re

Re: Re[3]: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread Frank M. Kromann
We can not use regestry settingns unless we have an installer or at least a reg file to help users configure these. I woud suggest the method with environment variables as step one. - Frank > Monday, April 23, 2001, 10:19:36 PM, you wrote: > > It should be the Program Files directory, concaten

[PHP] Using

2001-04-23 Thread Martin Cameron
Here is a simple form file that needs to pass a variable - $hello - from the form to a new function. Unfortunately, it doesn't. When you click the submit button, the URL looks like this: http://localhost/test5.php?action=1&hello= It should have the variable there after the "hello=" I

[PHP] Question on installation

2001-04-23 Thread Jason Lam
I have installed the RPM version of PHP that came with a Linux dist. Obviously, it didn't came with a lot of the goodies, like ODBC. Now, if I have to install those modules, is there anyway I can "JUST" compile those modules and install it with /etc/php.ini ? Is this a recommended way? Or sho

php-general Digest 23 Apr 2001 22:00:36 -0000 Issue 645

2001-04-23 Thread php-general-digest-help
php-general Digest 23 Apr 2001 22:00:36 - Issue 645 Topics (messages 49827 through 49944): Why is it dangerous to have register_globals on? 49827 by: Greig, Euan 49923 by: Plutarck PHP Sydney meeting for April 49828 by: info.phpsydney.com Re: crypt() and md5

RE: [PHP] How to turn off warnings ???

2001-04-23 Thread Greg Donald
> I am a newbie to PHP and I am trying to get a number of scripts to work. > > Whenever I try to execute some code I receive 'warnings', that basically > clutter up the screen. Since I am assuming that these are not fatal - is > there any way to turn them off? > > Any help would be appreciated.

[PHP-CVS] cvs: php4 /ext/imap php_imap.c

2001-04-23 Thread Chuck Hagenbuch
chagenbuMon Apr 23 14:58:44 2001 EDT Modified files: /php4/ext/imap php_imap.c Log: Fix for bug 9908: check that the result of mail_sort is not 0 before trying to dereference the pointer. :) Also, free sort programs - this might have been a mem

RE: [PHP] php install issues on IIS

2001-04-23 Thread Martin Gottlieb
You probably need to go into the IIS console ( mmc ) and go to properties on the directory in question and make sure either the "execute" or "script" checkbox is checked. You may also need to verify the actual file permissions, but I believe this is more of a configuration issue. Martin Gottli

[PHP] How to turn off warnings ???

2001-04-23 Thread Roee Rubin
Hello, I am a newbie to PHP and I am trying to get a number of scripts to work. Whenever I try to execute some code I receive 'warnings', that basically clutter up the screen. Since I am assuming that these are not fatal - is there any way to turn them off? Any help would be appreciated. Ro

[PHP] php install issues on IIS

2001-04-23 Thread Jerry Lake
Some of my co-workers are trying to install php and when I run phpinfo() I get this error, any ideas ? I've only setup php on unix systems, so I am at a loss here. HTTP Error 403 403.1 Forbidden: Execute Access Forbidden This error can be caused if you try to execute a CGI, ISAPI, or other execu

Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Nikhil Goyal
Yes, that is a sound approach. However I've checked it again, and again, and again, and nothing pops up. It would be easier if I had an error generated. I'll try to get my hands on the SMTP logs, will talk to the server admin about that. My code is sending data to the SMTP socket and monitoring r

[PHP] Having trouble executing unzip from PHP script

2001-04-23 Thread Dexter
Hi PHP ers, Cant unzip a file from a PHP script. It does nothing. It works on the command line. Added paths to both the zip file and unzip program nothing happens exec("/usr/bin/unzip $IMAGE_TEMP_DIR/phpxXTN3T "); Thanks Dexter

Re[3]: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread Daniel Beulshausen
Monday, April 23, 2001, 10:19:36 PM, you wrote: > It should be the Program Files directory, concatenated with 'PHP'; Under > Windows, we should behave like Windows apps... we should use registry entries to determine/set the path(s), if those entries aren't present it could default to some hardco

Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Phillip Bow
Whenever you are positive its nto your code then check it again. That being said are there any SMTP logs you can check? Have you monitored the exact data being sent to the SMTP server(maybe set up a dummy socket that repeats back the data sent to it then have your program try to connect to that)

Re: [PHP] Method Not Allowed - Solved!!!!

2001-04-23 Thread Tym Rehm
I feel soo dumb. The problem was that the mod_php.rpm wasn't installed. I installed it, restarted apache and the scripts worked. I also upgraded to PHP4 while I was at it. Hope this will help someone. - Original Message - From: "Tym Rehm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMA

RE: [PHP] looking for a good shopping cart - catalog system

2001-04-23 Thread Ralph Guzman
if you looking for a ready out-of-the box solution, this is one of the best I've seen: www.theexchangeproject.org you may also want to look into the following: http://www.phpshop.org http://share.whichever.com/index.php?SCREEN=freetrade -Original Message- From: Roee Rubin [mailto:[EMA

Re: [PHP] PHP 4.0.5

2001-04-23 Thread Martín Marqués
On Lun 23 Abr 2001 22:13, Felix Kronlage wrote: > On Mon, Apr 23, 2001 at 03:00:07PM -0700, Dominique Paquin wrote: > > I asked when the new version of PHP was comming out at the beginning of > > the month and some one told me that it was comming out the week after. > > Haven't seen it yet, anyone

RE: RE: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread Zeev Suraski
It should be the Program Files directory, concatenated with 'PHP'; Under Windows, we should behave like Windows apps... Zeev At 21:50 23/4/2001, James Moore wrote: >how about defaulting to SystemDrive\\php4 but also allowing a envromental >variable to be set so > >#define PHP_BINDIR (getenv("P

Re: [PHP] insert data to mysql

2001-04-23 Thread shawn
define "not work" like is there an error? data not inserting? also, read and bookmark this tutorial, it'll help this and future endeavers : http://www.zend.com/zend/tut/using-strings.php The error is that the data isnt being written to the MySQL database. This is taking variables from a for

RE: [PHP] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Renzi, Sebastian
Create a mysql odbc acces and download the winsql.exe program that works with odbc connections ,its a great sql client !! Sebastián Renzi Consultoría & Desarrollo de Sistemas. CODES S.A > -Mensaje original- > De: Philip Olson [SMTP:[EMAIL PROTECTED]] > Enviado el: lunes 23 de abril

[PHP] ereg_replace: Replacing only first occurrence

2001-04-23 Thread Erica Douglass
I want to only replace the first occurrence of a string in a file using ereg_replace. Should I use a loop to do this? Any suggestions? Please email me at [EMAIL PROTECTED] with suggestions. Thanks, Erica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [PHP] RE: insert data to mysql

2001-04-23 Thread Philip Olson
> I did that but it still doesnt work? Is there something else that I > should be passing to the script to let it know to write to fields > within the table? define "not work" like is there an error? data not inserting? also, read and bookmark this tutorial, it'll help this and future endeaver

RE: [PHP] How to find the object name in a class?

2001-04-23 Thread Boget, Chris
> So is there ANY way to get the name of the object in PHP code without > knowing the name of the object ahead of time? I went through this exact thing not too long ago with an error class I wrote. Unfortunately, there is no way to know. What you can do, however, is do a check to see if that ob

[PHP] How to find the object name in a class?

2001-04-23 Thread Plutarck
I've been using a function to output HTML to the user's browser, and now my use has made it neccessary to put it all inside a class. All's going find and dandy and I've got it all working. However one of it's variables is $front_page. Now in other pages there are references to $front_page, and I

  1   2   3   >