[PHP] Loading PHP module on Win98
I have a problem on intializing PHP module. I've installed PHP on my windows 98 system. I used PWS. I placed php on c:/Php. My home directory is c:/Inetpub/myfolder. This is the php.ini, Paths and Directories section : doc_root = "c:/Inetpub/myfolder" extension_dir = "c:/Php/extensions" This is the registry : [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Scrip t Map] ".php"="c:\\Php\\sapi\\php4isapi.dll" When I try phpinfo(), I received message like this : dbase: Unable to initialize module Module compiled with debug=0, thread-safety=1 module API=20001214 PHP compiled with debug=0, thread-safety=1, module API=2609 These options need to match That's for dbase module, and for the others module it gave the same result. Anyone could help me to solve this problem ? Regards; Benny. -- 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] Loading PHP module on Win98
I downloaded the distribution from www.php.net, so it's from the same distribution but it doesn't work. What should I do? Regards; Benny. -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: 30 April 2001 15:54 To: Benny; [EMAIL PROTECTED] Subject: Re: [PHP] Loading PHP module on Win98 The dbase module you are trying to install does not match the version of php. If you get the extension from the same distribution as the php modules then it should work. You can get the full distribution zip for 4.0.4pl1 from the downloads page at www.php.net at the moment. You may be able to get 4.0.5 later today if all goes to plan. Cheers PS When you do get it working you still may have problems since you have configured PWS to use the ISAPI module which you may find to be pretty unstable. I would advise use of the CGI version of PHP if things are a bit flakey. -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- 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 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] open foxpro database
I used function dbase_xxx to access foxpro database (.dbf) but it's not work. Here is my code : \n"; } } } ?> Everytime I call this page there's a message : Warning: unable to open database /home/benny/test/employee.dbf in /home/benny/htdocs/foxpro.php on line 2 I used php 4.0.4 and Visual Fox Pro 5.0. Before that I have mounted my foxpro dbf file to my linux in the /home/benny/test directory. Is there anything wrong? Anyone could help me? Regards; Benny. -- 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] problem with dbase_replace_record()
I experienced this problem when I want to replace a record in foxpro database(.dbf). First I was add a record with this syntax and it work : $record[0] = "2628"; $record[1] = "230 10 10003"; $record[2] = "MY NAME"; $record[3] = "30"; $record[4] = "3002 "; $add = dbase_add_record ($db, $record); if ($add) { echo ('Success'); } else { echo ('Fail'); } And then I want replace the record with this one, the syntax looks similar but I don't why it's not work. I wait for about 15 minutes and my browser still proceed and display nothing : $record[0] = "2628"; $record[1] = "230 10 10003"; $record[2] = "NAME"; $record[3] = "50"; $record[4] = "5002"; $change = dbase_replace_record ($db, $record, 1); if ($change) { echo ('Success'); } else { echo ('Fail'); } Anyone could help me? Regards; Benny. -- 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] Html email
Please help me. I have problem with html email. I send email to 3 email address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED] The email client for yahoo & eudoramail is their web. And for the last destination, the email client is ms outlook. The html email for yahoo & eudoramail are well received. But for the last destination the ms outlook display the wrong result like encrypted text. Below is my code and the result in ms outlook. My code : $s_to = '[EMAIL PROTECTED]'; $s_subject = 'Subject xxx'; $s_headers = "From: [EMAIL PROTECTED]\r\n"; $s_headers .= "MIME-Version: 1.0\r\n"; $s_boundary = uniqid("id"); $s_headers .= "Content-Type: multipart/alternative" . "; boundary = $s_boundary\r\n\r\n"; $s_headers .= "This is a MIME encoded message.\r\n\r\n"; $s_headers .= "--$s_boundary\r\n" . $s_headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $s_headers2 = chunk_split(base64_encode("bla...bla..."bla...")); $s_headers = $s_headers.$s_headers2.'--'.$s_boundary.'--'; @mail ($s_to, $s_subject,"", $s_headers); Result in ms outlook : Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 2773 invoked by uid 252); 22 Oct 2001 23:35:00 - Date: 22 Oct 2001 23:35:00 - Message-ID: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Subject xxx From: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary = id3bd4ad2486465 This is a MIME encoded message. --id3bd4ad2486465 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: base64 PGZvbnQgZmFjZT0iVmVyZGEhlbHZldGljYSwgc2Fucy1zZXJpZiIgc2l6ZT0i aXY+PC9mb250C90cj48L3RhYmxlPg== --id3bd4ad2486465-- Regards; Benny. -- 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] HTML email
Please help me. I have problem with html email. I send email to 3 email address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED] The email client for yahoo & eudoramail is their web. And for the last destination, the email client is ms outlook. The html email for yahoo & eudoramail are well received. But for the last destination the ms outlook display the wrong result like encrypted text. Below is my code and the result in ms outlook. My code : $s_to = '[EMAIL PROTECTED]'; $s_subject = 'Subject xxx'; $s_headers = "From: [EMAIL PROTECTED]\r\n"; $s_headers .= "MIME-Version: 1.0\r\n"; $s_boundary = uniqid("id"); $s_headers .= "Content-Type: multipart/alternative" . "; boundary = $s_boundary\r\n\r\n"; $s_headers .= "This is a MIME encoded message.\r\n\r\n"; $s_headers .= "--$s_boundary\r\n" . $s_headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $s_headers2 = chunk_split(base64_encode("bla...bla..."bla...")); $s_headers = $s_headers.$s_headers2.'--'.$s_boundary.'--'; @mail ($s_to, $s_subject,"", $s_headers); Result in ms outlook : Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 2773 invoked by uid 252); 22 Oct 2001 23:35:00 - Date: 22 Oct 2001 23:35:00 - Message-ID: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Subject xxx From: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary = id3bd4ad2486465 This is a MIME encoded message. --id3bd4ad2486465 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: base64 PGZvbnQgZmFjZT0iVmVyZGEhlbHZldGljYSwgc2Fucy1zZXJpZiIgc2l6ZT0i aXY+PC9mb250C90cj48L3RhYmxlPg== --id3bd4ad2486465-- Regards; Benny. -- 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: [PHP-DEV] Parse search string a la Google (Regular expression?)
Works like a charm, thank you! Benny "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 23:11 27.11.2002, Ernest E Vogelsinger said: > [snip] > >If I understand you correctly you want to isolate either quoted strings > >(with or without whitespace), or tokens separated by whitespace, as array > >elements? > > > >For this you would first have to isolate the first quoted sentence, then > >tokenize the part before, and loop this as long you're not done. > > > >Should work something like that: > > > > [...] > >Disclaimer: untested as usual. _Should_ behave like this: > [snip] > > I _should_ have tested. This script actually works the way you expect it to be: > > > > > function tokenize_search($input) { > $re = '/\s*(.*?)\s*"\s*([^"]*?)\s*"\s*(.*)/s'; > /* look for 3 groups: >a - prematch - anything up to the first quote >b - match - anything until the next quote >c - postmatch - rest of the string > */ > $tokens = array(); > while (preg_match($re, $input, $aresult)) { > // aresult contains: [0]-total [1]-a [2]-b [3]-c > // tokenize the prematch > if ($aresult[1]) $tokens = array_merge($tokens, explode(' ', > $aresult[1])); > array_push($tokens, $aresult[2]); > $input = $aresult[3]; > } > // $input has the rest of the line > if ($input) $tokens = array_merge($tokens, explode(' ', $input)); > return $tokens; > } > > $string = "\"search for this sentence\" -NotForThisWord > ButDefinitelyForThisWord"; > $tokens = tokenize_search($string); > print_r($tokens); > > ?> > > > The output of this script is: > > Array ( > [0] => search for this sentence > [1] => -NotForThisWord > [2] => ButDefinitelyForThisWord > ) > > > -- >>O Ernest E. Vogelsinger >(\)ICQ #13394035 > ^ http://www.vogelsinger.at/ > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php trouble
how do i get var from a url like this one http://localhost/index.php?sort=name&var2=login thanks, i have googled, and have found alot of trees but no answer :/ -- 5:06am up 4 days, 1:51, 4 users, load average: 0.25, 0.25, 0.26 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can I "download" information (file) without standard "save as" dialog ??
Hi All I am unable to find the correct solution (where to start) with this problem. We are an Open Source group developing an ECC based (elliptic curve) public key cryptography alternative to PGP. For this project we need a public database to store the public keys in with search facilities and the possibility to import the selected records to a local private database. We have tried to keep all things very open and extendable and I have tried to define an interface to the shared database that will allow it to be independent from the actual application (the database can be replaced without any changes to the database protocol). I will use MySQL and PHP for the server side work. For more information please see: http://www.egroups.com/group/pegwit or http://www.pegwit.org (not working yet) To download the current GUI front-end download: http://www.egroups.com/files/pegwit/Contributions/GUIBeast6.zip I have come to the conclusion to base it on a standard protocol like the one used in HTML and URL with web browsers. This is mainly because I then can simplify the shared database protocol to 2 basic actions (export a key(s) and import keys). All selection etc. is a job for the browser and not for the local application. The protocol is also very portable and will be easy to implement on many platforms. It is easy to export a public key record to the web server with a search URL like: (http://site.xx/?name1=value1&name2=value2 etc.) My main problem is to find a way to export the selected records from the browser and import them into the local database (you may have a solution). The only solution I have found is to pass the IP address and port with the URL when the browser is initialized and start a IP server in the local application that will wait and receive the selected records from the web server when the end user press a specific button in the selection web page (server then act as a IP client and connect to the local server to deliver the selected records) A more simple and also portable solution is to download a file with the selections made. My main problem with this approach is the "save as" dialog that will come up in all cases (you may have a workaround this problem). If the dialog is not shown up the download destination (directory) need to be passed to the server when the session is initialized so that the web browser knows where to save the information. Is this possible with PHP ??? Thanks in advance. Benny -- 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] How can I "download" information (file) without standard "save as" dialog ??
""Richard Lynch"" <[EMAIL PROTECTED]> skrev i en meddelelse 050101c0811f$0c609780$[EMAIL PROTECTED]">news:050101c0811f$0c609780$[EMAIL PROTECTED]... > > "save as" dialog that will come up in all cases (you may have a > > workaround this problem). If the dialog is not shown up the > > download destination (directory) need to be passed to the server > > when the session is initialized so that the web browser knows > > where to save the information. Is this possible with PHP ??? > > I don't think it's possible, but it really has nothing to do with PHP. > > HTTP just doesn't have that as part of its design... > Thanks for the info. Benny -- 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] How can I make a PHP script run as a background process ????
Hi All I need to have some task performed all the time in the background (database task etc.) How is this possible with PHP. I do not have direct access to the OS (can not make an application to run directly under linux). Is it possible to have a PHP script execute all the time in some way. Thanks Benny NB: Linux and Apache as system underneath. -- 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] How can I make a PHP script run as a background process ????
Thanks Richard for the info. Will try to see if I can make something work. I do think that a background job thread is missing from PHP (as standard functions etc.) Benny ""Richard Lynch"" <[EMAIL PROTECTED]> skrev i en meddelelse 06a501c084ca$19dc44a0$[EMAIL PROTECTED]">news:06a501c084ca$19dc44a0$[EMAIL PROTECTED]... > > I need to have some task performed all the time in the background > (database > > task etc.) > > How is this possible with PHP. I do not have direct access to the OS (can > > not make an application to run directly under linux). Is it possible to > have > > a PHP script execute all the time in some way. > > H. > > Do you have telnet or SSH access, and can you install a "cron" job?... > > Log in and do like this: > > crontab -l > > (That's an L for List, not 1) > > This will list your (probably non-existant) cron jobs so far. > > If that works, odds are that reading: > > man 5 crontab > > will have you pretty much hooked up on the "doing something regularly" > part... Or at least, you'll see how it could maybe work once you figure out > all those *'s and stuff. :-) > > Then you have to ask yourself, "Self, is PHP installed as a CGI binary > anywhere on this thing?" Cuz if it is, it's way more better from a purist > perspective... So, try this: > > find / -name php -print 2> /dev/null | less > > You may wanna take a coffee break right about here... It's searching your > entire ISPs hard drive for the PHP binary... > > Now, if that turns up a file that looks like it might be the php binary... > Do this: > > ls -alsh XXX > where XXX is the thing you found and make sure it's a nice big file (a meg > or two) and not just some directory or something. > > If it is, you can write a PHP script like this: > > #!/full/path/to/php -q > #your code here > ?> > > And then you can do: > chmod 775 myscript.php > > Once you do *that* you can just slide /full/path/to/myscript.php right there > into your cron list using: > > crontab -e > > You'll be in an editor, and you can put in something like this: > 0 1 * * * /full/path/to/myscript.php > and save it. > This one fires off at 1 am, every day. > > Now, if you never did find the PHP binary, all is not lost. There might be > "wget" on your server, and you can use crontab to make that *surf* to your > PHP page every day, still using crontab. > > Now, even if you can't find that wget thingie, you almost for sure have > "lynx" on your server, and you can use *that* to surf to your page every > day. > > PHP as a CGI (the first choice) is more efficient, wget after that, and lynx > last of all. > > Still, they'll all get the job done. > > Don't worry if it takes awhile to get the hang of this cron stuff -- Took me > months to figure it out the first time around (well, I had some editor > problems mixed in there too). Once you do one of them, though, you find all > sorts of nifty things that it's handy for. You don't want to get carried > away, of course, cuz cron is no magic bullet. Each of those jobs you run > takes up some work, and they can add up if you get silly about it. > > Still, all sorts of low-level maintenance and menial tasks can be automated > this way, and setting it up is not much harder than doing the task once. > But once it's going, you can cross it off your ToDo list practically > forever. > > I know that was kinda ramblin', but that's the way I was feelin' Hope it's > okay. > > Don't miss the Zend Web Store's Grand Opening on January 23, 2001! > http://www.zend.com > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > > > > -- > 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 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] sleep and usleep not working ??
Hi All I have tried to get this to work but it does not produce any output in the browser - why $i = 1; while ($i) { if(connection_aborted()) break; echo $i; echo ""; $i++; sleep(1); //usleep(1000); } It turns out that the sleep and usleep does not return as far as I can tell. If I use usleep the wait time parameter have no affect on program execution ?? Tried this on both Windows and Linux. Benny -- 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] sleep and usleep not working ??
I have to add that I am using the latest PHP version. It was Windows and Linux servers I was talking about. usleep work in the way that it return right away without any sleep time. Benny ""Benny Nissen"" <[EMAIL PROTECTED]> skrev i en meddelelse 94k0ql$em$[EMAIL PROTECTED]">news:94k0ql$em$[EMAIL PROTECTED]... > Hi All > > I have tried to get this to work but it does not produce any output in the > browser - why > > $i = 1; > while ($i) > { > if(connection_aborted()) > break; > > echo $i; > echo ""; > $i++; > > sleep(1); > //usleep(1000); > } > > It turns out that the sleep and usleep does not return as far as I can tell. > If I use usleep the wait time parameter have no affect on program execution > ?? > Tried this on both Windows and Linux. > > Benny > > > > -- > 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 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] sleep and usleep not working ??
Hi Sorry - but as far as I can tell it does not work. It still have the same strange behavior. When using sleep I have no output. Usleep has no wait time (or it may delay output a bit but not program execution) ? Benny ""Daniel Grace"" <[EMAIL PROTECTED]> skrev i en meddelelse 94m72k$qd9$[EMAIL PROTECTED]">news:94m72k$qd9$[EMAIL PROTECTED]... > ""Benny Nissen"" <[EMAIL PROTECTED]> wrote in message > 94k0ql$em$[EMAIL PROTECTED]">news:94k0ql$em$[EMAIL PROTECTED]... > > Hi All > > > > I have tried to get this to work but it does not produce any output in the > > browser - why > > > > $i = 1; > > while ($i) > > { > > if(connection_aborted()) > > break; > > > > echo $i; > > echo ""; > > $i++; > > > > sleep(1); > > //usleep(1000); > > } > > > > If you're trying to get a delayed output affect (which isn't recommended, > but would probably work in this case as long as you're not inside a table), > you'll either need to do: > > ob_implicit_flush(1); > // at the beginning of the script (use 0 to turn it back off) > > or: > flush(); // after the echo and before the sleep. > > > > Side note: When you're using PHP for shell scripts (Don't look at me like > that) and the like, ob_implicit_flush is your friend. > > -- > - Daniel Grace <http://dewin.oldbattery.com/> > > "Space may be the final frontier but its made in a Hollywood basement." > - Red Hot Chili Peppers - Californication > > > > > -- > 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 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] Problems to login via POST on a external site.
Hallo, I know that this is a little bit of topic but I don't know any better place to post my Problem. I want to automatically POST values to the site: http://clever-tanken.de , a german site to view fuleprices of gas stations in your area. I watched the traffic I captured with wireshark an found two POST values that I can't find in the HTML code. The POST values are x= and y=. You can find the block here: http://pastebin.ca/raw/255964 It is the start site where you can login to change your data. The traffic shows: user=seppl2&pass=seppl2&x=72&y=13 but I don't know where the x and y values are from. They also change every time. The full HTML you can find here: http://pastebin.ca/255968 or just log on to http://clever-tanken.de Maybe someone will find the Time to help me. You can log in with: user=seppl2 passwd=seppl2 Thanks Ben -- "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] open foxpro database
I used function dbase_xxx to access foxpro database (.dbf) but it's not work. Here is my code : \n"; } } } ?> Everytime I call this page there's a message : Warning: unable to open database /home/benny/test/employee.dbf in /home/benny/htdocs/foxpro.php on line 2 I used php 4.0.4 and Visual Fox Pro 5.0. Before that I have mounted my foxpro dbf file to my linux in the /home/benny/test directory. Is there anything wrong? Anyone could help me? Regards; Benny. Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com -- 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]