Re: [PHP] Installation problems with MySQL
Here's the deal: mysqld, the database server, has to be running and sitting there waiting for mysql, the client, to be able to talk to it. Before you can use any of the other mysql things, you *MUST* run mysqld (or safe_mysqld). So, start up an extra DOS Windows, and run mysqld. It will start up, and then just sit there. It's not hung. It's supposed to do that. It's now a database server waiting for somebody in another DOS window to do something interesting to talk to it, like mysql. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 - Original Message - From: Cesar Cuneo [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, June 25, 2001 3:59 PM Subject: [PHP] Installation problems with MySQL Hello, Can anyone please help me with MySQL installation? I am installing MYSQL on Windows 2000 version 3.23.38-win.zip But when I try to run it in the command line I receive the following statements: C:\mysqlcd bin C:\mysql\binmysql -p Enter password: ERROR 2003: Can't connect to MySQL server on 'localhost' (10061) C:\mysql\binscripts/mysql_install_db 'scripts' is not recognized as an internal or external command, operable program or batch file. C:\mysql\scriptscd.. C:\mysqlcd bin C:\mysql\binmysqladmin -password newpassword mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to MySQL server on 'localhost' (10061)' Check that mysqld is running on localhost and that the port is 3306. You can check this by doing 'telnet localhost 3306' C:\mysql\bin Please help me . Cesar -Original Message- From: infoz [mailto:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 8:38 AM To: [EMAIL PROTECTED]; Peter Van Dijck Subject: Re: [PHP] damn $REQUEST_URI $HTTP_HOST Run a page with ? phpinfo() ? on your server you'll see all sorts of goodies in there. - Tim http://www.phptemplates.org - Original Message - From: Peter Van Dijck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 25, 2001 7:10 AM Subject: [PHP] damn $REQUEST_URI $REQUEST_URI gets me home/dir/index.php but I need to get the domain name. -- 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 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] Passing an array to a C program from a php script??
I have a big array (nearly 1000 lines) that I would like to pass to a C program. I don't want to create a temporary file to pass my array (If possible ?!?), and I don't think the command line will fit my needs. Is there a way to execute a program with a php string as the standard input. Something like shell redirection 'c_program input.file' but with input.file being a php variable and not a real file ?? Any other solution ?? 2 choices: #1 (for the real hacker geek) Compile your C program *into* PHP as a function, using the PEAR stuff. You may need to use PHP's http://php.net/serialize function to turn your array into a giant string and write a C routine to unserialize it, or, by the time you get done converting your program to PEAR, it will just accept your PHP array as an argument. #2 (pretty slick, though...) Run your C program using http://php.net/psockopen and use http://php.net/fputs to spew your data at it one line at a time. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] Trapping Fatal Errors
Has anyone come up with a way to trap and log fatal PHP errors? I understand how to implement and use a custom error handler for all other error conditions, but there doesn't appear to be any way to log fatal errors (such as a parse error or errors resulting from declaring the same function name multiple times). I was only able to unearth one thread on this list pertaining to this topic and the question never seemed to get answered. If you're interested an archive of that thread is located at: http://marc.theaimsgroup.com/?l=php-generalm=98803976202673w=2 Well... Neither of these solutions is practical, much less elegant, but... I *THINK* that if you wrapped everything in an http://php.net/eval you'd be able to stick an @ in front of it and suppress parse errors... But don't quote me on that... Another option would be to write a PHP page that fetched (using fopen or file) the PHP page you really wanted, and then parsed the results looking for a PHP parse error message, and then either sending the results on out or, err, doing whatever it is you want done. Your final option, of course, is to Use the source, Luke and either (A) alter it to actually allow a higher level of error_reporting that suppresses even parse errors, or (B) whip up a try/catch mechanism to donate back to PHP-Dev in your copious spare time. Yeah, right :-) -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] Fetching binaires from an e-mail
Try Manuel Lemos mail class. I think it does that... I'm pretty sure it can *send* the attachments, so should at least give you an idea how to go about reading them. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 - Original Message - From: Nicklas af Ekenstam [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, June 25, 2001 11:09 PM Subject: [PHP] Fetching binaires from an e-mail Hi I'm currently trying to rewrite one of my old perl applications to php and everything works great except one thing: I can't figure out how to write a piece of code that will fetch and unencode all binaires, if any, from an e-mail message in an imap stream and return them so that I can save them to disk And rest assured it's not for lack of trying ;-) If anybody here has seen or written something like that and wouldn't mind sharing that code with me I'd be forever grateful. Thanks! - Nicklas -- 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] shared object not open
Try running ldconfig from your command line. I think you just run it and it does things, and it all then works... It's been ages since I did it though... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 - Original Message - From: Martin Schmidt [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, June 25, 2001 4:14 PM Subject: [PHP] shared object not open Hi, I am just starting with PHP, I installed the new version on my Suse 7.1 with apache 1.3.14, because I need a tool for accessing databases (Informix/Oracle). Everything seemed fine, until I tried to start apache, it told me: Cannot load /usr/lib/apache/libphp4.so into server: shared object not open All my investigations showed me a very kind member of bug.php.net, who told someone else, that this isn't a bug and we should connect the mailing-lists. He generously had a hint : /etc/ld.so.conf and ldconfig. In the archive of the mailing lists I found the same informations ( a little bit more informative), but my ld.so.conf is o.k. and at this point any help stops. I hope, that someone found out what's happening here and helps me. So I have: Intel Celreon 366 on Asus Mainboard, 256 MB RAM, Adaptec 2940UW with all together 20GB HD, 5 swap-Areas with 128MB each. SuSE 7.1 Prof-Edition, from this distribution I installed apache and PHP (everything working fine, but no idea how to activate informix/oracle-support) Apache says, PHP4-module installed. Thanks a lot for any help Martin Schmidt -- 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] How to get PHP to do a POST??
tried it on my own server and found that php assigns the values 'name_x' and Those are really name.x and name.y in HTTP, but since . is not allowed in a PHP variable name, you get _ instead. So UPS is using, almost for sure, name.x and name.y in their variables. (Well, they probably have something else as well, but if you give them name.x and name.y, they'll convert it like they always do.) button on my form, then all works fine, except for the fact that I can't intercept the data comming back from UPS so that I can adjust the prices. Search the archives for Rasmus' posttohost function from way, way, way back when. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] Strange error on mysql_fetch_array
How can the resource be invalid if I'm getting the results back? I'd appreciate any explaination. What results are you getting?... $connection_id = @mysql_connect ('localhost', 'root') or die('No connection.'); $database_id = @mysql_select_db ('cgcms', $connection_id) or die('No connection.'); ... $result_id = @mysql_query(DESC $table_name $field_name); I don't think DESC $table_name $field_name is valid SQL, is it?... DESC is DESCENDING in an ORDER BY clause... Perhaps if you used DESCRIBE?... Is that what you are doing?... There are built-in functions for getting the table definitions and so forth. They may work better... $row = mysql_fetch_array($result_id); # This is line 9 -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] Session over SSL
Will Session have problem when people browse from a http page to a https page and go out again? Almost for sure, yes. You'll need to transfer by hand any info that must transfer. From a security view-point the less crap you transfer to the https site the better, to avoid anybody trying to shove bad data in that will break into it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] Filtering out \ when a ' is user entered?
I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as \' How can I filter out these backslashes so they don't appear on the final public viewable page? You need those \ in there to store it into a database. If you don't use a database, you can turn MagicQuotes off in php.ini If you *do* use a database, you can use http://php.net/stripslashes to strip out the slashes. If, after turning off MagicQuotes, or calling stripslashes, you find you need them back in there after all for something, you use http://addslashes -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
RE: [PHP] RE: Events Listings
Hi Everyone, Thanks to the suggestions from everyone I got it working.. Thanks And Check it out @ http://www.alanis-morissette.com/am69/ (It's the TV Guide :-) Rick -Original Message- From: Rick Proctor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 2:04 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: Events Listings Hi Everyone, I want to thank the response I've gotten for this posts but unfortunately non of them have helped significantly. I don't know PHP that well so ideas you give me I can't implement. If someone could either A.) Do it for me :-) B.) Show some examples that directly relate to me It would be more than greatly appreciated. I can usely figure things out, but I guess I'm just slow to this. Rick -Original Message- From: Rick Proctor [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 23, 2001 9:15 PM To: [EMAIL PROTECTED] Subject: Events Listings Hello, I have a script that does TV/Tour listings for artist, I need it to sort the list automatically so that it goes in date order but I have absolutely no idea. I have put together the script with little to no PHP skills so it look pretty horrific. If you could help me out with figuring out how to fix it, it would be muchly appreciated. The code is below Rick ?php if ($max_days == ){ $max_days = 365; } $current_day = date( z); echo table border=\0\ cellspacing=\1\ cellpadding=\1\ bgcolor=\#00\\n; echo tr bgcolor=\#E5E5E5\td colspan=\6\ align=\right\balanis guide/b/td/tr\n; echo tr bgcolor=\#E5E5E5\\n; echo td align=\center\font face=\Arial\ size=\1\ bgcolor=\#E5E5E5\date/FONT/td\n; echo td align=\center\font face=\Arial\ size=\1\ bgcolor=\#E5E5E5\time/FONT/td\n; echo td align=\center\font face=\Arial\ size=\1\ bgcolor=\#E5E5E5\where/FONT/td\n; echo td align=\center\font face=\Arial\ size=\1\ bgcolor=\#E5E5E5\what/FONT/td\n; echo td align=\center\font face=\Arial\ size=\1\ bgcolor=\#E5E5E5\days till/FONT/td\n; echo /tr\n; //Create Function function create($listing, $max_days){ list ($month, $day, $year, $time,$channel,$show) = split('/', $listing); $year = 20$year; if ($channel == VH1){ $url = http://www.vh1.com;; } if ($channel == MTV){ $url = http://www.mtv.com;; } if ($channel == COM){ $url = http://www.comedycentral.com;; } if ($channel == HBO){ $url = http://www.hbo.com;; } if ($channel == HBOZ){ $url = http://www.hbo.com;; } if ($channel == HBOS){ $url = http://www.hbo.com;; } if ($channel == TRIO){ $url = http://www.triotv.com;; } $current_day = date( z); $show_day = date( z, mktime( 0, 0, 0, $month, $day, $year ) ); $time_till_event = $show_day - $current_day; if ($time_till_event $max_days){ if ($time_till_event == '0'){ $time_till_event = Today; } if ($time_till_event == '1'){ $time_till_event = Tomorrow; } if ($time_till_event 0){ return; } if ($url != ''){ $start = a href=\$url\; $end = /a; } if ($confirmed == 'yes'){ $image = images/yes.gif; } if ($confirmed == 'no'){ $image = images/no.gif; } echo tr bgcolor=\#E5E5E5\\n; echo tdfont face=\Arial\ size=\1\$start$month.$day.$year$end/FONT/td\n; echo tdfont face=\Arial\ size=\1\$start$time$end/FONT/td\n; echo tdfont face=\Arial\ size=\1\$start$channel$end/FONT/td\n; echo tdfont face=\Arial\ size=\1\$start$show$end/FONT/td\n; echo td align=\center\font face=\Arial\ size=\1\$start$time_till_event$end/FONT/td\n; echo /tr\n; } else{ return; } } //Dates $listing = 06/24/01/04:00 pm/VH1/Saturday Night Live 25: The Music; create($listing, $max_days); $listing = 06/24/01/05:00 pm/VH1/Before They Were Rock Stars; create($listing, $max_days); $listing = 06/24/01/11:00 pm/HBOZ/Reverb; create($listing, $max_days); $listing = 06/28/01/01:00 am/HBOZ/Reverb; create($listing, $max_days); $listing = 06/28/01/11:00 am/VH1/VH1: All Access; create($listing, $max_days); $listing = 06/28/01/10:00 pm/VH1/VH1: All Access; create($listing, $max_days); $listing = 06/28/01/11:30 pm/VH1/VH1: All Access; create($listing, $max_days); $listing = 06/29/01/09:30 pm/HBOS/Sex And The City; create($listing, $max_days); $listing = 06/30/01/07:00 pm/VH1/VH1: All Access; create($listing, $max_days); $listing = 07/01/01/01:00 am/TRIO/Paris Concert for Amnesty International; create($listing, $max_days); $listing = 07/09/01/09:00 am/TRIO/Alanis Morissette Stevie Nicks; create($listing, $max_days); $listing = 07/09/01/03:00 pm/TRIO/Alanis Morissette Stevie Nicks; create($listing, $max_days); $listing = 07/13/01/12:00 pm/MTV/MTV and Rolling Stone's 100 Greatest Pop Songs ; create($listing, $max_days); $listing = 07/13/01/08:00 pm/MTV/MTV and Rolling Stone's 100 Greatest Pop Songs ; create($listing, $max_days); $listing = 07/27/01/09:00 am/TRIO/Alanis Morissette Stevie Nicks; create($listing, $max_days); $listing = 07/27/01/03:00 pm/TRIO/Alanis Morissette Stevie Nicks; create($listing, $max_days); $listing = 07/01/01//Ottawa, ON/Canada Day; create($listing, $max_days); $listing = 07/03/01//Kristiansand, NOR/Quart Festival ; create($listing, $max_days); $listing =
Re: [PHP] Filtering out \ when a ' is user entered?
Marcus James Christian pressed the little lettered thingies in this order... Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as \' How can I filter out these backslashes so they don't appear on the final public viewable page? $var = stripslashes($var); echo $var; or echo stripslashes($var); http://www.php.net/manual/en/function.stripslashes.php Have fun... Christopher Ostmo a.k.a. [EMAIL PROTECTED] AppIdeas.com Meeting cutting edge dynamic web site needs For a good time, http://www.AppIdeas.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]
Re: [PHP] Linux Guru's
phat linux and vmlinux will work like this as well. * scott [gts] wrote: search for: linux4win that's probably what you're looking for... you can install on an existing windows partition and have it look like a giant file. -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 7:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Linux Guru's Hey Dudes, little off the PHP Subject, but Linux I have RedHat 7.1 CD Here, and i want to dual boot it with my WinXP i don't want to repartition my HDD, i would prefer to have a File on my hdd that has Linux on it, my WinXP install is on a FAT32 Partition.. Now how can i do this? :) - James ReDucTor Mitchell -- 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] GD: 2.0.1 and PHP 4.0.6
Hey all, I am trying to add some of the new alpha channel based features to existing charts that I have written and have the following questions: 1. After installing GD 2.0.1 on a redhat 7.0 system and PHP 4.0.6, I am unable to restart apache without a png_get_error_ptr fatal error. When I run: nm -o /usr/lib/*.a |grep png_get_error_ptr I get the following results: /usr/lib/libgd.a:gd_png.o: U png_get_error_ptr /usr/lib/libpng.a:pngerror.o:0210 T png_get_error_ptr Here's my ./configure script as well: set -x export TMPDIR=/var/tmp export ORACLE_BASE=/home/oracle export ORACLE_HOME=$ORACLE_BASE/product/8i export NLS_LANG=AMERICAN_AMERICA.US7ASCII export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin: /usr/local/sbin:/usr/bin/X11:/sbin:/usr/sbin:/usr/local/bin: /usr/local/sbin:$ORACLE_HOME/bin:. cd php-4.0.6 ./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-gd=/usr --with-ttf --enable-gd-imgstrttf --with-gettext --enable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf=/usr/lib/libttf.so --enable-track-vars --enable-xml --disable-debug --with-db3 --with-ldap --with-oracle=$ORACLE_HOME --with-oci8 --with-mysql 21 Any ideas? Also, has anyone had any experience working with alpha channels in PHP? I've used them in Perl on different systems, but many of the functions seem to be missing from PHP. Thanks! * -- 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] dbf+index
Hi! Is there any way to use dbf files with it's indexes in php? Win+Apache+PHP4.05 Thanx, kos -- 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] Latest documentation in PDF format?
know about, i.e. an automated backend for building the PDF documents from an original source? --Kent Yes. You need Jade and, err, something else I also don't have, and big honking computer with lots of RAM, and a lot of know-how... It's documented somewhere in the documentation, I think... Search for Jade on http://php.net and you'll probably find it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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] APXS -S option in 4.0.6
Have been trying to compile 4.0.6 with this configure line: ./configure --with-config-file-path=/etc/httpd/conf/ --with-mysql --with-gd=/usr/local --enable-ftp --enable-xml --with-jpeg-dir=/usr/local/include --with-png-dir=/usr/local/include --with-zlib-dir=/usr/local/include --with-apxs=/usr/sbin/apxs And am getting the folowing error Make install make[1]: Entering directory `/home/sites/home/users/admin/php-4.0.6' /home/sites/home/users/admin/php-4.0.6/build/shtool mkdir -p /usr/lib/apache /usr/sbin/apxs -S LIBEXECDIR=/usr/lib/apache -i -a -n php4 libs/libphp4.so apxs:Error: Unknown option: S Usage: apxs -g -n modname apxs -q query ... apxs -c [-o dsofile] [-D name[=value]] [-I incdir] [-L libdir] [-l libname] [-Wc,flags] [-Wl,flags] files ... apxs -i [-a] [-A] [-n modname] dsofile ... make[1]: *** [install-sapi] Error 1 make[1]: Leaving directory `/home/sites/home/users/admin/php-4.0.6' make: *** [install-recursive] Error 1 Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] The Pueblo Chieftain www.chieftain.com 1-800-279-6397 -- 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] [OT-ish] Optional Extras.
I don't see how this is weighted. The count(car_id) and group_by should give a score for each car_id. I neglected to use count(car_id) as score and to add order by score desc though. -- 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] back from a search form
You might be able to send some headers about caching and expiration and convince IE that it's okay to show the user the old data... Alternatively, forget the JavaScript history (which won't work for some users anyway) and use $HTTP_REFERER to link back, perhaps with some PHP variables to return to the state you want, and maybe even a ?...foo=$random to force IE to think it's a different page (since the paramaters are different) so it will actually go fetch it again. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 - Original Message - From: Marcos [EMAIL PROTECTED] Newsgroups: php.general Sent: Tuesday, June 26, 2001 1:01 PM Subject: [PHP] back from a search form hi to @ll, after a make a search throw a form it returns me some results (links). if i click to a link and i try to get back to the previous results Internet Explorer shows me a blank page advicing that i should refresh the page in order to get the results. how can i prevent this blank page. search.php --- click into --- news.php?id=1 and if i make javascript:window.history.back(-1) it shows me the blank page. any ideas will be helpful, thanks in advance, marcos -- 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] Adding a line of text to every page PHP spits out
Hello, I want to have a DOC Type ate the top of every PHP script I run. Is there a way to edit the PHP.ini to make PHP spit out a line of text before echoing anything? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com winmail.dat -- 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] search for a better php source code viewer
I have been using PHP Coder as I am somewhat familiar with the ColdFusion IDE (CF Studio) http://www.phpide.de/ -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 4:32 PM To: php Subject: RE: [PHP] search for a better php source code viewer im a textpad fan. (for windows) http://textpad.com/ it supports custom syntax hilighting, line numbers, and a ton of other features that i use :) -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 10:26 AM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] search for a better php source code viewer I suggest ConTEXT. It's free, and it's for windows. http://www.fixedsys.com/context And for Linux, I suggest Nedit. http://www.nedit.org/ Tyler -- 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] Accessing a Berkeley DB V1.85 using PHP V4.0.5
If all else fails, try ODBC as a fall-back... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 - Original Message - From: David Robinson (AU) [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, June 25, 2001 4:25 PM Subject: [PHP] Accessing a Berkeley DB V1.85 using PHP V4.0.5 Hello I am trying to access a Berkeley database V1.85 using PHP V4.0.5 (on Windows 2000) without success. I have tried the dbmopen() routines and dba_open(..., ..., dbm) routines. dbmopen() etc. are successful but the results suggest that they do not support this database format. The dba_open() routine returns 'Warning: no such handler: dbm in dba.php on line 26'. php_db.dll and php_dba.dll are dynamically loaded. 1) Is DB1 another name for Berkeley DB 1.x? 2) Which database routines do I need to use? 3) Alternatively, can I use mysql V3.23 to manage the berkeley DB? I did not find any useful information in this regard. 4) I wish to avoid converting the database format if at all possible. 5) The database is a Redhat Source Navigator project. Any help offered would be greatly appreciated. Regards David Robinson ([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 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] Line Breaks in textarea
Hello- I am selecting a value from a blob field in a mysql db. The value looks like this: Test 12...3 \r \n br %0%D Test When I print that value in a TEXTAREA$value/TEXTAREA -- The textarea returns exactly what you see above. I am trying to get it to display a line break (so that I can store the line breaks in the db). If you can shed any light on this subject, please share. Thank You, Nathan Cook [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] PHP code secrity on VirtualHost
Title: PHP code secrity on VirtualHost I ran into the problem of certain code needing to suexec or do priveledged things that you dont want other domains to be able to do and I ended up writting my own apache module in C for lack of any other way. If you come up with another solution I'd be very interested to hear about it. - Russ --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed51.com -Original Message-From: Aaron Bennett [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 27, 2001 3:45 AMTo: '[EMAIL PROTECTED]'Subject: [PHP] PHP code secrity on VirtualHost Hi everyone, Does anyone know the best way to php secure source code for a virtualhost account so it is not group/world readable? I've been looking for a way to get PHP to play with suexec NOT in cgi mode, but nothing has popped up yet.. Anyone have any ideas short of running outside a virtualhost? Thanks in advance! -- Aaron Bennett
Re: [PHP] How to get PHP to do a POST??
AH! Thank you for this info! This was exactly the problem! When I changed the name_x to name.x, it worked, and UPS' site gave me back what I was looking for. Thanks again, you're a lifesaver! -- Patrick Richard Lynch [EMAIL PROTECTED] wrote in message 046101c0fee3$a5d4ec80$6401a8c0@Lynchux100">news:046101c0fee3$a5d4ec80$6401a8c0@Lynchux100... tried it on my own server and found that php assigns the values 'name_x' and Those are really name.x and name.y in HTTP, but since . is not allowed in a PHP variable name, you get _ instead. So UPS is using, almost for sure, name.x and name.y in their variables. (Well, they probably have something else as well, but if you give them name.x and name.y, they'll convert it like they always do.) button on my form, then all works fine, except for the fact that I can't intercept the data comming back from UPS so that I can adjust the prices. Search the archives for Rasmus' posttohost function from way, way, way back when. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] Filtering out \ when a ' is user entered?
Marcus James Christian said: : \' How can I filter out these backslashes so they don't appear on the : final public viewable page? That's due to the magic_quotes variables in the PHP settings. You can apply 'stripslashes()' to the string: $what_they_said = stripslashes($what_they_said); This also will convert \n to a new line, etc, in the string. If you don't want that, and just want to rip any \ characters out (assuming your users *never* enter a slash intentionally) then try: $what_they_said = ereg_replace(\\, '', $what_they_said); Turu. -- Stephen Cope - http://sdc.org.nz/ -- 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] Help - Lotus
Try www.wotsit.org which has hundreds of file formats. There's another site, but I've lost the bookmark. Miles At 12:58 PM 6/27/01 +0100, TV Karthick Kumar wrote: Hi List, I am working on importing data from Lotus Organizer 5.0 to an ddress book application, written in PHP. If there's a space in the address field, it looks this when I see the .vcf file, after creating it. Note the =0D=0A=0D=0A= in: NOTE;ENCODING=QUOTED-PRINTABLE:Description, Profile / Note.=0D=0A=0D=0A= ~ Karthick=0D=0A And some times, there's just a = symbol coming up in the field types and values and here's an example: ADR;HOME;ENCODING=QUOTED-PRINTABLE:;;3, Granby Row, Apartment 4, Dubli= n 1.;Home dublin city;Home dublin state;1;IE How do I overcome this problem and make it work properly ?. Pls. let me know. Thanks in adv. ~ Karthick [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 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] connection aborting
Hello, I'm trying to understand the connection handling in PHP. I've read the documentation page, but everything I've tried doesn't seem to work. I have a script that downloads and parses 5 search engine xml feeds and returns them... a meta search engine of sorts. I'm having problems with it's effeciency. For starters, I can't figure out how to get PHP to abort the connection if someone hits stop. It just keeps on chugging to the end, where I have it email me that it's done (for testing). The email has the connection_status() in it, and it's always 0, meaning Normal. There is no way that it could be completing before I hit stop because there is output that would come first, before the email is sent, and I never see that output. I've also tried ignore_user_abort(FALSE) (the default), ignore_user_abort(TRUE), and neither affect whether the script completes and sends the email or not. Thanks in advance for your help, -- Hans me-at-hansanderson dotcom -- 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] setting output_buffering for certain hosts or directories
Is there any way to set output_buffering per directory or host? I tried putting: php_value output_buffering On in my virtual host, also in directory, location, and .htaccess the only place it seems to get noticed is in php.ini php4.7devel/apache1.3.20/linux thanks, - Mark -- 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] About Integration PHP- VPOS
cURL is probably your only option, but I think you can build cURL into PHP if you haven't already... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 - Original Message - From: Ing. Marco Antonio Lopez Melendez [EMAIL PROTECTED] Newsgroups: php.general Sent: Tuesday, June 26, 2001 5:37 PM Subject: [PHP] About Integration PHP- VPOS Hi, actually I'm developing a electronic store and I'm integrating VPos to the store application. I'm Using CURL in order to comunicate to Vpos. Is it the only way or there are another one? The Vpos aplication resides on other server and I have to comunicate with it via SSL. Thanx. == Ing. Marco Antonio Lopez Melendez Jefe del Departamento de Estructuracion de Sistemas DCAA.DGSCA.UNAM. Tel. 56-22-36-61 Fax. 56-22-36-78 == -- 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] looking for a class that handles cookies and sessions
I need a class that can quickly help me set cookies and sessions, and check up against them anyone have an idea where i can get one like this? If you can't find one in any of the umpteen PHP code archives linked from http://php.net/links.php, here's one I wrote for you: - session.inc - ?php if (isset($session_id)){ # Look up $session_id in your database for their data } else{ session_start(); $session_id = PHP_SESSID; # I probably the PHP_SESSID bit wrong... set_cookie('session_id', $session_id, time() + 2*365*24*60*60, '/'); # Insert default values with $session_id into your database. } ? Simply require 'session.inc' at the tip-top of every page that needs session data. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
RE: [PHP] PHP Menu.
You would have to use javascript to do that... PHP is server-side, not client-side. You could create the javascript with PHP, but the PHP can't make the menu pop out and stuff... --Jason -- 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] Filtering out \ when a ' is user entered?
Jamie Thompson wrote: use the str_replace() function http://www.php.net/manual/en/function.str-replace.php No. Use stripslashes. http://php.net/stripslashes regards Wagner -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: 27 June 2001 05:19 To: [EMAIL PROTECTED] Subject: [PHP] Filtering out \ when a ' is user entered? Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as \' How can I filter out these backslashes so they don't appear on the final public viewable page? Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com -- Madness takes its toll. Please have exact change. -- 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] Filtering out \ when a ' is user entered?
I sent a reply to this earlier but for some reason some of my posts never make it to the list, so here it is again (hopefully it will post this time, and only once:) The way I do it is to use a function to check if magic quotes are on (because if they're on the conversion is done automatically for you) and if they're not, use the AddSlashes function before writing to the database and use StripSlashes after reading from the database. You can use these two functions: function myAddSlashes($st) { if (get_magic_quotes_gpc()==1) { return $st; } else { return AddSlashes($st); } } function myStripSlashes($st) { if (get_magic_quotes_gpc()==1) { return $st; } else { return StripSlashes($st); } } Hope this helps, __ ([EMAIL PROTECTED]) New Media Producer, Kismia, Inc. ([EMAIL PROTECTED]) Adj. Prof., American University ÂŻÂŻ -- 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] PHP Menu.
PHP is a server side language, Javascript is better for this. Miles Thompson At 03:03 PM 6/27/01 +0200, Deon Heunis wrote: Hi, I would like to know if it is possible to make a pop-out navigation menu with PHP. Regards, Deon Heunis Hetzner Africa PO Box 3450 Durbanville 7551 South Africa Tel: +27 21 975 7930 Fax: +27 21 975 9731 Internet: http://www.hetzner.co.zahttp://www.hetzner.co.za -- 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] Missing arguments for function in class? (object-oriented programming)
On Wed, Jun 27, 2001 at 07:26:53AM -0600, Thomas David Kehoe wrote : [...] $my_records = new Display_Records; [...] ?php class Display_Records { function display_records($row, $record_count) { The constructor of your class assumes two parameters; you're creating an instance without passing those values. $my_records = new Display_Records( $param1, $param2); is the proper syntax. - Markus -- 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] Filtering out \ when a ' is user entered?
To all of your who sent so many great answers I would like to say thank you! THANK YOU! THANK YOU! I ended up using strip slashes and it worked perfectly on only my second attempt of putting it into the code! Thanks, Marcus Marcus James Christian wrote: Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as \' How can I filter out these backslashes so they don't appear on the final public viewable page? Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.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] -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly presents the music of CHROMATICUS at http://chromaticus.com and http://artists.mp3s.com/artists/275/chromaticus.html -- 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] RE: Creating a PDF document from an HTML Page
- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at [EMAIL PROTECTED] and delete the email document without making a copy. - Have a look at www.easysw.com/htmldoc/ very impressive HTML - PDF converter. You can run it from the command line on several diferent platforms. Mark Nold [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Senior Consultant  Change is inevitable, except from vending machines. -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 10:26 PM To: PHP General (E-mail) Subject: Creating a PDF document from an HTML Page Hi I'm trying to create a receipt in a PDF format. I have the receipt as HTML. Is there any class or module in PHP or other language that can read an HTML file and output a PDF file? thanks Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -- 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] PHP and Windows XP
Will PHP run under Windows XP? -- 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] Interfacing with Excel
Hello, I have a web site on a Unix environment running PHP 3.0 and MySQL. I need to convert data in an Excel format to a MySQL database format periodically based on the input feed received in Excel format. the conversion to MySQL is not a problem at all. What I need help is to read data from an Excel 2000 format. How do I retrieve data from Excel 2000? The data is basically a 2 columnar data with currency names and conversion values. Thanks in advance. Regards, Sharat Hegde Phone: 6560360 Ext 4680 -- 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]
SV: [PHP] [PHP-WIN] Problems running php from samba network shares...
There arn't any permission problems, since we're already getting php to run, could it be that php 4.0.6 under windows dosn't support UNC paths.. Iow, \\server\share\name paths!? -Ursprungligt meddelande- FrĂĄn: Richard Lynch [mailto:[EMAIL PROTECTED]] Skickat: den 27 juni 2001 07:12 Till: [EMAIL PROTECTED] Ă„mne: Re: [PHP] [PHP-WIN] Problems running php from samba network shares... accisable for the user webbert. Which full access, both group and user, and Here I supplied the samba server share and the correct user, webbert. But when I try to access a php file, I get the following error message... So, is PHP running as user webbert?... I never can follow all the damn dialogs in Windows. :-v Throw in a ?php phpinfo();? page and find out what user PHP is running as. If it's not a user that can do what you want PHP to do, PHP can't do it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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] extract data from html
Hi, I keep receiving a lot of word documents the I need to extract and put into a mysql table. As of now, I do a cut and paste manually using a html from to a php script to dump it into the mysql table. Since the format is usually the same (most of the time) I am sure there should be another way to do this. I converted the word doc into a html file. Now the question is that I need to write a php script to open that file and read thru its contents. I am not that experienced in php but can understand the basics. The steps that I would take are : 1. Open the html file in read only mode 2. Start reading the html file till I encounter a td tag (I don't know how to do this) 3. Grab that data after the td tag (and then what?) 4. Repeat this process till encounter the /table tag. If anyone could give me the steps in hard code and any other alternative what I would be happy. A Sample of the word doc (too big to attach) +---+ COS Zurich +---+ JuneJulyAug Hotel Price ++---+---++-+ 28 2 8 Arion Fr.1349 Inc Village Fr.1099 ++---+---+---+--+ This is a table. Each table belongs to a different city. Each row has more than 2 hotels. What would be the best solution? TIA Adrian -- 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] Pricing Advice Needed
Hi everyone, Just don't really know where to post this, so here goes: I am working as a freelance programmer. Problem is I don't really have a clue how the pricing mechanism in the industry works. I have heard calculations based on man hours and lines of code, so perhaps anyone one can tell me on the average, how much should I be charging per man hour, or per line of code? Sincere thanks and regards, Alva Chew, Singapore -- 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] Stopping stolen / spoofed / linked sessions
: defeats the purpose of PHP sessions. I can check the HTTP_REFERER to see if : the user came from my own site, but that can be spoofed. I can log and check : the users IP address, but that can't be relied upon. : : Is there any reliable way around this? Am I missing something obvious? On the server where you are storing the session ID, also include her User-Agent and remote IP. Remote IP has some flaws when a proxy cache is involved. User-Agent stays the same fairly much through an entire session. Hopefully they aren't using *exactly* the same browser and IP. Or use one time session tokens that get reissued after each request and then invalidated. Breaks reloads and back functionality. Turu. -- Stephen Cope - http://sdc.org.nz/ -- 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] $REMOTE_ADDR error
check the httpd's X_FORWARDED_FOR var using getenv or similiar... Quoting Christian Dechery (Wed, Jun 27, 2001 at 09:01:28AM -0300) yeah... that's a possibility... so there's no way I can see the user'ss IP? At 09:42 27/6/2001 +0100, Colin May wrote: Almost as if the request was proxied or redirected from the local machine (127.0.0.1 is the local loop back ip) Quoting Christian Dechery (Tue, Jun 26, 2001 at 10:31:54PM -0300) why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who is seeing the page? this doesn't look 'remote' to me... . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- 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] -- Colin May - mailto:[EMAIL PROTECTED] - http://www.wibble.org.uk I've got a sand storm blowing in my head seeing many colours but the only one coming through is red - Sandstorm, All Change, Cast . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- Colin May - mailto:[EMAIL PROTECTED] - http://www.wibble.org.uk I've got a sand storm blowing in my head seeing many colours but the only one coming through is red - Sandstorm, All Change, Cast -- 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] extract data from html
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Adrian D'Costa) wrote: 1.Open the html file in read only mode 2.Start reading the html file till I encounter a td tag (I don't know how to do this) 3.Grab that data after the td tag (and then what?) See http://php.net/manual/en/function.fopen.php and http://php.net/manual/en/function.fgetss.php plus the chapter for whatever DBMS you want to drop the file contents into. -- CC -- 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] Passing XML Doc's
Hi there Is there anyway of passing a xml document to a php page as raw data. What I want to do is eg. send a page a xml document and recieve a response ( in xml ) from that page. I could eg get the result using fopen( 'http://url.com/xml.php' , 'r' ) but how do i send it any data without using for eg. fopen( http://url.com/xml.php?xml=xml_string_document , 'r' ) Any help would be VERY helpfull thanks Niel -- 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] Missing arguments for function in class? (object-orientedprogramming)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a function that works perfectly (from within a script). But when I make it a class (object) and call it from an external file, I get the following error: Warning: Missing argument 1 for display_records() in http://www.friendshipcenter.com/Objects/display_records.inc on line 5 Warning: Missing argument 2 for display_records() in http://www.friendshipcenter.com/Objects/display_records.inc on line 5 After the warnings, it executes the function without passing values to the variables (i.e., it doesn't work), and then it executes the function a second time perfectly (with the appropriate variables). Line 5 is this: function display_records($row, $record_count) It displays the first error message for $row, and the second error message for $record_count. Because your function has the same name as your class whenever you create a new instance of the class the function will automatically run. So by creating a new class you are calling the function without passing any arguments. either a) rename the function or b) call the class like this $my_records = new Display_Records($row, $record_count); sorry for any wrong use of terminology HTH M@ -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBOzrpgaW0/zC+QxWwEQLkWwCg+ZTT0Kwld191fqnfQMNRKUEk9FYAoM8X 9oD3Bf5U9eTiGo/mRPU/dEEX =rbZj -END PGP SIGNATURE- -- 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] PHP and Windows XP
Why not? if it works with WinME and PWS, I suppose it will with XP too. Please try it and report what happens please. Jochen Kaechelin [EMAIL PROTECTED] wrote in message NFBBLHGFAKNLFNPOHMPHKEKEDEAA.jk@intern">news:NFBBLHGFAKNLFNPOHMPHKEKEDEAA.jk@intern... Will PHP run under Windows XP? -- 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] Filtering out \ when a ' is user entered?
Hello, I had the same problem: So I tried stripslashes.. But Queries do break if unslashed ' or are present. and furthermore, there are many other problems .. So I created a function called entities.. Let's imagine a user made an input of name: Simon The Snake surname:O'Connors you can simply call the function like this: entities($HTTP_POST_VARS); and you'll have echo $name; // will produce:Simon #034;The Snake#034; $surname = // will produce:O#039;Connors /* = $description = book's description; = $title = book's title ; = $arr = array(description=$description,title=$title); = entities($arr); returns variables, but with entities and other things changed- ie: $title= book#39;s title; $description= book#39;s description; or just simply: entities($HTTP_POST_VARS) for variables passed from one page to another */ function entities($arr) { $arrct = count($arr); for(reset($arr); $key = key($arr); next($arr)) { global $$key; $$key = htmlentities($arr[$key]); $$key = stripslashes($$key); $$key = str_replace(',#039;,$$key); $$key = str_replace('',#034;,$$key); } } It's basically something like array_walk. - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 10:30 AM Subject: Re: [PHP] Filtering out \ when a ' is user entered? I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as \' How can I filter out these backslashes so they don't appear on the final public viewable page? You need those \ in there to store it into a database. If you don't use a database, you can turn MagicQuotes off in php.ini If you *do* use a database, you can use http://php.net/stripslashes to strip out the slashes. If, after turning off MagicQuotes, or calling stripslashes, you find you need them back in there after all for something, you use http://addslashes -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] --with-zlib/--with-zlib-dir and --enable-xslt
Richard Lynch wrote: Been trying to compile PHP.4.0.6 with --with-zlib directive and failing. Using --with-zlib-dir, however succeeds. Does anyone knows the difference between the two ? --with-zlib-dir works and --with-zlib doesn't? :-) :-) :-) If you got it to work, leave it alone :-) Sure, if it works why bother? Still, isn't it nice the way configuration directives change along versions? It helps keeping one fit :-) Also, in a related problem, if I try with --enable-xslt I get the following results: checking for XML support... yes checking external libexpat install dir... no checking whether to enable xslt support... yes checking whether to enable the XSLT Sablotron backend... no checking libexpat dir for Sablotron XSL support... no configure: error: not found. Please re-install the distribution I'm guessing that PHP is not finding one or more of libexpat and/or Sablotron, whatever those are, so while you asked for XSLT, whatever that is, you can't have it bacause PHP can't find the stuff it needs to provide it. See if there's some --with-libexpat-dir or --with-sablotron-dir (or similar) directives you can use to tell configure where to find the stuff it needs. Actually, I don't really need xslt functinality. I just saw it there and thought I'd give it a try. Oh yeah: Add this to the http://bugs.php.net database, since the error message is just a little bit bogus, eh? The configure error was actually the source of my discomfort. I'll follow your suggestion, thanks. -Stathis. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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]
Re: [PHP] Pricing Advice Needed
It all depends on your experience and knowledge. You know that if you're too experienced you can save lots of research and learning time. therefore you have to estimate how much does your hour cost and how much are you able to do. you can start by $20/hour... Alva Chew [EMAIL PROTECTED] wrote in message 9hejcu$3n6$[EMAIL PROTECTED]">news:9hejcu$3n6$[EMAIL PROTECTED]... Hi everyone, Just don't really know where to post this, so here goes: I am working as a freelance programmer. Problem is I don't really have a clue how the pricing mechanism in the industry works. I have heard calculations based on man hours and lines of code, so perhaps anyone one can tell me on the average, how much should I be charging per man hour, or per line of code? Sincere thanks and regards, Alva Chew, Singapore -- 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] Function
Hi, Is there any function to replace a character in an Array ??. Thanx in adv. ~ Karthick -- 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] Function
Hi, Is there any function to replace a character in an Array ??. Thanx in adv. ~ Karthick. -- 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[2]: [PHP] Auction PHP Solution?
Hi - MT There was some development on PHP-Auction, I did a custom-rolled one for a MT client but it's not like e-bay. Not yet! (just joking) - This is the status of phpauction: - we are finally near to the first stable release - the features are the basic feature needed by an auction package and many others will be implemented in the following version. Anyway it should not be difficult to add what you need in a cople of weeks. - there are some sites using phpauction out there (i personally have some)... so if you peform a good test and make the necessary changes or customization you can use it. Le'ts say phpauction is a good starting point if you need an PHP/MySQL based auctions package. I have checked other packages but phpauction, with all its problems and lacks, is at the moment the most complete (my personal NOT impartial opinion). You may want to check phpauktion.de - it's a german version of the package (i think they have an english translation too). They took phpauction some months ago and added some features. I didn't checked the package but someone told me they did a good job. One problem: their site is in german. They have a basic free version and a pro one which consists of add-ons to the package. The add-ons are not free, they charge 500 DM more or less. If you need more information or have any question, contact me personally at [EMAIL PROTECTED] - Have a nice day Gianluca MT The client would be adding/removing items MT from the auction. MT Miles MT At 09:56 AM 6/26/01 -0600, Michael O'Neal wrote: Hi, Has anybody seen an ebay-like auction solution done in PHP? Thanks, mto -- Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si - M A N G O B O U L D E R - http://www.thinkmango.com e- [EMAIL PROTECTED] p- 303.442.1821 f- 303.938.8507 -- 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] [EMAIL PROTECTED] BcnInédita EURO RSCG INTERACTION www.bcninedita.com Planella, 39 08017 Barcelona Tel.34 932 531 950 (directo 93 253 19 53) Fax. 34 932 114 546 -- 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] Adding a line of text to every page PHP spits out
you can use auto_prepend - Original Message - From: Brandon Orther [EMAIL PROTECTED] To: PHP User Group [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 9:51 PM Subject: [PHP] Adding a line of text to every page PHP spits out Hello, I want to have a DOC Type ate the top of every PHP script I run. Is there a way to edit the PHP.ini to make PHP spit out a line of text before echoing anything? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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] -- 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] $B:#F|$N;q6b7+$j$O(B
$B!&!&!&(B $B:#F|$N;q6b7+$j$G$*:$$j$NJ}$O(B $B!&!&!&(B http://www.justinmail.net/ma01/pa01.htm $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&!&(B $B#1#0#0K|1_$^$G$4M;;qCW$7$^$9!#(B $BF|K\A49q!&:#F|Cf$K4V$K9g$$$^$9$N$G(B $B@h$:$O>e5-#U#R#L$K%"%/%;%9!*(B $B%&%'%V%U%!%$%J%s%9$N%Q%$%*%K%"(B ::: $B&9)(B :: -- 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] Pricing Advice Needed
Thanks for the advice, what about charging by line of code? how does that apply? elias [EMAIL PROTECTED] wrote in message 9hes64$f3r$[EMAIL PROTECTED]">news:9hes64$f3r$[EMAIL PROTECTED]... It all depends on your experience and knowledge. You know that if you're too experienced you can save lots of research and learning time. therefore you have to estimate how much does your hour cost and how much are you able to do. you can start by $20/hour... Alva Chew [EMAIL PROTECTED] wrote in message 9hejcu$3n6$[EMAIL PROTECTED]">news:9hejcu$3n6$[EMAIL PROTECTED]... Hi everyone, Just don't really know where to post this, so here goes: I am working as a freelance programmer. Problem is I don't really have a clue how the pricing mechanism in the industry works. I have heard calculations based on man hours and lines of code, so perhaps anyone one can tell me on the average, how much should I be charging per man hour, or per line of code? Sincere thanks and regards, Alva Chew, Singapore -- 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 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 Excel
Hello, I have a web site on a Unix environment running PHP 3.0 and MySQL. I need to convert data in an Excel format to a MySQL database format periodically based on the input feed received in Excel format. the conversion to MySQL is not a problem at all. What I need help is to read data from an Excel 2000 format. How do I retrieve data from Excel 2000? The data is basically a 2 columnar data with currency names and conversion values. Thanks in advance. Regards, Sharat -- 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] [OT-ish] Optional Extras.
I don't see how this is weighted. I would suggest doing it the easy way and treating the options as keywords and just putting them all in a text field with a fulltext index. this will give you the weighting you want and it will be a lot easier to deal with, but you will have to watch out for things like 'power locks' partially matching 'power doors' (just take out the spaces I guess) On Wed, 27 Jun 2001 00:41:37 -0500, Richard Lynch ([EMAIL PROTECTED]) wrote: How about solving both problems at once? :-) Yes, go with the N:N (the technical term for that car_option table) relation, *AND* give yourself a weighted search engine to boot! create table car (car_id auto_increment...); create table option (option_id auto_increment...); create table car_option(car_id int4, option_id int4, key(option_id)); insert into car(name) values('Chevy Nova'); insert into car(name) values('Lexus'); insert into option(name) values('a/c'); insert into option(name) values('power window'); insert into option(name) values('power locks'); insert into car_option(car_id, option_id) values(1, 1); insert into car_option(car_id, option_id) values(2, 1); insert into car_option(car_id, option_id) values(2, 2); insert into car_option(car_id, option_id) values(2, 3); NOTE: The Lexus has all those options (at that price it had better! ) and the Nova, well... It has a/c! :-) Now, assume the user wants everything, so you have: $options[1] $options[2] $options[3] all set to some value by your checkbox. #Untested code. $query = select count(car_id), car.name from car, car_option ; $query .= where car.car_id = car_option.car_id $query .=and (1 = 0; # 1 = 0 is a starter yeast for the following: while (list($option_id) = each($options)){ $query .= or option_id = $option_id ; } # finish off our options OR list... $query .= ); $query .= group by car_id ; -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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: php-list- [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] PHP and Windows XP
elias [EMAIL PROTECTED] wrote in message 9heq8k$e6$[EMAIL PROTECTED]">news:9heq8k$e6$[EMAIL PROTECTED]... Why not? if it works with WinME and PWS, I suppose it will with XP too. I was under the impression that XP is the next in line after Win 2000, not the 95/98/Me line. Young snip -- 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] pc/mac and ie/nav
Hi all, does anybody know a good piece of script or has a good tip for me how to detect platform and browser of the client? thanx in advance! Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -
[PHP] Image generation
Hi, I'd like to write some scripts that resize high-res jpegs and gifs into smaller jpegs and gifs. What are the best tools for doing this? I've heard of the GD library and ImageMagick. Which one is better? Are there others? I'll definitely have to generate gif's, so png support by itself isn't sufficient. I'm looking for high quality image manipulation that can be done ideally from PHP, or at least Perl. I'm looking for freeware and we're running PHP4 + Apache on FreeBSD. Thanks for the help. Young -- 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] PHP Menu.
Here's some code to include in your HTML to create the popups. html head SCRIPT LANGUAGE=JAVASCRIPT !-- Hide from older browsers which ignore script tag -- they'll interpret this as comment. // Javascript-enabled browsers will ignore HTML-style comments within script and see script statements function open_popup( page, h, w, s ){ window.new_win = window.open( page, popupname, height=+h+,width=+w+,scrollbars=+s+,menubar=0,resizable=1 ); } // end hiding here -- /SCRIPT /head body a href='javascript:open_popup(d-t1.jpg, 400, 630, 1 );'FIA Guide/a /body /html At 09:50 PM 6/27/2001 -0300, Miles Thompson wrote: PHP is a server side language, Javascript is better for this. Miles Thompson At 03:03 PM 6/27/01 +0200, Deon Heunis wrote: Hi, I would like to know if it is possible to make a pop-out navigation menu with PHP. Regards, Deon Heunis Hetzner Africa PO Box 3450 Durbanville 7551 South Africa Tel: +27 21 975 7930 Fax: +27 21 975 9731 Internet: http://www.hetzner.co.zahttp://www.hetzner.co.za -- 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] Les Neste 678-778-0382 http://www.lesneste.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]
[PHP] Convert
Hi How do I convert arrays to string ??. ~ Karthick -- 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] setting output_buffering for certain hosts or directories
On Thursday 28 June 2001 02:08, Mark Maggelet wrote: Is there any way to set output_buffering per directory or host? I tried putting: php_value output_buffering On in my virtual host, also in directory, location, and .htaccess the only place it seems to get noticed is in php.ini Try using php_flag instead of php_value -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) The number of Unix installations has grown to 10, with more expected. -- The Unix Programmer's Manual, 2nd Edition, June 1972 -- 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] Line Breaks in textarea
try the function nl2br($value) regards, Alva Chew Nathan Cook [EMAIL PROTECTED] wrote in message 00cf01c0ff3d$72992160$[EMAIL PROTECTED]">news:00cf01c0ff3d$72992160$[EMAIL PROTECTED]... Hello- I am selecting a value from a blob field in a mysql db. The value looks like this: Test 12...3 \r \n br %0%D Test When I print that value in a TEXTAREA$value/TEXTAREA -- The textarea returns exactly what you see above. I am trying to get it to display a line break (so that I can store the line breaks in the db). If you can shed any light on this subject, please share. Thank You, Nathan Cook [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 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] Want To Know about Databse Connection
Hello, Manisha wrote: Hi, We are developing web application. The client wants it to get connected to their central database server in USA. Web server is in Singapore. Web server configuration - Situated in Singapore, unix / php / mysql - this database is only for some special cases where application does not require central database. Main central database server - Situated in USA, HP UX / sybase On web site we will be providing product listing and order form. After the order is confirmed and payment is made, client wants to update some fields on central database. Can anybody give me the details, how to do it? If I am using php, how to connect to remote server's database? What are the components require on both servers? How will be the network configuration? Any information source? etc etc... Making database connections over the Internet is not a wise solution because of security and performance problems. I would recommend you to use SOAP based services over the Web to make remote procedure calls to services that execute tasks or just return information. Here you may find a PHP class that is a base for implementation for SOAP services: http://phpclasses.UpperDesign.com/browse.html/package/251 Manuel Lemos -- 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] Convert
use implode(separator, $array). the separator joins the array together. For example, if you got 'cat', 'run', 'dog' in the array using implode(-, $array) will give you: cat-run-dog. Got it? regards, Alva Chew [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi How do I convert arrays to string ??. ~ Karthick -- 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] Stopping stolen / spoofed / linked sessions
Hi adam! On Wed, 27 Jun 2001, adam (dahamsta) wrote: [Please copy replies off-list.] I want to use PHP4 sessions for authentication, but I'm having difficulty understanding how to get around users spoofing, stealing or linking sessions. Here's an example: Alice sends Bob a link from a site she's logged into. Alice has cookies turned off in her browser, so the session id will be in the URL she sends Bob. Eve intercepts the message, follows the link and now she can take over Alice's session, and any data that is associated with that session. For that matter, Bob can do the same thing. I can think of lots of ways around this, but most of them are kludges that don't really cut it. I can store a second authentication value in a cookie, but that would require cookies, which isn't acceptable. I could propogate a second authentication variable in the URL, but that's a lot of hassle and defeats the purpose of PHP sessions. I can check the HTTP_REFERER to see if the user came from my own site, but that can be spoofed. I can log and check the users IP address, but that can't be relied upon. Is there any reliable way around this? Am I missing something obvious? there was a long and interesting thread on bugtraq @ securityfocus.com recently regarding this (it started w/ uploading images, I don't recall what was the subject, but you can figure some keywords to search for ;) Among proposed solutions was to send a ticket and validate it for each operation. Worth a searchread if you're a web developer. -- teodor -- 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] Passing XML Doc's
Hello, Niel Zeeman wrote: Hi there Is there anyway of passing a xml document to a php page as raw data. What I want to do is eg. send a page a xml document and recieve a response ( in xml ) from that page. I could eg get the result using fopen( 'http://url.com/xml.php' , 'r' ) but how do i send it any data without using for eg. fopen( http://url.com/xml.php?xml=xml_string_document , 'r' ) Aren't you trying to implement Web services using SOAP? You may want to look into this PHP class that is a base for implementation of of SOAP services via Web or not: http://phpclasses.UpperDesign.com/browse.html/package/251 and also this HTTP client request class that even includes an example of how to make a SOAP remote request that is basically passing a XML request message like what you want: http://phpclasses.UpperDesign.com/browse.html/package/3 Manuel Lemos -- 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] EMAIL to FAX
Hi! Is there is any code or class written already that allow PHP to send emails to fax machines? thanks. -- 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] PHP crashing IIS 5 on Wnidows 2K
I had PHP 4.0.5 ISAPI running in Win2K IIS5. It also crashed every few minutes. I switched over to CGI and now its running like a dream. Bernie Kruger Phil Driscoll [EMAIL PROTECTED] wrote in message 01062709242201.02176@linux">news:01062709242201.02176@linux... On Tuesday 26 June 2001 21:35, Jason Lustig wrote: I have PHP 4.04pl1 set up on a IIS 5 server on Windows 2k. However, it keeps on crashing the server -- not all the time, but sometimes it does, sometimes it doesn't. And I have no idea whatsoever what is causing it. I *think* that it has to do with my include()s. I end up including all my function and nav libraries into each and every page, which turns out to maybe 10 includes. Theoretically, yes, it would put a hit on the server because PHP uses the file system so much, but it shouldn't crash it. Is this possibly the reason it is crashing? Assuming that you are using the ISAPI version of PHP, it is probably crashing because that version of PHP is not very stable. You should upgrade to 4.0.6 which contains improvements in that area, but it is still not perfect. If you find 4.0.6 unstable either change from ISAPI to CGI or if you can, change from IIS to Apache and use the Apache module version of PHP. Cheers -- Phil Driscoll -- 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] file(http://www.php.net) error?
You will also find that file(); may have been disabled - due to the possible security issues.. ie file ( /etc/shadow); or file (/etc/passwd); I believe that may apply to fopen, too. James -Original Message- From: atan [mailto:[EMAIL PROTECTED]] Sent: 23 June 2001 02:46 To: [EMAIL PROTECTED] Subject: [PHP] file(http://www.php.net;) error? file(http://www.163.com;) error? this is a test: ?php $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b . htmlspecialchars ($line) . br\n; } ? / This program run no error in my server ; but it not work when i sent it to the Server (mtkj.51.net) The message: Warning: file(http://www.163.com;) - Permission denied in /z1/mtkj/public_html/test.php on line 2 Warning: Variable passed to each() is not an array or object in /z1/mtkj/public_html/test.php on line 3 why? -- 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] pc/mac and ie/nav
Hello all, Can anyone see what's happening here? I'm trying to pass some variables (font stuff) to a cgi script so that it will appear the same as the current theme being used. Everything seems to be working except the replacements. here's the code. Any help much appreaciated, thanks! Or would there be a better way to do this? ?php include(/path_to/preload.php); include($header_forum_prog); $out = implode(\n, file(http://domain.com/path_to/forum.pl$QUERY_STRING;)); preg_match_all(/PHP?([^?]+)?PHP/, $out, $matches, PREG_PATTERN_ORDER); for($i=0; $i count($matches[1]); $i++){ $out = str_replace(PHP?.$matches[1][$i].?PHP, $$matches[1][$i], $out); } echo $out; include($footer_prog); ? and the variable in the cgi script are var heading_bgcolor = \PHP?$bgcolor?PHP\ var heading_font = \PHP?$ThemeFont?PHP\ but eh variable from the php globals are $bgcolor, $ThemeFont Thanks Richard -- 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] PHP PGP
Hi there, I want to encrypt mails coming from my webform with pgp. Is it possible? regards, Lopez -- 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]