[PHP] Display mail

2002-05-11 Thread Uma Shankari T.
Hello, Can anyone please tell me is there any to display the mails like mailing archieve, in one of the folder in Pine.. Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display mail

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, Uma Shankari T. wrote: Can anyone please tell me is there any to display the mails like mailing archieve, in one of the folder in Pine.. Open the file with fopen and read through it at your leisure. Every time you come across a line that starts with From (From followed by

Re: [PHP] Using function in PHP script n DOCROOT in PHP script insubfolder

2002-05-11 Thread Miguel Cruz
http://php.net/ini_set miguel On Sat, 11 May 2002, Phil Powell wrote: I can't alter php.ini as this is occurring on a remote site (not on my own site). :( Phil - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: Phil Powell [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

[PHP] protecting downloads with php

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've been asked to protect an area containing 'course material' (pdf's etc) and have just thought of a gaping hole in what I've done. I use an class to handle all the auth stuff and each page checks the value of $obj-logged_in :: No problem.

Re: [PHP] protecting downloads with php

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, Nick Wilson wrote: I've been asked to protect an area containing 'course material' (pdf's etc) and have just thought of a gaping hole in what I've done. I use an class to handle all the auth stuff and each page checks the value of $obj-logged_in :: No problem. but

Re: [PHP] protecting downloads with php

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Miguel Cruz declared I use an class to handle all the auth stuff and each page checks the value of $obj-logged_in :: No problem. but what if someone links to www.thesite/theProtectedArea/file.tar.gz that file cannot

Re: [PHP] Re: Debugger

2002-05-11 Thread Jose Leon
Hello: He said php -l will let you know where your syntax errors are. And what this has to do with my question? I was asking for a debugger, not for an error report. I want a mechanism to debug php programs step by step, watch variables and so on. Regards. -- PHP General Mailing List

Re: [PHP] Re: Debugger

2002-05-11 Thread Jose Leon
Hello: I think the OP has already looked at it, and wanted something better :) Yes, that's right, but I'm not saying dbg isn't good, I just said is too much complicated (AFAIK): -Must have a listener running -Use COM to interface with it -User installation too hard: Change php.ini to load

[PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Hi, If i have a filename room.jpg in my Upload Directory, and someone else comes and uploads a file by the same name, the previous room.jpg is overwritten by the new one. Any suggestions? This is the code i'm using : ?php $db = mysql_connect(localhost,user,pwd); mysql_select_db(dbname,$db);

Re: [PHP] File Type not working in Uploaded File

2002-05-11 Thread Thomas Edison Jr.
Hi, Ok there were a lot of mistakes in that code. IN fact i rubbed it off completely and am using a new code.. Everything works fine now, except that if the filename exists, any new file with the same name overwrites the old file.. What do i do about it? Here is the code i'm using : ?php

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Thomas Edison Jr. declared Hi, If i have a filename room.jpg in my Upload Directory, and someone else comes and uploads a file by the same name, the previous room.jpg is overwritten by the new one. Any suggestions? Well, I

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Hmm... Tried it, and this doesn't sound too good : Fatal error: Call to undefined function: file_exist() in d:\apache group\apache\htdocs\mjimm\mjpals_added.php on line 37 Basically this is what i added in the appropriate place : if(file_exist($img1_name)) { $img1_name =

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Thomas Edison Jr. declared Hmm... Tried it, and this doesn't sound too good : Fatal error: Call to undefined function: file_exist() in d:\apache group\apache\htdocs\mjimm\mjpals_added.php on line 37 Sorry, it was a typo:

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Glory Power! I'm using the following code now... the Error is gone, but it's still overwriting the old file. It's not changing the name.. not doing anything, just uploading this new file and replacing the old one.. ?php $db = mysql_connect(localhost,use,pwd); mysql_select_db(dbname,$db);

[PHP] using header ();

2002-05-11 Thread baldey_uk
Hi all, Can someone tell me how to use the header function? Can i use it with relative URLs for example: header (Location:index2.php); If i have that line somewhere in my script will the browser be automatically taken there or do i have to echo it or something of the like? Thanks for any help

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Thomas Edison Jr. declared Glory Power! I'm using the following code now... the Error is gone, but it's still overwriting the old file. It's not changing the name.. not doing anything, just uploading this new file and

Re: [PHP] using header ();

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then baldey_uk declared Can someone tell me how to use the header function? Can i use it with relative URLs for example: header (Location:index2.php); Have you tested it? Come on, took me all of a minute and a half to try it out :-)

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Glory! Well, I don't see any thing in your code that denotes the directory the images are going in? What about this : copy($img1, mjpalpics/$img1_name) or Die (Could not do); Sends the images to the mjpalpics Directory! 'path/to/img/img.jpg' exists and if so, name the upload img to

RE: [PHP] using header ();

2002-05-11 Thread baldey_uk
Yes i have tested it thats why i am asking, as it is not working either way for me, it just stays on the same screen but blanks the previous output to the page. Baldey_uk -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 11 May 2002 12:07 To: Php-General Subject: Re:

Re: [PHP] using header ();

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then baldey_uk declared Yes i have tested it thats why i am asking, as it is not working either way for me, it just stays on the same screen but blanks the previous output to the page. Weird, works fine for me. Let's see the code. -

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Thomas Edison Jr. declared Hmm... possibly when i say if(file_exists($img1_name)), he's looking for the file name in the Directory where the Images initially go.. but then since i copy them elsewhere, they won't be in the initial

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Well thanks a bunch! --- Nick Wilson [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Thomas Edison Jr. declared Hmm... possibly when i say if(file_exists($img1_name)), he's looking for the file name in the Directory where the Images initially

Re: [PHP] using header ();

2002-05-11 Thread Jason Wong
On Saturday 11 May 2002 19:10, baldey_uk wrote: Yes i have tested it thats why i am asking, as it is not working either way for me, it just stays on the same screen but blanks the previous output to the page. Baldey_uk -Original Message- From: Nick Wilson [mailto:[EMAIL

RE: [PHP] using header ();

2002-05-11 Thread baldey_uk
Here ya go: Basically im trying to update details in a database, after the new details are put into a form they are printed to the screen with a 'are the details correct' scenario. From there if they click 'no' i want them to be put back to the updateaddress.php page but also pass two php

[PHP] Cookies

2002-05-11 Thread Nookie
Hi. Is there any way to check is it cookies enabled browser? Regards, Szymon Kosok -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Jason Wong
On Saturday 11 May 2002 19:05, Thomas Edison Jr. wrote: Glory! Well, I don't see any thing in your code that denotes the directory the images are going in? What about this : copy($img1, mjpalpics/$img1_name) or Die (Could not do); Sends the images to the mjpalpics Directory!

Re: [PHP] using header ();

2002-05-11 Thread Jason Wong
On Saturday 11 May 2002 19:20, baldey_uk wrote: Here ya go: Basically im trying to update details in a database, after the new details are put into a form they are printed to the screen with a 'are the details correct' scenario. From there if they click 'no' i want them to be put back to

Re: [PHP] Cookies

2002-05-11 Thread Jason Wong
On Saturday 11 May 2002 19:20, Nookie wrote: Hi. Is there any way to check is it cookies enabled browser? Set a cookie then try to read it, if it fails then cookies are disabled. This needs to be done using 2 pages, one to set, the 2nd to read. Or you can use the same page, first time to

[PHP] Best way for date/time

2002-05-11 Thread John Fishworld
Due to the large variety of MySQL and PHP date time formats I'd like to have a couple of opinions from people out there ! Building a job database - and one of my fields is of course date time ! Which I want to be able to use latter in show all from last week, last month etc ! Also I want to

Re: [PHP] using header ();

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then baldey_uk declared #if not we need to keep the customer_id and quantity and start again case no : echo 'INPUT type=hidden name=txtJars value='.$quantity.'INPUT type=hidden

Re: [PHP] Best way for date/time

2002-05-11 Thread Jason Wong
On Saturday 11 May 2002 19:42, John Fishworld wrote: Due to the large variety of MySQL and PHP date time formats I'd like to have a couple of opinions from people out there ! Building a job database - and one of my fields is of course date time ! Which I want to be able to use latter in show

Re: [PHP] using header ();

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Jason Wong declared ... if you use a header() you cannot output anything beforehand. See manual. Oh, yeah, missed that one :-) - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6

Re: [PHP] Best way for date/time

2002-05-11 Thread John Fishworld
lol ! no thats not what I meant ! what's best to put into MySQL datetime from MySQL now() or from php date ! Regarding the format - its a german site so not expecting many yanks there ! :-)) On Saturday 11 May 2002 19:42, John Fishworld wrote: Due to the large variety of MySQL and PHP date

Re: [PHP] Best way for date/time

2002-05-11 Thread Jason Wong
On Saturday 11 May 2002 19:55, John Fishworld wrote: lol ! no thats not what I meant ! what's best to put into MySQL datetime from MySQL now() or from php date ! Regarding the format - its a german site so not expecting many yanks there ! Sorry :) In that case it's best to stick to

Re: [PHP] Best way for date/time

2002-05-11 Thread John Fishworld
Okay so I've then got 2002-05-08 and whats then the best way to manipulate it regarding plus 3 days or plus 4 weeks ? lol ! no thats not what I meant ! what's best to put into MySQL datetime from MySQL now() or from php date ! Regarding the format - its a german site so not

[PHP] Re: Best way for date/time

2002-05-11 Thread Manuel Lemos
Hello, On 05/11/2002 08:42 AM, John Fishworld wrote: Due to the large variety of MySQL and PHP date time formats I'd like to have a couple of opinions from people out there ! Building a job database - and one of my fields is of course date time ! Which I want to be able to use latter in

[PHP] Problme with PHPMyAdmin.

2002-05-11 Thread vins
My phpMyAdmin keeps caching it'self. How do i disable it. I'm using apache 2 and php4.2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] setcookie() in 4.2.0

2002-05-11 Thread Olexandr Vynnychenko
The following code doesn't work properly on PHP 4.1: ?php echo pBlah, blah/p; setcookie(kuku, abc); setcookie(lala, def); setcookie(zuzu, ghi); ? Because I wrote echo statement before setcookie. But it works on PHP 4.2. Is it due to output_buffering=4096 directive in php.ini? -- Best regards,

[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

[PHP] access denied error

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I'm pulling out hair here. this snippet of code seems to work just great but when I use it in the method 'change_password()' it gives me access denied errors. I see nothing wrong with the php but maybe someone can help me? Here is the connect

[PHP] Email updates

2002-05-11 Thread Randum Ian
Hi all, I want to be able to allow certain people the ability to email news directly onto a page using the address [[EMAIL PROTECTED]] but only if they are verified on a db. Please can someone explain what I need to do or where I need to look so that I can grab the email as it comes in and add

[PHP] Re: Email updates

2002-05-11 Thread Manuel Lemos
Hello, On 05/11/2002 10:20 AM, Randum Ian wrote: Hi all, I want to be able to allow certain people the ability to email news directly onto a page using the address [[EMAIL PROTECTED]] but only if they are verified on a db. Please can someone explain what I need to do or where I need to

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

2002-05-11 Thread Neil Highley
Why would you want a scripting language to sleep, there is no such thing as a loop in a web page (yes, I know it would be possible, but it would lock up a users machine). I know you can set up the apache daemon to run on-demand to conserver resources, but I think you are getting mixed up between

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] Email updates

2002-05-11 Thread Bogdan Stancescu
You can use Mr. Lemos' suggestion, or go with an alias instead. You can check out an example of setting this up by downloading http://sourceforge.net/projects/outreach/ (the full version) - read INSTALL.email and check out opt/include/mail_retrieve.pl. Then check out opt/include/email.php to

Re: [PHP] Email updates

2002-05-11 Thread Rasmus Lerdorf
Have a look at procmail (http://www.procmail.org/) -Rasmus On Sat, 11 May 2002, Randum Ian wrote: Hi all, I want to be able to allow certain people the ability to email news directly onto a page using the address [[EMAIL PROTECTED]] but only if they are verified on a db. Please can

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

2002-05-11 Thread Matthew Walker
1. I have dug deeper into arrays than I care to remember. 2. Absolutely not. 3. See http://www.php.net/sleep and http://www.php.net/usleep Glad to hear you're converting to PHP! It's an amazing language, and I don't see it going away any time in the near future. Hope you have fun, and be sure

[PHP] Search Engine With Boolean Support --Please help

2002-05-11 Thread SpamSucks86
I need to have an internal search engine for my site. It needs to support Boolean (not, or, and). Are there any fairly simple scripts out there that will help me with this? Even if it's just to give me an idea of where to start. I'm using mySQL, and Boolean support isn't implemented until v4.0.

[PHP] ::::: PHPMYADMIN ERRORS-REFRESH. PHP4 or Apache 2?? :::::::

2002-05-11 Thread vins
My phpmyadmin scripts doesn't want to refresh. what could be the problem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Best way for date/time

2002-05-11 Thread David Freeman
Okay so I've then got 2002-05-08 and whats then the best way to manipulate it regarding plus 3 days or plus 4 weeks ? Do it in your sql query - check out the date manipulation stuff in the sql manual - it's quite comprehensive and tells you what you need to know. CYA, Dave --

RE: [PHP] setcookie() in 4.2.0

2002-05-11 Thread Matthew Walker
Yes. Output buffering is good. Some people will say that you shouldn't use it, but should make sure to write all your code so that there can't be any output before any headers need to be sent. I disagree with this. While a good idea in principle, in practice it is all but impossible to keep

RE: [PHP] Any difference between these 2 forms of syntax?

2002-05-11 Thread John Holmes
I am wondering if there is any tangible difference between the following two commands: $x = $foo[status]; $x = $foo['status']; The only difference to any strings enclosed in ' or is that strings enclosed in may have variables embedded within them. Strings enclosed with ' will not have

RE: [PHP] protecting downloads with php

2002-05-11 Thread John Holmes
Store your files outside of the webroot if you use this method. Then they can't type in the address directly (otherwise this doesn't fix anything). ---John Holmes... -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 11, 2002 2:23 AM To: PHP-General

RE: [PHP] Cookies

2002-05-11 Thread John Holmes
Set a cookie, redirect to same page, and see if cookie is sent to you. ---John Holmes... -Original Message- From: Nookie [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 11, 2002 4:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Cookies Hi. Is there any way to check is it cookies

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)

[PHP] PhpMyAdmin

2002-05-11 Thread Michigan Connect, LLC
I am using the latest phpMyAdmin and MySQL 2.23.37. I have installed and compiled it on a Sun Cobalt RAQ4r. I need to have it set up so that customers with different websites cannot see or work on other cutomers DB's, but each virtual site has its one phpMyAdmin So each user needs to have his

RE: [PHP] Best way for date/time

2002-05-11 Thread John Holmes
Okay so I've then got 2002-05-08 and whats then the best way to manipulate it regarding plus 3 days or plus 4 weeks ? I definitely agree to use the MySQL format for your dates. It makes it easier to use the built in functions. You can convert the timestamp to a unix style if you have to,

RE: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread John Holmes
copy($img1, mjpalpics/$img1_name) or Die (Could not do); Sends the images to the mjpalpics Directory! Possibly. But one thing that is definitely a problem is: if(file_exists($img1_name)) { $img1_name = n+$img1_name; } should be: if(file_exists($img1_name)) {

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

2002-05-11 Thread Austin Marshall
R wrote: 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

[PHP] variables attached to url

2002-05-11 Thread jyrgen
a few weeks ago there was a discussion about how to get variables attached to a url like http://server.com/script.php?var1=value1var2=val ue2var3=value3 the easiest way to do this is possibly: $vars = explode(, $argv[0]); parse_str($vars); with these two lines you will have the variables

Re: [PHP] Problme with PHPMyAdmin.

2002-05-11 Thread Rasmus Lerdorf
Apache2+PHP has a number of issues. At this point it is only suitable for testing purposes. I suggest using Apache 1.3.x if you want a stable working server. -Rasmus On Sat, 11 May 2002, vins wrote: My phpMyAdmin keeps caching it'self. How do i disable it. I'm using apache 2 and php4.2

[PHP] To all who replied to :Newbie question to everybody...PHP

2002-05-11 Thread r
Hey Guys, I thank each and everyone one of you who replied, yeah, i got flamed a couple of times from some of you for the sleep bit but need i remind you that i am a newbie? Hey, dont get me wrong i thank you too even though you flamed me, coz you read the post and replied to me. As for the

[PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread David J Jackson
Let's see if I can keep this short and simple. I'm having to problems with a hosting service. 1. index.php isn't being read as default index. 2. Form aren't working (see a below mail_call.php). 2A.The mail_call.php works on my localbox (apache-2.0.36 +PHP4.2.0) 2B. Hosting company,for reason

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

Re: [PHP] protecting downloads with php

2002-05-11 Thread Steve Overall
Nick: As John H. suggested earlier, storing files outside (above) the webroot makes those files inaccessible directly from the user's browser-- a good thing-- in which case the script serves as a gateway to these files-- also a good thing. I have a similar need. Here's one way to do it in two

[PHP] changing language on fly

2002-05-11 Thread Yura
I'm looking for possibility to change language of my site on fly you may take a look at http://body-builders.org and see yourself - now when I press language button I can get to the main page in sertain language but what I want it to do is if I'm for example at 'Links' page and click on

Re: [PHP] protecting downloads with php

2002-05-11 Thread Steve Overall
Nick Wilson wrote: Does anyone know of somewhere that lists content-type's? Many thanks :-) - -- Nick Wilson // www.explodingnet.com See http://www.ietf.org/rfc/rfc2183.txt for handling file types in headers. Also see the PHP manual http://www.php.net/manual/en/function.header.php

RE: [PHP] protecting downloads with php

2002-05-11 Thread Miguel Cruz
If you don't tell anyone what the secret path is, it's as good as a password. miguel On Sat, 11 May 2002, John Holmes wrote: Store your files outside of the webroot if you use this method. Then they can't type in the address directly (otherwise this doesn't fix anything). ---John

Re: [PHP] protecting downloads with php

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, Nick Wilson wrote: Does anyone know of somewhere that lists content-type's? Apache comes with a file in conf/mime.types that lists a lot of standard ones. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, Thomas Edison Jr. wrote: If i have a filename room.jpg in my Upload Directory, and someone else comes and uploads a file by the same name, the previous room.jpg is overwritten by the new one. Any suggestions? In the long run, I think the best plan is to name your files

[PHP] I just wanted to thank everyone.. :) (Kinda long...)

2002-05-11 Thread Glenn Sieb
Hey everyone! After some futzing about, and using techniques you guys all helped out with, I now have a nice, portable, fully-commented-for-future-maintenance script for doing *all* of my SQL queries to our MSSQL server, and outputting a nice, easy-to-read table. I only have to change one

RE: [PHP] using header ();

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, baldey_uk wrote: Basically im trying to update details in a database, after the new details are put into a form they are printed to the screen with a 'are the details correct' scenario. From there if they click 'no' i want them to be put back to the updateaddress.php page

Re: [PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread Dennis Moore
If it is a unix/linux box use the .htaccess file and define the settings yourself.Please this file in the document root for your site... Assuming the system will allow you to do so... /dkm - Original Message - From: David J Jackson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread Jason Wong
On Sunday 12 May 2002 00:12, David J Jackson wrote: Let's see if I can keep this short and simple. I'm having to problems with a hosting service. 1. index.php isn't being read as default index. 2. Form aren't working (see a below mail_call.php). 2A.The mail_call.php works on my localbox

RE: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
WOOO.. i did not know this was possible : file_exists(mjpalpics/$img1_name) And this might actually solve the whole issue!! Let me try this.. Thanks a BUNCH! T. Edison Jr. --- John Holmes [EMAIL PROTECTED] wrote: copy($img1, mjpalpics/$img1_name) or Die (Could not do); Sends the

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Hmm.. You gave me a lot to think about, and a whole lot of work to do. I definately love your idea and logic, and yes, it would make everyone happy. well i guess by the time i figure the coding and process out, i'll keep in mind to arrange for your British Airways Gift Certificate too. Glory!

Re: [PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread David Jackson
Jason -- In actual fact the hosting company in question is used by a friend of mine, but not my me :) And I agree he needs to draw a line in the sand, I mean the guy uses them for 2 sites and his ISP?! It's time to say fix it by Monday at 08:00 or I'm canceling my accounts, but that's just me

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Jason Wong
On Sunday 12 May 2002 01:38, Thomas Edison Jr. wrote: WOOO.. i did not know this was possible : file_exists(mjpalpics/$img1_name) And this might actually solve the whole issue!! Let me try this.. You might find is_file() to be a 'more reliable' indicator because file_exists() works for

Re: [PHP] Search Engine With Boolean Support --Please help

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, SpamSucks86 wrote: I need to have an internal search engine for my site. It needs to support Boolean (not, or, and). Are there any fairly simple scripts out there that will help me with this? Even if it's just to give me an idea of where to start. I'm using mySQL, and

Re: [PHP] changing language on fly

2002-05-11 Thread Miguel Cruz
You might want to use the format: http://www.body-builders.org/index.php.en?links=1 http://www.body-builders.org/index.php.ru?links=1 so that you can take advantage of Apache's mod_mime features, and not have to do so much complicated guesswork to determine when you are displaying in an

Re: [PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread Miguel Cruz
This probably isn't the cause of any of your troubles, but your From: header is malformatted; there should be a space after the colon. miguel On Sat, 11 May 2002, David J Jackson wrote: Let's see if I can keep this short and simple. I'm having to problems with a hosting service. 1.

[PHP] MySQL and RH 7.2

2002-05-11 Thread Todd Cary
I am completely new to MySQL and I just installed it on my RH 7.2 server and I cannot determine where the MySQL admin program is located so that I can set my password. Sorry for the basic question... Todd -- Todd Cary Ariste Software 2200 D Street Extension Petaluma, CA 94952 707-773-4523

Re: [PHP] MySQL and RH 7.2

2002-05-11 Thread Jason Wong
On Sunday 12 May 2002 02:44, Todd Cary wrote: I am completely new to MySQL and I just installed it on my RH 7.2 server and I cannot determine where the MySQL admin program is located so that I can set my password. Sorry for the basic question... mysqladmin For further help please goto

Re: [PHP] MySQL and RH 7.2

2002-05-11 Thread Todd Cary
I tried locate and find and both come up empty for mysqladmin. Am I missing something stupid here? Todd -- Todd Cary Ariste Software 2200 D Street Extension Petaluma, CA 94952 707-773-4523 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Newbie needs compile

2002-05-11 Thread hassan
hi you can also use http://www.webcron.org At 13:29 06/05/02, John Holmes wrote: He did say he did /not/ want to invoke it from a browser :) I didn't think that PHP could run w/o one though, so my idea was to use a text browser, have it run the script, then exit out. As I said, I was

[PHP] Re: Nitpicking - PHP 4.2.0 for windows says version is 4.1.2

2002-05-11 Thread Steve Magruder, D2 Director
Make sure that any PHP DLL's in your system32 directory are updated. If they were updated to the newest versions, then what you describe is definitely a big problem, not a nit. -- Steve (www.stevemagruder.com) Garth Dahlstrom [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] Search Engine With Boolean Support --Please help

2002-05-11 Thread SpamSucks86
I don't want to use a module though. I just want to take what a person types and parse it so I can put it into a mysql query and search my database of data. I share the server and I can't get mnoGoSearch compiled in with PHP, so unless there's PHP code I can borrow from it, I don't think it will

[PHP] setcookie()

2002-05-11 Thread jtjohnston
This is a bug Feature/Change Request I made to: http://bugs.php.net/bug.php?id=17158 setcookie() states cookies must be sent before any other headers are sent (this is a restriction of cookies, not PHP). I argue this is a restriction of PHP, not cookies. Here is my proof:

Re: [PHP] setcookie()

2002-05-11 Thread Rasmus Lerdorf
PHP is a server-side language and as such it deals with server-side issues. If you want to write javascript that sets a client-side Javascript cookie, go ahead. It has nothing to do with PHP and PHP will certainly not get in your way. -Rasmus On Sat, 11 May 2002, jtjohnston wrote: This is a

Re: [PHP] setcookie()

2002-05-11 Thread jtjohnston
Rasmus server-side / client-side, that's not the point. My point is PHP can, could and should be able to set a cookie after HTML is set. But of course, Jan has already closed the issue, as usual. http://bugs.php.net/bug.php?id=17158 PHP is a server-side language and as such it deals with

Re: [PHP] setcookie()

2002-05-11 Thread jtjohnston
If the issue has pissed you off in tha past, complain. Vote: http://bugs.php.net/bug.php?id=17158 Rasmus server-side / client-side, that's not the point. My point is PHP can, could and should be able to set a cookie after HTML is set. But of course, Jan has already closed the issue, as

Re: [PHP] setcookie()

2002-05-11 Thread Rasmus Lerdorf
And you can do so if you turn on output buffering. Having PHP send off JavaScript to do this is a massive hack that has no place in PHP. Write your own setcookie wrapper function if that is what you want. -Rasmus On Sat, 11 May 2002, jtjohnston wrote: Rasmus server-side / client-side,

RE: [PHP] setcookie()

2002-05-11 Thread Mark Charette
You've just pointed out that you're a clueless newbie, that's' all, and can't read a spec worth a whit. -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 11, 2002 4:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] setcookie() Rasmus server-side /

[PHP] an sql_layer

2002-05-11 Thread http://www.promoozz.org [*]
i'm sweating on this one : function sql_fetch_row($res, $nr) { global $dbtype; switch ($dbtype) { case MySQL: $row = mysql_fetch_row($res); return $row;

[PHP] PHP Hosting ...

2002-05-11 Thread Tim Thorburn
Hi, I've about had it with my current hosting company as they've turned off SSH for the past month due to security reasons which means I can no longer add/remove tables from my MySQL database. Looking at two other hosting companies - SBC Webhosting - www.webhosting.com and Verio -

[PHP] PHP 5??

2002-05-11 Thread Tim Thorburn
Hi, In my seemingly never ending search for a decent hosting company, I've contacted some customer service people from Verio who tell me a very interesting story ... they're currently upgrading their PHP to version 5 ... which I find odd as there's only mention of 4.2.0 on php.net ... So my

Re: [PHP] PHP 5??

2002-05-11 Thread Rasmus Lerdorf
He has no clue. There is no PHP 5. The next version will be 4.2.1 next week and probably 4.3 after that. -Rasmus On Sat, 11 May 2002, Tim Thorburn wrote: Hi, In my seemingly never ending search for a decent hosting company, I've contacted some customer service people from Verio who tell

[PHP] RE:[PHP]PHP Hosting....

2002-05-11 Thread r
Hey Tim, I'm using 321go.biz for my hosting needs. Not a single problem so far and around 30-90 minutes for each support question to be solved which i think is pretty good. They are slightly expensive though but i joined for the Java part, got PHP free! Now that i'm into PHP I see they also offer

[PHP] Re: an sql_layer

2002-05-11 Thread Austin Marshall
Http://Www.Promoozz.Org wrote: i'm sweating on this one : function sql_fetch_row($res, $nr) { global $dbtype; switch ($dbtype) { case MySQL: $row =

Re: [PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-11 Thread Phil Powell
Found a MUCH MUCH simpler solution that works across the board.. change $HTTP_HOST to $DOCUMENT_ROOT and it works! Phil Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Phil: On Fri, May 10, 2002 at 08:01:46PM -0400, Phil Powell wrote:

  1   2   >