Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Matt Greer
On Sunday 30 September 2001 18:23, Armando Cerna wrote: > I have tried system (updatemp) and exec (updatemp) The system() function requires a string as its argument. So you need to write it as system("updatemp"); or system("$files"); Matt -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Matt Greer
on 9/24/01 10:56 AM, Thomas Deliduka at [EMAIL PROTECTED] wrote: > > VAR 3: VALUE="go"> > > I dont see where the SID is being passed to the next page. I recently struggled through getting sessions to work, and for me I had to send SID myself manually, the server wouldn't send it via a cookie

Re: [PHP] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread Matt Greer
On Sunday 23 September 2001 17:01, rico wrote: > The problem is in the final formatting in arrayprocr.php. I notice that > whenever a new is added to the final table, it gets pushed further > down the page, almost as if a has been added for each new ...but > there is not. > I cant look at your

Re: [PHP] percentage problems

2001-09-22 Thread Matt Greer
On Saturday 22 September 2001 16:41, you wrote: > Hello all, > > I'm having some troubles making correct percentages. > > I'm writing a simple poll system. Is there an easy way to generate > percentages? I know to divide and all that good stuff. I do substr to get > rid of the decimals, but som

Re: [PHP] Host OnLine ?

2001-08-06 Thread Matt Greer
on 8/6/01 7:45 PM, Arcadius A. at [EMAIL PROTECTED] wrote: > Hello ! > Is there any function in PHP returning true or false or something similar > when a given host is online or not ? > > Basically , I'm in need od something "ping" > Thanks ... Just a knee jerk reaction, but what about

Re: [PHP] stop a file called foo.bar

2001-08-03 Thread Matt Greer
on 8/3/01 4:22 AM, void at [EMAIL PROTECTED] wrote: > stop a file called foo.bar from being downloaded with a web server ? > > Say you'r web site's name is foobar.net. > > ..and... > > Script-kiddy Johny knows that, > but also knows that you'r secret file is called foo.bar > and it is saved in

Re: [PHP] Content Type Text?

2001-08-01 Thread Matt Greer
on 8/1/01 4:35 PM, Jeff Oien at [EMAIL PROTECTED] wrote: > I've looked all over and can't find a content-type declaration for text. > This is my guess > header("Content-Type: text/txt"); > but I'm not sure if this is right. I know this is more HTTP than PHP. > I want info to be displayed in a bro

Re: [PHP] Installing PHP probs

2001-08-01 Thread Matt Greer
on 8/1/01 9:57 PM, Kyle Smith at [EMAIL PROTECTED] wrote: > well what if i want to set up the computer im using to be able to run php > acripts, but NOT be an internet server? > You can't. You need a webserver on your computer to run php locally. If you're running windows98/me you can use Person

Re: [PHP] SQL syntax error in PHP script. dunno what's wrong

2001-08-01 Thread Matt Greer
on 8/1/01 11:35 AM, Chris Worth at [EMAIL PROTECTED] wrote: > > > hey gang. > > here is my sql statement from my php script. > > $sql = "UPDATE TABLE seminar SET > title=$title,speaker=$speaker,event_date=$tdate,time=$time,bldg=$building > ,rm=$room WHERE id=$id"; > strings in a mysql quer

Re: [PHP] Re: FAQ

2001-08-01 Thread Matt Greer
on 8/1/01 11:01 AM, Angerer, Chad at [EMAIL PROTECTED] wrote: > > PHP Hypertext Preprocessor. > > Isn't it Personal Home Pages? > I believe that was the original name. But now the first P represents an acronym itself, as Kirk pointed out, PHP Hypertext Preprocessor. So as I understand it, it's

Re: [PHP] Make a mailing list

2001-07-31 Thread Matt Greer
on 7/31/01 12:48 PM, B. van Ouwerkerk at [EMAIL PROTECTED] wrote: > Do you really want others to write your code so you can copy and paste it?? > If you can't find the manual it's on www.php.net you can even search the > documentation for the word mail. Actually www.php.net/functionname will bri

Re: [PHP] whats wrong?

2001-07-31 Thread Matt Greer
on 7/31/01 10:09 AM, Jeremy Morano at [EMAIL PROTECTED] wrote: > Anythig visibly wrong with this? > > > > "> The quotes around $uid are ending value prematurely. html thinks value is "http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

[PHP] array/mysql problems

2001-07-30 Thread Matt Greer
I've been trying to get this to work all night with no luck. I've gotten a similar version to work, with the only real difference being I didn't use mysql (I just plugged some stuff in). But other than that I can't see the difference. Basically I'm trying to pull stuff out of a database, get an av

Re: [PHP] Admin help please!

2001-07-30 Thread Matt Greer
on 7/30/01 9:00 AM, B. van Ouwerkerk at [EMAIL PROTECTED] wrote: > So.. for php general help thats: > [EMAIL PROTECTED] > > Uhm, this was also in the welcome messages you got when you subscribed. > It's also in the footer of every message posted to this list :) Matt -- PHP General Mailing

Re: [PHP] Re: HTTP header question.

2001-07-29 Thread Matt Greer
> What I'm looking for is a way to do this such that the user does not see > anything more than http://host.name.here/rams/login.php in their address > bar when it failed... Doesn't using a form with its method set to post send the variables through headers? If that's the case, couldn't you manua

[PHP] weird caching problem

2001-07-28 Thread Matt Greer
I'm calling an image through a php file, but when I make changes to the image, I can't get them to show. For some reason the old image is getting cached somewhere, and none of the standard remedies are working (refreshing, deleting cache, etc). What does work is changing the value of $icon and the

Re: [PHP] auto refresh in every five seconds.

2001-07-27 Thread Matt Greer
- Original Message - From: "Mark Lo" <[EMAIL PROTECTED]> To: "php general" <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001 10:40 PM Subject: [PHP] auto refresh in every five seconds. > Hi, > > I would like to know how to do a auto refresh in every five seconds. This isn't php,

Re: [PHP] IE -> View Source

2001-07-26 Thread Matt Greer
on 7/26/01 10:44 AM, Sheridan Saint-Michel at [EMAIL PROTECTED] wrote: > Besides... do you REALLY have anything so mind bogglingly original in your > code that you have to > go to all these extremes to protect it? That's what I've never understood about people wanting to hide their source. HTML

Re: [PHP] html form question

2001-07-25 Thread Matt Greer
> What's the method for populating any number of html > form ... tags with query results? > I've seen lots of php-embedded examples for CHECKBOX, > RADIO and even SELECT, but I can't seem to figure out > how to create a simple drop-down menu. HELP!!! Wouldn't it just be:

Re: [PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
Ah ha, my host was wrong. gd is not installed on the server I'm on, but they're moving me over to one that has it. Sorry everyone, but I didn't know enough about any of this to be able to verify what they told me. Thanks for all the help. Matt -- PHP General Mailing List (http://www.php.net/

Re: [PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
on 7/25/01 9:35 AM, Warren Vail at [EMAIL PROTECTED] wrote: > If the gd extension is not loaded each time php is loaded you will need to > cause it to be loaded from your script. Ok, I tried this and got gd is not loaded I don't know if that's the name of gd on my server though. A search th

Re: [PHP] ereg_replace

2001-07-25 Thread Matt Greer
on 7/25/01 10:38 AM, Clayton Dukes at [EMAIL PROTECTED] wrote: > > > Can someone tell me why this doesn't work? > > $home_street = ereg_replace (" " , "+" , $home_street); > > The input is "123 happy trail" > I need the output to be "123+happy+trail" Not exactly what you wanted, but you coul

[PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
I'm trying to get a simple piece of code involving gd functions to work just to ensure gd is working properly on my server. I took this straight from my book. All that comes up is a broken image. I talked with my host and they assured me gd is installed and working properly on the server. Any idea

[PHP] working with remote images

2001-07-24 Thread Matt Greer
It looks like my attempt to send this bounced. Which is fine, since I've now got a slightly different question. I'm working on a "network" for my site and others related to it. We want to keep track of which sites are the most popular by having everyone place on their site something to the effect

[PHP] keeping track of external image linking with php?

2001-07-23 Thread Matt Greer
I don't think that's the best subject, but I'm not really sure how to phrase it. I'm not familiar with php's image capabilities. I've read about them a bit, but never really used them. I'd like to have an image that when accessed would cause php to kick in and do a few things before sending the

Re: [PHP] Keeping fields out of URL

2001-07-23 Thread Matt Greer
on 7/23/01 10:55 AM, Shrout, Ryan at [EMAIL PROTECTED] wrote: > How can I keep fields in a form out of the URL? > > I am writing a basic PHP/login script to password protect a directory of the > web site (if anyone knows of something pre-made, please do let me know). > If you're on a unix serv

Re: [PHP] Another how do i question

2001-07-23 Thread Matt Greer
on 7/23/01 10:49 AM, Matt Greer at [EMAIL PROTECTED] wrote: > on 7/23/01 6:25 PM, Kyle Smith at [EMAIL PROTECTED] wrote: > >> I made this code for a simple for (the end of it) but what do i change in the >> $message variable so there is a new line between each other variable i

Re: [PHP] Another how do i question

2001-07-23 Thread Matt Greer
on 7/23/01 6:25 PM, Kyle Smith at [EMAIL PROTECTED] wrote: > I made this code for a simple for (the end of it) but what do i change in the > $message variable so there is a new line between each other variable in > $message (ive tried $name. . $last_name and. happens) > Did you try $na

Re: [PHP] Prevent user to close web browser

2001-07-19 Thread Matt Greer
on 7/19/01 10:30 AM, Tom Malone at [EMAIL PROTECTED] wrote: >> Netscape will warn the user that the script (javascript) is trying to close >> their main window. >> > True, but JavaScript can't prevent the user from closing their web browser > window, which is the basis of the original question.

Re: [PHP] I AM AT THE START POINT

2001-07-19 Thread Matt Greer
on 7/19/01 9:33 AM, Ali YILDIRIM at [EMAIL PROTECTED] wrote: > Hi; > I am just at the beginning process to php. > My question is: > I type in notepad my php code ok allright but where > will I test this? > > I know this is so simple but you know I am new to this > and ... > Please help.. You c

Re: [PHP] Prevent user to close web browser

2001-07-19 Thread Matt Greer
on 7/19/01 8:33 AM, Tom Malone at [EMAIL PROTECTED] wrote: > I am almost positive this is not possible with JavaScript or even VBScript. > It might be possible with Visual Basic, but again - why would you want to do > that? Netscape will warn the user that the script (javascript) is trying to cl

Re: [PHP] security, receiving html from a form

2001-07-18 Thread Matt Greer
- Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> > > I know I could use HTMLSpecialChars() and then devise my own mark up system; > > You could also define a list of tags you allow and pass them to the > strip_tags() function. See http://php.net/strip_tags > Interesting.

[PHP] security, receiving html from a form

2001-07-18 Thread Matt Greer
For my website I created an updating system in php. Where my staff and I can write articles that then get saved to the server, linked to, etc. I allowed html to be passed from the form because a lot of the staff likes to use html tags in their articles. Which I know is a security issue. I know I