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 t

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]

[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: / |

[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 ide

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 int

[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: [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

[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] 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 th

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] Problem with Printer-friendly script

2002-01-03 Thread Miles Thompson
It's reasonably fast in Internet Explorer, and didn't complete in Netscape 4.7. The characters I saw were similar to yours, except that I saw fd0 (the floppy!?) instead of fd6. Could they be artifacts in the data stream? Does the initial page, www.ski-info-online.com/skiResort-print1.php?id=Al

Re: [PHP] An idea for a PHP tool

2002-01-03 Thread David Minor
It's also worth noting here that typing a keyword (or maybe it's just function names?) in place of a directory after www.php.net does the same thing. ie, 'www.php.net/extract' takes you to the extract page in the manual. HTH, dm Mike Eheler wrote: >Through suggestions of people here is the code

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 for

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: ForceType application/x-httpd-php That tells Apache to parse news via PHP. As what you'v

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 ''; > > An

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 o

[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, t

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. > >

[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

[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 > p

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 no

[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

[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 "n

[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 >

[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 PR

[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 > >

[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

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

[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] 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 Messag

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

[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 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 quick-refer

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 that

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]; //retur

[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 though

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 cou

[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 arra

[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 addit

[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] 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

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] An idea for a PHP tool

2002-01-03 Thread Mike Eheler
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. One for Moz & one for IE I'm sure would be appreciated. I'd do it myself, but I have not the ability to code in C (or C++ for that matte

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

2002-01-03 Thread Philip Hallstrom
$service_type_insert = $x[${key}service_type]; should work. On Thu, 3 Jan 2002, Tom Beidler wrote: > I have a large form that I would like to edit a number of records. I'm > putting all of the fields into one array and then I would like to pull the > fields independently from a loop. > > > Here

[PHP] Re: More on images...

2002-01-03 Thread Mike Eheler
$HTTP_SERVER_VARS['HTTP_REFERER'] or (php 4.1.x) $_SERVER['HTTP_REFERER'] Mike Matthew Walker wrote: > Related to my last question about the cookies in images, is there any > way to get the referrer from the calling page without passing it as an > argument to the image generation script? >

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

2002-01-03 Thread Tom Beidler
I have a large form that I would like to edit a number of records. I'm putting all of the fields into one array and then I would like to pull the fields independently from a loop. Here's part of the loop foreach ($z as $key => $value) { $service_type_insert = $x['$keyservice_type']; W

Re: [PHP] XML Parsing Problem

2002-01-03 Thread Ben Gollmer
Huh - I guess it could be useful. I still think this should be an option you could set with xml_parser_set_option(), or something. In case anyone is interested, I solved the problem by creating a new global variable, $previousTag. Each time my character parsing function is called, it compares

[PHP] Re: Recursive Threading

2002-01-03 Thread Philip Hallstrom
There's a couple of ways you could do this... - search zend.com and other PHP sites for something similar :) - pick up Joe Celko's "SQL for Smarties" which talks about building trees and graphs in SQL (which is what this is)... this can get kind of complicated though. or... - modify your tabl

[PHP] Re: More on images...

2002-01-03 Thread Joe Webster
$GLOBALS[ "HTTP_REFERER" ]; "Matthew Walker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Related to my last question about the cookies in images, is there any way to get the referrer from the calling page without passing it as an argument to the image genera

RE: [PHP] More on images...

2002-01-03 Thread Matthew Walker
Buh. That's the problem. There's no assurance that in will be used from a PHP script, so I can't do that. Mrrr. Let me explain what I'm doing, and someone can pipe up if they have a better idea. I'm writing a tracking module for a shopping cart system, so that we can track where people came to o

[PHP] Re: APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle
Never mind :) I deleted the source directory and untared it again. I forgot I had been playing around in there a little too much LOL. Louie, you're the best! Everything works great now! Stephen "Stephen Loeckle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP] Has anyone tried Serlient?

2002-01-03 Thread Andrew Chase
Per Triplehash's website at http://www.triplehash.com/serlient: "Triplehash Serlient lets you package, run and distribute your PHP and CGI-based websites into Windows software. Serlient does its work by combining intelligent web-server simulation software and web-browsing (Internet ExplorerR) ca

Re: [PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread David Yee
Here's the function I came up with- seems to work: //finds all occurrences of $char in $temp and returns char positions in an array function char_positions($temp, $char) { while (strpos($temp, $char) !== FALSE){ //note the two '==' $found = strpos($temp, $char); $result[] = $f

Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle
Configure output in case it's needed: loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working

Re: [PHP] email user file upload

2002-01-03 Thread steph
Ive seen this done with at least 2 scripts on hotscripts.com. http://www.hotscripts.com/Detailed/6329.html (Jack's Formmail, which is the one I use) and there's another but I cant seem to find it. Maybe check the code on these. Steph - Original Message - From: "toni baker" <[EMAIL PROTECT

Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle
Thanks Louie! You rock! I can get a ./configure to work now, BUT (ack!) it bombs on the make now :( here's the output: (The next message will be the configure output in case it's needed) Making all in Zend make[1]: Entering directory `/root/php-4.1.1/Zend' make[1]: Nothing to be done for `all'. m

[PHP] Re: Sending Generic TCP/IP Data

2002-01-03 Thread Jonathan Hilgeman
Possibly - I've hit a small stop for a bit. My goal is to create a PHP API for PsiGate/LinkPoint/CardService. I will let everyone know if anything comes up. Thanks! - Jonathan "Laserjetter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > use fsockopen to open

Re: [PHP] If Statement with more than one conclusion

2002-01-03 Thread Adam Baratz
Switch statements work well for these situations as well. They might be faster than checking for the item in a list from an array since an array must be created and searched through. General programming tip: your method *definitely* wouldn't work. The or operator has precendence over the == ope

[PHP] Re: Sending Generic TCP/IP Data

2002-01-03 Thread LaserJetter
use fsockopen to open a socket on the host and call it $f then fwrite($f,$data)?? would that work? LJ "Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a host and a port and I BELIEVE that the protocol is HTTPS but I'm > not sure. In t

[PHP] Recursive Threading

2002-01-03 Thread Jonathan Chum
I'm using recursive threading for a simple thread board script, but the problem is the # of queries needed to execute. That is, once given the main thread post, it'll have to find all the posts where the parentID matches the current ID, then requery again for each of the post. So I'm trying to di

[PHP] email user file upload

2002-01-03 Thread toni baker
I would like my php script to e-mail a file upload. Can someone give me an example of how this might be done? Thanks __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- PHP General Mailing List (http://www.ph

[PHP] More on images...

2002-01-03 Thread Matthew Walker
Related to my last question about the cookies in images, is there any way to get the referrer from the calling page without passing it as an argument to the image generation script? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked

Re: [PHP] printing php variable into html > print $result; ?

2002-01-03 Thread Philip Olson
A quick rewrite of your code: "; } ?> Your question was how to print the query, in this case you'd just print $sql. That was the point of the above but I got a bit carried away :) Oh, mysql_error() can be very useful for debugging. Regarding the type resource, have a look here: http://ww

[PHP] Re: Form Validation class

2002-01-03 Thread Manuel Lemos
Hello, Daniel Harik wrote: > > Hello guys, > > at moment i'm reading "Hack Proofing your web apps" book, but it makes > me scared, i have seen a class from newbienetwork.net(can't find it > now), that validates > user input, things like telephone number, state, country , email, and > also can c

[PHP] Sending Generic TCP/IP Data

2002-01-03 Thread Jonathan Hilgeman
I have a host and a port and I BELIEVE that the protocol is HTTPS but I'm not sure. In the event that it's not using HTTPS protocol - how would I go about sending just TCP/IP packets through a socket to the host, since cURL only supports certain protocols? - Jonathan -- PHP General Mailin

Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread louie miranda
> If you compile your php w/mod_so support, hm. it should work > but anyway, just try to compile it again if u have time. i mean apache :) sorry.. - Original Message - From: "louie miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 5:17 AM Subject: Re: [P

Re: [PHP] printing php variable into html > print $result; ?

2002-01-03 Thread charlesk
something like someColumnInTable; echo $row->someOtherColumnInTable; } ?> -- Original Message -- From: "louie miranda" <[EMAIL PROTECTED]> Date: Fri, 4 Jan 2002 04:45:57 +0800 Hi, is it possible to print the sql query? i mean i want to print the output

Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread louie miranda
Hi, try to check if apxs is present in your $apache/bin/ directory. "The output of /usr/local/apache/bin/apxs follows ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or directory configure: error: Aborting" If you compile your php w/mod_so support, hm. it should work but a

[PHP] APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle
I am having a problem compiling the php module for apache. I have mod_so.c enabled: Compiled-in modules: http_core.c mod_so.c suexec: disabled; invalid wrapper bin/suexec I don't understand the last line though. Hopefully it's not a a problem. I am running perl 5.6.1 freshly downloaded and

Re: [PHP] printing php variable into html > print $result; ?

2002-01-03 Thread Mehmet Kamil ERISEN
use $sql = "select .. "; $result = mysql_query($sql); echo $sql; --- louie miranda <[EMAIL PROTECTED]> wrote: > Hi, is it possible to print the sql query? i mean > i want to print the output of the command "SELECT * FROM > members;" > and output it into html, i tried > > print $result; -- i

[PHP] Session Timeout

2002-01-03 Thread Ye Tun
What is the optionin php.ini for session timeout? here is my session setting. session.save_handler = files ; handler used to store/retrieve data session.save_path = /home/apache/newmob/tmp; argument passed session.use_cookies = 1 ; whether to use cookies session.name

Re: [PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread David Yee
Thanks Kevin- yeah I guess I'll have to chop up the string. David - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "David Yee" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 03, 2002 12:30 PM Subject: Re: [PHP] find all the numeric positions of a charact

Re: [PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread Kevin Stone
SPLIT to the rescue! Split tears up your string into lists (arrays) which you can cycle through and extract normaly. So this is going to look like hell but here we go... http://foo.bar>test"; $str_list1 = split ('<', $str); // Note: $str_list1 now == array ("a href=http://foo.bar>", "b>test",

[PHP] printing php variable into html > print $result; ?

2002-01-03 Thread louie miranda
Hi, is it possible to print the sql query? i mean i want to print the output of the command "SELECT * FROM members;" and output it into html, i tried print $result; -- it gives me different output.. > Resource id #2 ty, louie... # PHP SCRIPT ###

[PHP] PHP XML with Dynamic Content

2002-01-03 Thread Emile Bosch
Hi a lot of todays proffesional content management systems use XML, now i was wondering how it's possible to mix XML with Dynamic Content, or content which is change sensitive, IE A shop, or an auction, let's say you have a shop with 1000 products, how am i gonna mix this in the XML? Does anyone

Re: [PHP] php+mysql simple query help me pls! ty.

2002-01-03 Thread Mehmet Kamil ERISEN
I hope I am not wrong, but the problem is with the mysql_result() functions. Instead, I would use: whilie ($myrow=mysql_fetch_array($result)) { //put whatever you like here. } and instead of mysql_result($result,0,"asl") $myrow["asl"] I hope this helps. from the manual http://www.php.net/manu

[PHP] Getting Sablotron to work on Windows 2000 w/Apache

2002-01-03 Thread Dan Lasaga
I am having great dificulty getting the php_sablot.dll to work on my system: My setup: Windows 2000 Apache 1.3 php 4.10 extension_dir = c:\php\extensions extension=php_sablot.dll I have confirmed that sablot.dll and sabcmd.exe are in my path and are functioning correctly The error I get when re

[PHP] Re: [PHP-DB] php+mysql simple query help me pls! ty.

2002-01-03 Thread louie miranda
yes, i forgot something, this = mysql_select_db("mydb",$db); i did not specify my db name. thanks :) louie - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'louie miranda'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 04,

[PHP] web page visitor simulation

2002-01-03 Thread Jason Bell
Hi! I would like to simulate a user, browsing to a webpage and logging in via a web form. is there a way to do this? I don't have curl installed, although I'm going to open a ticket asking if my host will install it I tried using the Snoopy class, but it doesn't seem to work... I think

[PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread David Yee
Hi guys. What is the best way to find all the numeric positions of a character that appears in a string multiple times? E.g. let's say I have the following string: $str = "http://foo.bar>test"; And I want to parse the string and extract everything between <>. Now if the string only had a sing

Re: [PHP] Re: PHP scripts timeout

2002-01-03 Thread charlesk
I have looked at the post variables and sometimes it times out when nothing is passed to it. Either through post get or cookie.(I know this from looking at the phpinfo that I dump everytime a script runs too long.) Its got me stumped. Hopefully someone someday will figure it out. Thanks tho

[PHP] php+mysql simple query help me pls! ty.

2002-01-03 Thread louie miranda
Hi, can someone help me here! :( I can't query the data on my sql from php. db is fine, i couldnt see the prob in php! pls help, ty. # MSQL ### mysql> desc members; +--+-+--+-+-++ | Field

[PHP] test, pls del

2002-01-03 Thread louie miranda
test -- 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]

[PHP] application variable

2002-01-03 Thread Ye Tun
Do we have application variable in PHP as in ASP? I have a small database running with user name and password kept in MySQL database. Once user is login, how can I prevent the same user from logging in again? REgards, Ye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP] Re: PHP scripts timeout

2002-01-03 Thread Fred
First of all, there is no need to worry about database connections, PHP does not count the time that it is waiting for database connections to complete. The best suggestion I can make is to try to determine if the scripts that time out have been passed a common post or get variable, that may be up

Re: [PHP] Re: Form Validation class

2002-01-03 Thread Daniel Harik
Hello Chris, Thursday, January 03, 2002, 10:41:34 AM, you wrote: CL> Ive seen em on zend.com, I wrote my own. I would recommend you take a look CL> at the ones on zend.com and modify it to taste. CL> -- CL> Chris Lee CL> [EMAIL PROTECTED] CL> "Daniel Harik" <[EMAIL PROTECTED]> wrote in m

Re: [PHP] Regular Expression

2002-01-03 Thread Steve Cayford
You can do as Jim says here or go back and read the manual section again for eregi and ereg. What you're trying to do should be written more like this: '; $numMatches = eregi('()',$str,$results); print("numMatches: $numMatches \n"); print("body contents: $results[2] \n"); print("all results: ")

[PHP] Re: Form Validation class

2002-01-03 Thread Chris Lee
Ive seen em on zend.com, I wrote my own. I would recommend you take a look at the ones on zend.com and modify it to taste. -- Chris Lee [EMAIL PROTECTED] "Daniel Harik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello guys, > > at moment i'm reading

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

2002-01-03 Thread Chris Lee
set your max upload file size smaller then. default is 2mb max. I find that too small, I re-set mine to 5mb. I have 2g of ram on our server, 5mb isnt a worry to me. Id rather that then the slow speed of writing the file to the hd. -- Chris Lee [EMAIL PROTECTED] "David" <[EMAIL PROTECTED]>

[PHP] Warning: Unknown persistent list entry type in module shutdown (11)

2002-01-03 Thread Ed Swartz
Hi, The error message listed in the subject line is being displayed at the bottom of my HTML pages gen'd by PHP. Any hints how what might be causing this message? I looked in BUGS, FAQTS, etc not to no avail. The code uses: * ob_start(), ob_end_clean() * session variables * MySQL 3.23 Versi

Re: [PHP] easy quickie..

2002-01-03 Thread Jim Lucas [php]
$GLOBALS['HTTP_REFERER'] Jim - Original Message - From: "Kelly Meeks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 02, 2002 10:15 AM Subject: [PHP] easy quickie.. Happy New Year, Does php set a variable that tells you the url of the page that a user has just com

Re: [PHP] Regular Expression

2002-01-03 Thread Jim Lucas [php]
I have seen this question reposted for the past week. now why don't you just work with the entire thing. get the "" now once you have that, do this $str = preg_replace("", "", $str) now your $str var will only have the properties. Jim - Original Message - From: "[-^-!-%-" <[EMAIL PRO

[PHP] Form Validation class

2002-01-03 Thread Daniel Harik
Hello guys, at moment i'm reading "Hack Proofing your web apps" book, but it makes me scared, i have seen a class from newbienetwork.net(can't find it now), that validates user input, things like telephone number, state, country , email, and also can check if only letters or numbers are in text f

[PHP] PHP and OpenLDAP

2002-01-03 Thread Quinn Perkins
I have installed OpenLDAP 2.x on an OS X Server 10.1.2 box. Everything seems to be fine. I have written a simple PHP front end to modify LDAP values. I can modify values in the core.schema without any problem, but if I try to modify anything in cosine.schema or inetorgperson.schema, I get an e

[PHP] file uploading => dumping into ram?

2002-01-03 Thread David
hi all, I wes doing some file upload stuff with php when i noticed that as the file is being uploaded, the entire file is stored in ram until it\'s finished. obviously, we know the problems associated with this(use up a lot of ram for large files), i\'m just wondering, is this going to be fi

[PHP] Re: Holy Moly...

2002-01-03 Thread Julie Hull
Thanks to everyone for all the suggestions Looks like I have my work cut out for me... Happy New Year, Julie ~:) Julie Hull wrote: > Could someone please direct a total novice to the best PHP beginner news > group. Just to many to choose from ~:) > > Thank You, > Julie ~:) --

[PHP] IMP 3.0 out!

2002-01-03 Thread Mike Eheler
So is Horde 2.0. And Turba 1.0 I think Chora 1.0 is due any day, as well. Just noticed this at http://www.horde.org/ For anyone who doesn't know, Horde is an application framework built upon the PEAR style of coding. IMP is *the* webmail solution for anyone looking to provide webmail to their

[PHP] Sessions

2002-01-03 Thread Kevin P
Hi I am working on a Admin view of an Intranet site. They need to enter orders. An order can include many inventory items so I have divided it up to two pages. I have set up a first page session that passes the first page info onto the second page where the inventory items are addes to the order.

[PHP] PHP scripts timeout

2002-01-03 Thread charlesk
Every once in a while, maybe 10 times a day, scripts timeout. Different scripts, different places in the script, different IP addresses. I wrote an auto_append script that dumps the phpinfo to a file if the script ran longer than 30 seconds, and nothing is odd in those phpinfo's. Sometimes

[PHP] Help on a quick questions

2002-01-03 Thread Dan McCullough
Dynamic dropdown selection. What I need to do is two things. I need to get a list of all the parent categories, from one table, I then need to list those in the dropdown, I then need to have selected the correct parent category based on the parent_id of the subcategory. Can anyone help me th

  1   2   >