RE: [PHP] An idea for a PHP tool

2002-01-03 Thread Jason Murray
Like google has it's toolbar, why not have a PHP Manual toolbar? That would be *great*. Just type in the function name and hit go and the manual comes up. You could probably work a bit of javascript magic in a bookmark to do the same thing. I've seen bookmarks that pop up a javascript

[PHP] User-friendly URI's

2002-01-03 Thread Mike Eheler
http://www.somesite.com/news/2002/01/02/keyword I've seen some sites do this with other scripting languages (maybe even PHP.. I just don't know).. I like the look of this *way* better. Anyone have any insight as to how I can make that work with an Apache 1.3.xx + PHP 4.1.x setup? news would

[PHP] MCrypt and Encrypting Data

2002-01-03 Thread Devin
Dear PHP Users, I am trying to take like an e-mail message and then encrypt it into a database and then be able to decrypt it and get the same result back. I have been unsuccessful in doing so. I have libmcrypt 2.5.6 installed, I also installed mhash 0.8.13 and have PHP compiled to support both

[PHP] Time Accounting with Session Management

2002-01-03 Thread Dennis Moore
Does anyone know of any good examples of implementing time accounting with session management? I want to be able to restrict the number of hours a particular user can view a site. /dkm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: array_multisort?

2002-01-03 Thread Emile Bosch
waah! You hijacked my topic! :-) Sebastiaan Timmers - Bean It [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi List, I'm having a problem sorting the following array: $product = array($id, $title, $price); $shop[] = $product; I want the array 'shop' to

RE: [PHP] User-friendly URI's

2002-01-03 Thread Jason Murray
news would actually be a PHP script, of course. I know how to handle /2002/01/02/keyword as parameters, my question is on making news be interpreted through PHP. Off the top of my head... You could either use a .htaccess to force Apache to recognise news as a PHP script, or you could use a

[PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Tom Beidler
So far nothing seems to work which leads me to believe there's something else wrong. Here's what I've tried $service_type_insert = $x['926service_type']; //works fine when I hard code a value in and returns proper value $service_type_insert = $x[$$keyservice_type]; //returns empty even

RE: [PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Jason Murray
So far nothing seems to work which leads me to believe there's something else wrong. Here's what I've tried $service_type_insert = $x['926service_type']; //works fine when I hard code a value in and returns proper value $service_type_insert = $x[$$keyservice_type]; //returns empty

Re: [PHP] User-friendly URI's

2002-01-03 Thread Mike Eheler
A 404 ErrorDoc would still reply with a 404 code, which could mess up some search engines. I was thinking of the .htaccess solution, but I'm not sure if that's possible to force only certain files or perhaps all files in just a certain directory to all be application/x-httpd-php? I guess

RE: [PHP] An idea for a PHP tool

2002-01-03 Thread Christopher William Wesley
On Fri, 4 Jan 2002, Jason Murray wrote: I've seen bookmarks that pop up a javascript input window and then use the input in the resulting URL. So, take the manual query via javascript input and then append it to the www.php.net url. There are tips on the php site for making the

[PHP] Re: how can I add a variable to this sample

2002-01-03 Thread George Nicolae
$x[$key.'service_type']; -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com Tom Beidler [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... So far nothing seems to work which leads me to

RE: [PHP] An idea for a PHP tool

2002-01-03 Thread James Cox
You can achieve something like this by adding the following to your links bar: javascript:void(srch=prompt('What are you looking for?',''));if(srch){self.location.href='http://php.net/'+srch}; (drag the current url to the links bar, and then right-click and select properties, then paste

RE: [PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Martin Towell
$service_type_insert = $x['${key}service_type']; //returns empty even though I know a value is there change the single quotes to double, thusly: $service_type_insert = $x[${key}service_type]; 'cause PHP is using the literal ${key}service_type and not interpreting it -Original

[PHP] MCrypt and Encrypting Data (fwd)

2002-01-03 Thread Devin
Dear PHP Users, I am trying to take like an e-mail message and then encrypt it into a database and then be able to decrypt it and get the same result back. I have been unsuccessful in doing so. I have libmcrypt 2.5.6 installed, I also installed mhash 0.8.13 and have PHP compiled to support both

RE: [PHP] User-friendly URI's

2002-01-03 Thread Jason Murray
A 404 ErrorDoc would still reply with a 404 code, which could mess up some search engines. Not true, try this: www.inww.com/ifdbnifoudbvfd This is actually produced by ErrorDocument 404 /404.php3 in our Apache configuration, and 404.php3 is a PHP script that sends the neccessary stuff to be

[PHP] Re: User-friendly URI's

2002-01-03 Thread Philip Hallstrom
Why not just make the script name news.php and not worry about it? On Thu, 3 Jan 2002, Mike Eheler wrote: A 404 ErrorDoc would still reply with a 404 code, which could mess up some search engines. I was thinking of the .htaccess solution, but I'm not sure if that's possible to force only

[PHP] RE: User-friendly URI's

2002-01-03 Thread Philip Hallstrom
True, but if I remember right, the hit will end up in your error_log not in your access_log. -philip On Fri, 4 Jan 2002, Jason Murray wrote: A 404 ErrorDoc would still reply with a 404 code, which could mess up some search engines. Not true, try this: www.inww.com/ifdbnifoudbvfd This

[PHP] RE: User-friendly URI's

2002-01-03 Thread Jason Murray
True, but if I remember right, the hit will end up in your error_log not in your access_log. Ah. Bugger. But since this would require messing with your Apache config you could adjust that anyway surely? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: User-friendly URI's

2002-01-03 Thread Mike Eheler
I don't want to mess with the whole site, just a file or 10, or one directory, etc. Mike Jason Murray wrote: True, but if I remember right, the hit will end up in your error_log not in your access_log. Ah. Bugger. But since this would require messing with your Apache config you could

[PHP] Re: User-friendly URI's

2002-01-03 Thread Mike Eheler
That's the whole point of this thread.. that's what I want to avoid. I want to have a URI that is easier to remember, and less ugly, and also provides a sense of security (even if it is only a faint sense) through obscurity. Mike Philip Hallstrom wrote: Why not just make the script name

[PHP] RE: User-friendly URI's

2002-01-03 Thread Philip Hallstrom
I don't know... not that I know of, but maybe. The one time I did it I wasn't really interested in the apache logs (the logging all happened in the db). I think your best bet is to use news.php, or configure apache to force news to be interpreted by PHP, or use mod_rewrite to rewrite the urls

Re: [PHP] An idea for a PHP tool

2002-01-03 Thread Mike Eheler
Through suggestions of people here is the code I produced for a bookmark: javascript:void(srch=prompt('Function Name?',''));if(srch) {self.location.href='http://download.php.net/search.php?pattern=' +srch+ 'show=quickref';}; Of course that should all go on one line. That is a good hack for

[PHP] Re: User-friendly URI's

2002-01-03 Thread Philip Hallstrom
You could always name the file news.mike and then tell apache that .mike is a PHP extension :) -philip On Thu, 3 Jan 2002, Mike Eheler wrote: That's the whole point of this thread.. that's what I want to avoid. I want to have a URI that is easier to remember, and less ugly, and also

[PHP] Problem with Printer-friendly script

2002-01-03 Thread ski-info
I am in the process of producing a script which will allow me to produce printer-friendly versions of my dynamically produced web pages. For the most part it is working but take a look here... www.ski-info-online.com/skiResort-print1.php?id=Alpbach If you click the Print Review button it all

Re: [PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Tom Beidler
No more callers. We have a winner! Thanks to all for your input! From: Geo [EMAIL PROTECTED] Date: Fri, 4 Jan 2002 02:27:45 +0200 To: Tom Beidler [EMAIL PROTECTED] Subject: Re: how can I add a variable to this sample $x[$key.'service_type'];. please tell me if it works. Best

[PHP] File Upload Question - Previewing .jpgs

2002-01-03 Thread Anthony Ritter
To all, The following is a file upload question using PHP. I am able to upload a file to my server with the following script. (see below) It's in two parts - the first is a html form and the second is the php script which takes the variable $img1_name. However, I'd like to check if, in fact,

RE: [PHP] More on images...

2002-01-03 Thread Matthew Walker
I solved it using Javascript to get the referrer of the parent doc, and pass it as a get request. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Matthew Walker Sent: Thursday, January 03, 2002 3:46 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] More

Re: [PHP] Session troubles

2002-01-03 Thread Sean LeBlanc
On 01-02 16:06, Jaime Bozza wrote: Returning false is invalid for the session read function, and has caused *MANY* issues with PHP and Sessions. (Check the archives as well as the bugs database. I have a couple in there myself) Change: return false; To: return ''; And things

Re: [PHP] User-friendly URI's

2002-01-03 Thread Jonathan David Edwin Wright
It's actually alot easier that you think! for the news file, just create a file called 'news' (minus ' of course! ;) in your http root, then create (or append) a .htaccess with the following lines: Files news ForceType application/x-httpd-php /Files That tells Apache to parse news via

Re: [PHP] File Upload Question - Previewing .jpgs

2002-01-03 Thread Bogdan Stancescu
That's a browser/image type issue. If you're trying it with a JPEG image (as the message title suggests) then it's a browser issue -- your browser doesn't handle JPEG files due to local settings, and starts up the paint program instead. If you're trying with some other image type (such as TIFF

RE: [PHP] User-friendly URI's

2002-01-03 Thread Opec Kemp
You will need to use the following techniques: * In Apache you will need to enable mod_rewrite module http://httpd.apache.org/docs/mod/mod_rewrite.html this allows you to remap URI to any script, in your case you'd probably want and request to /news to be mapped to for example /news.php etc. *

Re: [PHP] Regular Expression

2002-01-03 Thread [-^-!-%-
I apologize for the repeats. As I mentionned before, I've been having problems with this list. I believe everything is working fine, now. -john On Thu, 3 Jan 2002, Jim Lucas [php] wrote: I have seen this question reposted for the past week. now why don't you just work with the entire

[PHP] Re: Extract a string from a string

2002-01-03 Thread qartis
Thank you very much! -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: User-friendly URI's

2002-01-03 Thread php3
Addressed to: Mike Eheler [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Mike Eheler [EMAIL PROTECTED] Thu, 03 Jan 2002 16:26:53 -0800 That's the whole point of this thread.. that's what I want to avoid. I want to have a URI that is easier to remember, and less ugly,

[PHP] session question (4.1.1)

2002-01-03 Thread Jon Niola
I am trying to implement a user authentication/login system using PHP 4.x's built in session functions. Upon a successful login, there is a session_register('uid','uname','status'). On pages that require someone to be an authenticated user I check against HTTP_SESSION_VARS['uid'] to make sure

Re: Re: [PHP] file uploading = dumping into ram?

2002-01-03 Thread David
thanks, i know what u mean, but what if you have to upload bigger files? is it possible that maybe the next php release will have a option to auto write the uploading file to disk(if the file being uploaded is bigger than a certain size) while uploading instead of slurping the entire file

[PHP] Re: session question (4.1.1)

2002-01-03 Thread David
how did u check? with a if? u should use the session_is_registered function instead, http://www.php.net/manual/en/function.session-is-registered.php if(!session_is_registered(\user\)){ print \invalid user\; exit; } // your other code here and yes, turning off register globals is a good idea

[PHP] draw image graph with uptime command

2002-01-03 Thread Daniel Masur
what i want to do is, parsing the uptime command in suse, get the stats for 1, 5 and 15 minute cpu utilisation, and draw an image. just like the taskmanager in win windows 2000, xp, and nt.anybody did this before? should look like this: / |

RE: [PHP] Problem with Printer-friendly script

2002-01-03 Thread Torrent
Oh, btw, the data is extracted from a MySQL database. How do you see that affecting the problem? Tx Torrent www.ski-info-online.com -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: 04 January 2002 01:30 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] Problem with Printer-friendly script

2002-01-03 Thread Torrent
Thanks Miles, I think you are right regarding them being artifacts in the data stream. I have been searching the Net for similar problems but there is surprisingly little around for fsockopen(), even php.net's manul page doesn't have any notes contributed by any users. I will certainly try the

<    1   2