RE: [PHP] chmod

2001-08-05 Thread Ben Bleything
Chmod -R 77x test The 'x' in the above statement is the world-permissions... Execute is worth 1, Write is worth 2, Read is worth 4. If you add up the numbers for the permissions you want, you get the result, so 775 would be full access for owner and group, and read/execute for world. Hope

RE: [PHP] weird behavior with a form

2001-08-03 Thread Ben Bleything
Submit should get set when you click the submit button... it is not used anywhere else... Again, it works when you click the button, just not when you press enter... = I'm going to try what Richard just suggested, and I'll get back to you. Ben -Original Message- From: Queen

RE: [PHP] Visual Login

2001-08-01 Thread Ben Bleything
AM To: php Subject: RE: [PHP] Visual Login if you go this route, you would, however, have to check for valid-login users on every page that you want to have security on. -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Subject: RE: [PHP] Visual Login One way would

RE: [PHP] Installing PHP probs

2001-08-01 Thread Ben Bleything
AND, you can fairly easily configure it to deny all connections coming from anywhere but localhost = Ben -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 12:08 PM To: php Subject: RE: [PHP] Installing PHP probs you dont have to have a

RE: [PHP] Visual Login

2001-07-31 Thread Ben Bleything
One way would be to use a database (of any type) to store username/password data, present the user with a form to fill out, authenticate against the database, set session variable if they are valid, and let them use the application.. if they fail, do whatever. = EXTREMELY brief. Can give more

RE: [PHP] Sorry... but a good PHP editor for Linux/Unix

2001-07-31 Thread Ben Bleything
I can't speak for terminal usage... I use pico and or vi... pico on console, vi over ssh. When working locally, I use nedit (www.nedit.org) on *nix (with custom PHP syntax highlighting) and EditPlus on windows. Good luck, Ben -Original Message- From: Augusto Cesar Castoldi

RE: [PHP] Re: HTTP header question.

2001-07-30 Thread Ben Bleything
If you all would like, I can post my code... I'm still looking for a solution. Matt has it right. I'm trying to go for a more professional looking thing... and I do want it to display a notice when the login fails. I have thought of another way to do it... but it's not pretty, so I'm still

RE: [PHP] Re: HTTP header question.

2001-07-30 Thread Ben Bleything
Ahh, and a bit of clarification before you read the code, the page posts to itself = Ben -Original Message- From: Dave [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 8:05 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: HTTP header question. below Some of the original message:

RE: [PHP] THE END OF the HTTP header question.

2001-07-30 Thread Ben Bleything
-send(0); echo eregi_replace(^HTTP.*html, , $return); Just thought I'd stick a little hint along with it. Sorry for the long-windedness of this thread = Ben -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 4:55 PM To: [EMAIL PROTECTED] Cc

RE: [PHP] storing array in mysql

2001-07-30 Thread Ben Bleything
to store the serialized data? Hope this helps = Ben -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 8:34 PM To: Ben Bleything Cc: PHP Mailing List Subject: RE: [PHP] storing array in mysql Hi Ben, This is a section of the insert statement I

RE: [PHP] storing array in mysql

2001-07-30 Thread Ben Bleything
Whee! I'm a moron! Anyhoo, I've always used mysql_fetch_array() = So... Like I said about the serialized data getting truncated... that's still my best guess = Ben -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 9:10 PM To: 'Matthew

[PHP] HTTP header question.

2001-07-29 Thread Ben Bleything
Hey all, I want to craft a header such that it seems to the page that data has been POST'ed to it... Here's the situation: I'm writing a login page to my application, and if they log in incorrectly, I want the page to redisplay, but I want it to throw out an error message. I'm currently doing

RE: [PHP] Re: HTTP header question.

2001-07-29 Thread Ben Bleything
: login.php?failure=true) ) does not satisfy my requirement. So... anybody else? Ben -Original Message- From: Jacques [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 29, 2001 5:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: HTTP header question. Ben Bleything [EMAIL PROTECTED] wrote in message

RE: [PHP] Re: HTTP header question.

2001-07-29 Thread Ben Bleything
to the page. I'm having NO luck whatsoever with the HTTP RFC's... too thick = Thanks, Ben -Original Message- From: Philip Murray [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 29, 2001 6:06 PM To: Ben Bleything Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: HTTP header question. Quoting

RE: [PHP] Generating mysql statement from php return an error :-(

2001-07-29 Thread Ben Bleything
I _believe_ (not totally sure) that mysql_query() can only handle one statement at a time, and if you need to execute multiple, you will need to use more than one mysql_query() statements. It's a bummer = I have all sorts of problems with it. What's up with your return e-mail address? It's a

RE: [PHP] HTTP header question.

2001-07-29 Thread Ben Bleything
To: Ben Bleything; [EMAIL PROTECTED] Subject: RE: [PHP] HTTP header question. what is the logic behind requiring the header? for example, to avoid using cookies and yet ensuring security, we pass a loginkey for all pages. every page has include('securitycheck.php'); which parses

RE: [PHP] HTTP header question.

2001-07-29 Thread Ben Bleything
know so I can try to re-explain. Thanks, Ben -Original Message- From: Dave VanAuken [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 29, 2001 7:16 PM To: Ben Bleything; [EMAIL PROTECTED] Subject: RE: [PHP] HTTP header question. what is the logic behind requiring the header

RE: [PHP] Please Please Pleeeeaaaaaaaaaasssssssseeeeeee

2001-07-27 Thread Ben Bleything
There are a wealth of available scripts at other websites... www.hotscripts.com for instance... I find it unlike at this point that anybody will send you anything... Just go there, or to SourceForge, and you'll find all you need. Ben -Original Message- From: Kyle Smith [mailto:[EMAIL

Re: [PHP] The BIG Question

2001-07-25 Thread Ben Bleything
It can be used for (nearly) anything, it seems. Sure, making dynamic web sites is cool... not necessarily database driven, but perhaps driven by user input. I'm currently using PHP as my primary shell scripting language... I have a collection of scripts that manipulate directories full of

Re: [PHP] Zip Code Locator?

2001-07-24 Thread Ben Bleything
You could write your own. . . Just kidding... well, technically you could... but... that's not the point. http://sourceforge.net/projects/zipcodedb has a Raw ZIP code dump... It has a little more data than just zip, city, state... I don't know what it means, but maybe you would... Sorry, it's

[PHP] telnetty/phpy/unixy thing

2001-07-24 Thread Ben Bleything
Hey all... I tried sending this earlier... accidentally sent it to [EMAIL PROTECTED], then tried bouncing it to the write address... anyway, apologies if it didn't work correctly. Anyhoo... I'm trying to get a piece of information from a server in the field that responds to a certain command

Re: [PHP] Destroy object

2001-07-24 Thread Ben Bleything
My guess would be you can unset() it... but, hey.. it's a guess. On Mon, 23 Jul 2001, ROsen wrote: Hi, how can I destroy an object created with new ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] highlighting keywords problem

2001-07-24 Thread Ben Bleything
Why not do something that parses the text, and put's SPAN ... tags around the text, and use a stylesheet to highlight it? The problem (that I can find) is that you are using eregi_replace(), which is case-insensitive. You may need to do something like strpos() to find the beginning and ends of

Re: [PHP] PHP Execution Functions

2001-07-24 Thread Ben Bleything
check http://www.php.net/manual/en/features.safe-mode.php I suspect that the problem is that the files you are trying to run are not owned by the same user as the webserver user... that page should give you details on this. Good luck, Ben On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote: Hello

Re: [PHP] php in html-- what gives?

2001-07-24 Thread Ben Bleything
Put it in a .php file. Your webserver probably doesn't interpret PHP in HTML files (as is proper). If it MUST be in a HTML file, you'll have to set up your webserver to interpret php in html files... that process depends on your webserver. Ben On Tue, 24 Jul 2001, CGI GUY wrote: I'm trying

RE: [PHP] Force new page in browser and wait commands

2001-07-19 Thread Ben Bleything
You could do something like print()'ing or echo()'ing whatever you want into a file, and then sending a header(Location: newpage.php)... just in case you haven't already figured out a solution. By the way, this will not happen on the client end. PHP is server interpreted, so anything you do

RE: [PHP] days

2001-07-19 Thread Ben Bleything
Could you please be quite a bit more specific? It's difficult to diagnose the problem without really knowing what it is = -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 4:40 PM To: [EMAIL PROTECTED] Subject: [PHP] days The employees

RE: [PHP] Confirmation Requester

2001-07-19 Thread Ben Bleything
I'm not sure if this solution is not what you want to do or not... but what I've done is to essentially send information identifying the info to be deleted to another page (which you could pop up using jscript or target=_blank), which has yes or no buttons. If you click the yes button, it does

RE: [PHP] string search

2001-07-18 Thread Ben Bleything
http://php.net/manual/en/function.strpos.php -Original Message- From: Joseph Bannon [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 7:46 AM To: PHP (E-mail) Subject: [PHP] string search I need a search function (if statement) that performs a search on a string and if the string

RE: [PHP] RPM Install #6 still doesn't work

2001-07-18 Thread Ben Bleything
Under RedHat 7.1, if you installed apache and php from the RPMs, you should not have to change anything, other than maybe telling it to serve up index.php pages. The thing about MySQL from the RPM under that distro is that the server is not started by default... if you haven't already, use

RE: [PHP] REGEXP

2001-07-18 Thread Ben Bleything
Why don't you explode(;,$header); ?? Ben -Original Message- From: Adrian D'Costa [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 14, 2001 2:54 AM To: php general list Subject: [PHP] REGEXP Hi, I am trying to capture the Header from a mail for my webmail using php and pop3. The

RE: [PHP] Wget and PHP

2001-07-16 Thread Ben Bleything
Do you mean to suck down the pre-interpreted scripts from a remote server? Can't be done. The server interprets the scripts long before they ever get put on the network. Your best bet will be to e-mail the admin and ask = Ben -Original Message- From: Clayton Dukes [mailto:[EMAIL

[PHP] Request for help =

2001-07-16 Thread Ben Bleything
Hey everybody, I've been hacking away on some scripts to do various things (primarily, a job listing and faculty listing database for my work, Oregon State University), and I've got to admit, I'm pretty new to this stuff, and a lot of it I'm just hacking away at. For instance, today, I threw

RE: [PHP] What the heck is this

2001-07-11 Thread Ben Bleything
mockAck! The travesty! Opportunities for OOP are literally everywhere! = = Ben -Original Message- From: Adam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:26 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] What the heck is this ahh so it's for classes, then i'm fine

RE: [PHP] Store uploaded files in MySQL-BLOB

2001-07-10 Thread Ben Bleything
Check out http://www.phpbuilder.com/columns/florian19991014.php3. I've been using it to maintain image galleries. Works like a champ. My guess would be that any version of php will upload multiple files... just use multiple variables = Good luck and let us know, Ben -Original

RE: [PHP] How to fetch a group by Query?

2001-07-10 Thread Ben Bleything
Did you try 'SELECT categorie,item FROM your_table GROUP BY categorie'? Ben -Original Message- From: Frédéric Mériot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:41 AM To: PHP General List Subject: [PHP] How to fetch a group by Query? Hello (again) I've got a query which

RE: [PHP] PHP as a shell script

2001-07-09 Thread Ben Bleything
It's simple. Find your php binary (or build one if you don't have one)... I think 'which php' will find it. Then, write a php file with '#!/path/to/php -q' at the top. Use any one of the various execution methods to run your programs. Done! I've been doing this for quite a while. I find it

Re: [PHP] Hiding password in a class file (object-oriented programming)?

2001-07-09 Thread Ben Bleything
put ?php ? tags around the file you include, and it will parse it as PHP = I'm doing this now. I have a bunch of files in a subdir of the published directory, that contain functions and definitions to do these things, and I include them at the beginning of each file. But, you do need ?php ?

RE: [PHP] Re: Running PHP as a cron job....

2001-07-09 Thread Ben Bleything
Someone yesterday also suggested putting them in a web-accessible location, but having lynx come by and run them. That seemed pretty cool = Good luck, Ben Quoting Chadwick, Russell [EMAIL PROTECTED]: You can still run php... I put my cron scripts in a directory on the web server, just

RE: [PHP] open_basedir

2001-07-08 Thread Ben Bleything
Ulrich, Pretty sure that the way to fix this will be to make sure that PHP just can't read those files... so that the apache (or whatever server) user that runs the PHP [module/binary] doesn't have access to read them. If you are concerned specifically about /etc/passwd, shadow it. You can

RE: [PHP] can't generate gif!!!

2001-07-08 Thread Ben Bleything
Also, if you don't need to do this on the fly (or even if you do, in certain cases) just use 'convert', a standard unix tool (fairly standard, anyway). So if, for instance, your users are uploading a gif, and you need a png (so that you can tweak with it), you could write it to a file, and then

RE: [PHP] can't generate gif!!!

2001-07-08 Thread Ben Bleything
] can't generate gif!!! I thought convert was an imagemagick command, rather than unix by default? could be wrong tho... - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 5:23 PM Subject: RE: [PHP] can't generate gif!!! Also

RE: [PHP] mcrypt

2001-07-08 Thread Ben Bleything
Have you made sure that the php on the command line and the php that apache is using are indeed the same one? It's possible that apache is looking at a module somewhere and that the php on the command line is the binary you built. Just a thought. Ben -Original Message- From: Power

RE: [PHP] Question about how to do this...

2001-07-08 Thread Ben Bleything
Use a database. With mysql, you can store the text into a table with primary key called 'page' or something like that, and a text field of some sort. Then, do mysql_query(SELECT pagetext FROM website WHERE page=$page;); = Dive into it. It's easier than it looks. Ben -Original

RE: [PHP] Question about how to do this...

2001-07-08 Thread Ben Bleything
will reduce the size (and maintenance cost) of your index.php page, while being fast (as Mark says). Ben -Original Message- From: Mark Charette [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 2:05 PM To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mail)' Subject: Re: [PHP

RE: [PHP] Question about how to do this...

2001-07-08 Thread Ben Bleything
this... so the switch statement idea works I guess. sounds good. -Original Message- From: Mark Charette [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 5:05 PM To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mail)' Subject: Re: [PHP] Question about how to do

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
How are you executing the script? Does it come by and run 'php yourscript.php' or does the script have a shebang ('#!/usr/bin/php') in it? I've found that works well... just put that as the first line, and it behaves as a shell script (after you make it executable, of course) Ben

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:57 PM To: Ben Bleything; [EMAIL PROTECTED] Subject: Re: [PHP] Running PHP as a cron job Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/mail.php

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
Interesting method, with the lynx... I imagine that if you've only built the DSO, then that would be the way to do it.. if it worked. My guess would be, you would have to do lynx 'http://localhost/path/to/script/script.php' to force it to go through the server. TO be totally honest with you,

[PHP] Mosinskis's autoreply

2001-07-08 Thread Ben Bleything
Just out of curiosity, is everyone else receiving auto-replies from Peter Mosinskis when they post to the list? I know I am. = Ben

RE: [PHP] Mosinskis's autoreply

2001-07-08 Thread Ben Bleything
That's what I thought. Great. I just wanted to make sure that I wasn't doing something else to provoke his mailer = Ben -Original Message- From: Matthew Loff [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 5:19 PM To: 'Ben Bleything'; [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] easy mysql question

2001-07-08 Thread Ben Bleything
Do you mean to output the current structure of the table? Check out http://www.mysql.com/doc/m/y/mysqldump.html. Mysqldump will do that for you... If you mean a syntax reference, check www.mysql.com. If you didn't mean either of those things, Sorry = Ben -Original Message- From:

RE: [PHP] url without a query string?

2001-07-08 Thread Ben Bleything
A shot in the dark would be to use HTTP Post instead of Get... but, I don't know http. -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:22 PM To: [EMAIL PROTECTED] Subject: [PHP] url without a query string? the problem i have a page that

RE: [PHP] url without a query string?

2001-07-08 Thread Ben Bleything
in the code . . .' And it continued until they reached 0 - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: 'Jon Yaggie' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 09, 2001 11:25 AM Subject: RE: [PHP] url without a query string? A shot in the dark would be to use HTTP

RE: [PHP] Question about how to do this...

2001-07-08 Thread Ben Bleything
. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: [EMAIL PROTECTED]; 'PHP General List (E-mail)' [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 5

RE: [PHP] Question about how to do this...

2001-07-08 Thread Ben Bleything
: Ben Bleything [EMAIL PROTECTED] wrote: I believe (and I'm sure someone will correct me if I'm wrong) that whenever you 'include' or 'require' a file, it drops to regular HTML mode... so, yes, you will need to use ?php tags at the beginning and ? tags at the ends = Think of the behavior