RE: [PHP] Rename a File?
http://php.net/rename -Original Message- From: Randy Johnson [mailto:[EMAIL PROTECTED]] Sent: 13 iulie 2001 20:53 To: Randy Johnson; Chris Lambert - WhiteCrown Networks; [EMAIL PROTECTED] Subject: [PHP] Rename a File? How do I rename a file on Linux in PHP? Thanks Randy -- 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] charset
http://www.w3.org/TR/WD-html40-970708/charset.html -Original Message- From: Mark Lo [mailto:[EMAIL PROTECTED]] Sent: 12 iulie 2001 08:46 To: [EMAIL PROTECTED] Subject: [PHP] charset Hi, What will the problem if i don't specific what charset to use in the metal tag. And also, what is the CHARSET of UTF-8. What charset to use if i want my web page to display chinese and english. Thank you 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]
[PHP] Apache + PHP 3.0.18 + UW-Imap.Z + LDAP + Oracle + IMP = Apache childs coredumps :(
I have an small problem on my Apache Stronghold 3 Server (a simple Apache 1.3.12 + mod_ssl) using a statically compiled PHP3 module. PHP version is latest (3.0.18) and is compiled against UW-Imap libc-client, openldap 1 and oracle librarys to provide IMAP, LDAP and Oracle support for HORDE/IMP Webmail (I'm using HPUX, but I've tested it on Linux and it happens the same I'm going to describe). The webmail is working perfect, except for some coredumps I get sometimes (every 20-30 minutes or so). I can work on the webmail with no problems, but SOMETIMES I get a Document contained no data, and the Apache logfile says something like: [notice] child pid 1234 exit with Segmentation Fault (core dump on /usr/apache). I have lots of them on different times: [Wed Jul 4 09:10:22 2001] [notice] child pid 29834 exit signal Segmentation fault (11) [Fri Jul 6 13:05:32 2001] [notice] child pid 30124 exit signal Segmentation fault (11) I did a backtrace on the core file: (gdb) bt #0 0xc01f2740 in kill () from /usr/lib/libc.2 #1 0x1a15a0 in sig_coredump () #2 signal handler called #3 0xcda50 in read_next_token (tcm=0x40049b20, token=0x77ff1eb8, phplval=0x77ff1d58) at token_cache.c:161 #4 0xb2f68 in phplex (phplval=0x77ff1d58) at main.c:488 #5 0xbb9d8 in phpparse () at /usr/lib/bison.simple:432 #6 0xb5974 in php3_parse (yyin=0x40113c98) at main.c:1564 #7 0xb5ed8 in apache_php3_module_main (r=0x400cd840, fd=26, display_source_mode=0, preprocessed=0) at main.c:1929 #8 0xb18a4 in send_php3 () #9 0xb1970 in send_parsed_php3 () #10 0x197204 in ap_invoke_handler () #11 0x1ab36c in process_request_internal () #12 0x1ab3ec in ap_process_request () #13 0x1a2ff8 in child_main () #14 0x1a3254 in make_child () #15 0x1a35b8 in perform_idle_server_maintenance () #16 0x1a3b78 in standalone_main () #17 0x1a45c8 in main () The line 161 of token_cache.c contains: GLOBAL(tc)-count++; } --*token = GLOBAL(tc)-tokens[GLOBAL(tc)-pos++]; return (*token)-token_type; } This seems a PHP3 problem, and I thought of updating to PHP4, but that's not too easy on this HPUX 11 server (which lacks of lots of development tools), AND I've seen on google.com and groups.google.com similar messages with 4.0.x versions (similar messages with no answers). On bugs.php.net I've seen a bug report of the above, but it's stated as CLOSED. It's closed saying that latest version should have it corrected (the bug is reported for 3.0.2, and I'm using 3.0.18). I'm quite desesperated, I would appreciate any help :( Some details of how I compiled PHP3: I compiled imap (libc-client.a, and some .h files needed by PHP3) and openldap 1.x. ./configure --with-apache=/home/sromero/merca/apachesh --with-gd=no --with-oracle=/opt/OraHome --with-ldap=/usr --with-imap=/home/sromero/merca/imap-c-client --with-config-file-path=/home/sromero/merca --enable-track-vars=yes Then I did a make and make install. This installed libphp3.a on Apachesrc/modules/php3 I entered Apachesrc/ and modifyied the Configuration file and added: AddModule modules/php3/libphp3.a I executed ./Configure and make. This compiled perfectly and created an httpd binary file I copied to the Stronghold's binary dir. IMP's webmail is working ALMOST perfect except for those ocasional core dumps. I think the problems are not an application problem... Thanks a lot for any help and sorry for the big message, and for asking without a previous-fidonet-style-introduction (hi all, I'm new to this list :-). -- Santiago Romero Departamento de Sistemas [EMAIL PROTECTED] Av. Primado Reig 189, entlo 46020 Valencia - Spain Telf. (+34) 96 332 12 00 Fax. (+34) 96 332 12 01 http://www.servicom2000.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] Can i get the full HTTP-Header without patching PHP?
Hi, is there a way to get the full HTTP Header without patching PHP? I use a debugger coded in PHP a lot. Now i need to debug some intershop enfinity pages. However, enfinity uses a lot of fields with the same names. So my debugger overwrites the variables and i get only the last one. As i cant change the code (wouldn't work anymore then) i cant debug without having access to the full http header. (i can make arrays for duplicate variables for myself then) Same problem with some kind of e-cash system. It validates itself by putting a signature into the header. However, PHP cant validate the header as i have no chance to get the original header. (And i cant rebuild the original header of course) If there is no way without patching to get these informations are there any plans to integrate a function for getting the header in future versions of 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] Silly table and php question.
Hi all. I know this is a silly question but i dont know how to do it so thats why i am asking. Be gentle towards me. Im just a stupid swede! ;-) statement: I have a table cell in my upper right corner. I have a small php script which checks wheter my user is online or not. If the user is i want to update that cell with an gif that i made that says online. How do i update just that cell? Is there a special function in PHP to do that? I know the question is silly but bare with me. //Johan -- 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: Popquiz...
How you mean *in it's original form* ? Lasse [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ..Or call it a riddle.. Whatever... :-) What did the following code look like in it's original form? function bitdef($prefix, $name, $bitnum) { define($prefix.B_.$name, $bitnum); define($prefix.F_.$name, 1 $bitnum); } -- Lasse -- 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: Averaging columns in two tables?
try, $result = mysql_query(select avg(tbl1.age) as avg1, avg(tbl2.age) as avg2 from tbl1, tbl2); $r = mysql_fetch_array($result); $avg = ($r[avg1] + $r[avg2]) / 2; Jeff Lewis [EMAIL PROTECTED] wrote in message 007d01c10a36$c657f750$76a1a8c0@LEWISJCIT">news:007d01c10a36$c657f750$76a1a8c0@LEWISJCIT... Is it possible to get the average of two tables. I have an age column in two tables. I can get the age average for one table both can the average of both tables be found in one statement? One table is for hitters, the other for pitchers. Jeff -- 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: Question
see eregi() James W Greene [EMAIL PROTECTED] wrote in message 032f01c109fd$53ad0b70$0cfb94d0@calcutta">news:032f01c109fd$53ad0b70$0cfb94d0@calcutta... Hi All, I have an e-mail message stored in the var $message How can I grep for say the From lines and such in $message using PHP. I tried using preg_grep, but I could not seem to get it to work. Thanks Jim G -- 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 would i do this ?
Hi I need to fill a variable a value (writers name) with the data coming from 2 different tables depending on the choice from the previosu page (add a new article or edit an old one). Is their an easier way to do this as the sql is rather ugly that I am using later as itis not clean in its choice giving extra records. if (isset($writer)) //for a new story $n = get_writer_name($writer); elseif (isset($story)) // edit old article $s = get_story_record($story); later in page... print query_select(page, select p.code, p.description from pages p, writer_permissions w where p.code = w.page and w.writer = '$s[writer]' or w.writer = '$n[writer]', $s[page]);? ANdreww ta Andy -- 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] Silly table and php question.
Well, I guess what you can do is embed the PHP within the table cell and call an if statement. Like this... table tr td // if the user is online, then display the online image ?php If ($user = online) { ? img src=online.gif // else if the user is offline, display the offline image ?php } elseif ($user = offline) { ? img src=offline.gif // This is just some error checking ?php } else { echo $some_error; ? ?php } ? /td /tr /table Try that, it's simple and short, and it works within the table cell you would specify. Of course, you may have to alter the code and the code structure a bit to fit your scheme. If you're new to PHP then stripping away the comments I placed for you might help to make the code look more clear to you. Good luck... Navid Yar -Original Message- From: Johan Vikerskog (ECS) [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 2:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Silly table and php question. Hi all. I know this is a silly question but i dont know how to do it so thats why i am asking. Be gentle towards me. Im just a stupid swede! ;-) statement: I have a table cell in my upper right corner. I have a small php script which checks wheter my user is online or not. If the user is i want to update that cell with an gif that i made that says online. How do i update just that cell? Is there a special function in PHP to do that? I know the question is silly but bare with me. //Johan -- 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] time compare in my sql
Hi folks I have a filed in data type time , how would I compare the value submited from the form with the value in that filed, which is in format 11:00:00 ? When I do this in query: select * from table where time = '12:00:00'; ( in order select all records that have time before noon) it keeps saying sql syntax error. What should I do? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts
[PHP] Re: time compare in my sql
try this: select * from table where TIME(time_field) = 12 Jack [EMAIL PROTECTED] wrote in message 060101c10b0d$cd941940$[EMAIL PROTECTED]">news:060101c10b0d$cd941940$[EMAIL PROTECTED]... Hi folks I have a filed in data type time , how would I compare the value submited from the form with the value in that filed, which is in format 11:00:00 ? When I do this in query: select * from table where time = '12:00:00'; ( in order select all records that have time before noon) it keeps saying sql syntax error. What should I do? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts -- 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: Can i get the full HTTP-Header without patching PHP?
Rainer Kohnen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, is there a way to get the full HTTP Header without patching PHP? I use a debugger coded in PHP a lot. Now i need to debug some intershop enfinity pages. However, enfinity uses a lot of fields with the same names. So my debugger overwrites the variables and i get only the last one. As i cant change the code (wouldn't work anymore then) i cant debug without having access to the full http header. (i can make arrays for duplicate variables for myself then) Same problem with some kind of e-cash system. It validates itself by putting a signature into the header. However, PHP cant validate the header as i have no chance to get the original header. (And i cant rebuild the original header of course) If there is no way without patching to get these informations are there any plans to integrate a function for getting the header in future versions of php? thanks Have you tried: http://www.php.net/manual/en/function.getallheaders.php $headers = getallheaders(); while (list ($header, $value) = each ($headers)) { echo $header: $valuebr\n; } Peter -- 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] installation
Hi there, Im just a new in PHP, please help me in installing PHP with mysql support using the RPM's format. It is much easier to install packages in Redhat6.2 in RPM's but it does not automatically install PHP mysql support. Please help me, i keep on trying installing this but it doesnt work. Mike
[PHP] how do i get url: response codes?
I've tried for a while now to figure out how to test from within php if a url (http://xxx/file.html) is present and what error code is returned (200,201,202,404, etc...) the only way to test a url seems to be to open file('http://xxx/file.html') and see if it can be done. but that completely suppresses any error codes and especially redirects. Has anyone figured out how to pull out http error codes using php? greets./ -- 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] time compare in my sql
have a look at date_format in the mysql help and pull your sate filed out as a date Steve -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: 12 July 2001 21:04 To: [EMAIL PROTECTED] Subject: [PHP] time compare in my sql Hi folks I have a filed in data type time , how would I compare the value submited from the form with the value in that filed, which is in format 11:00:00 ? When I do this in query: select * from table where time = '12:00:00'; ( in order select all records that have time before noon) it keeps saying sql syntax error. What should I do? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts -- 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] quotes
Hey, I have a problem using apostrophes/single quotes. I am using PHP and MySQL. The user enters data into the text field and everything goes ok, until an apostrophy/single quote is added in the middle of the text - then disaster occurs! Now i want to allow the user the ability of adding apostrophies/single quotes. As far as i understand the reason is because MySQL accepts the text until the apostropy/single quote. So my guess would be if that i should manipulate the text before inserting into the database, such that it doesn' include apostrophies/single quotes. But is there something else i could place instead of the apostrophy/single quote that would, when displayed, show as an apostropy/single quote. Any ideas? Help would be great! Heidi = Heidi Belal ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work station... __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.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] (Your online company)
×𾴵ĻáÔ±£¬ÄúºÃ£¡Ò¼Ê³Æ·ÖйúÍø·þÎñÐÅÏ¢¹©Äú²Î¿¼£º ÓµÓÐ×Ô¼ºµÄÍøÉϹ«Ë¾£¬Õ¹Ê¾¹«Ë¾²úÆ·ºÍ·þÎñ£¬Ìá¸ßÆóÒµ¾ºÕùÁ¦,ÄúÓÐÁ½ÖÖÑ¡Ôñ£º 1/ ÍøÕ¾¶¨ÖÆ http://www.ifood1.com/aboutus/ourservices/web.asp : ×Ô¼ºÎ¬»¤¸üУ¬¹ÜÀíǰ̨ºǫ́£¬¸ù¾ÝÆóÒµÐèÒª£¬½¨Á¢×Ô¼ºµÄÍøÉϹ«Ë¾£¬Êý¾Ý¿âÄ£¿éÈÎÄúÑ¡Ôñ£ºÉÌÇéÐÅÏ¢·¢²¼,ÍøÉϲúƷչʾ£¬¿Í»§·þÎñÖÐÐÄ,ÍøÉϹºÎïϵͳ,¿Í»§¹Ø ϵ¹ÜÀí,ÍøÉÏÂÛ̳,ÍøÉÏ»áÒéÖÐÐÄ,ÍøÉÏÕÐƸ,ͶƱϵͳ,×ÊÁÏÏÂÔØÖÐÐÄ,Îʾíµ÷²é, Õбê²É¹ºÏµÍ³,·ÃÎÊÕßͳ¼Æ·ÖÎö, ÁÄÌìÊÒ(½»Á÷¡¢Ì¸ÅÐ)¡¡ ÏëÁ˽âÊý¾Ý¿âÄ£¿éÑÝʾÖÐÐÄ£¿ÇëÁªÏµ£º [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ¡¡µç»°£º0755-3786309¡¡ÏúÊÛ²¿ÉòС½ã 2/ Ò¼Íøͨ http://onet.ifood1.com/ -×ÔÖúʽ½¨Íø£¬²Ù×÷¼òµ¥£¬¼´½¨¼´Ó㺿Éչʾ30ÕÅ»ò¸ü¶àÕÕƬ£¬×ÔÖúʽά»¤£¬¿ÉËæʱ¸üÐÂͼƬºÍÎÄ×ÖÄÚÈÝ£¬ÔÚÏß·¢²¼²úÆ·ÐÅÏ¢¡¢¹«Ë¾¶¯Ì¬µÈ£¬ÔùËͶþ¼¶¹ú¼ÊÓòÃû( Èçhttp://yourname.ifood1.com)£¬ÓëҼʳƷÖйúÍø(Ò³Ãæä¯ÀÀÁ¿ÔÂÓâ200Íò´Î)½ôÃÜÁ¬½Ó£¬Ìá¸ßÂò¼ÒºÍ¹Ë¿Í·ÃÎÊÁ¿£¬¶¨ÆÚÊÕµ½Ò¼Ê³ Æ·ÖйúÍøÌṩµÄ¿Í»§ÐèÇóºÍ²É¹ºÐÅÏ¢¡£ 7ÔÂ30ÈÕÇ°ÉêÇë²¢¸¶¿îʹÓÃÒ¼Íøͨ£¬ÌرðÓŻݼÛ3800Ôª/Ä꣬ÔùËÍÌõÂë¹ã¸æ²¢Ãâ·ÑÔÚʳƷרҵÔÓÖ¾¿¯µÇ¹©£¬Ç󣬴úÀí£¬ºÏ×÷ÐÅÏ¢ ÏëÁ˽â¸ü¶à? ¡¡ÇëÁªÏµ£º [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ¡¡µç»°£º0755-3786309ÏúÊÛ²¿ÉòС½ã »ò ·ÃÎÊÎÒÃǵÄÍøÒ³ http://www.ifood1.com/aboutus/ourservices/cpservice.asp :www.ifood1.com »ØÖ´£¨Çë´«Õ棺0755-3239047»ò·¢µç×ÓÓʼþ£º [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] £© ¡õ ±¾¹«Ë¾¶ÔÍøÕ¾¶¨ÖƸÐÐËȤ ¡õ ±¾¹«Ë¾¶ÔÒ¼Íøͨ·þÎñ¸ÐÐËȤ ¹«Ë¾Ãû³Æ£º_ÁªÏµÈË£º__ _ µç»°£º_´«Õ棺__E-mail£º __
Re: [PHP] quotes
Heidi Belal wrote: I have a problem using apostrophes/single quotes. I am using PHP and MySQL. The user enters data into the text field and everything goes ok, until an apostrophy/single quote is added in the middle of the text - then disaster occurs! Use addslashes() on the text before inserting it into the database. http://php.net/addslashes regards Wagner -- 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] Alternative to phpMyAdmin
mysql front is by far my favourite available from mysql download section. Steve -Original Message- From: Steph [mailto:[EMAIL PROTECTED]] Sent: 12 July 2001 05:01 To: [EMAIL PROTECTED] Subject: [PHP] Alternative to phpMyAdmin Hi all! I love phpMyAdmin, just makes life so easy :) But I just moved my site, and phpMyAdmin isnt working on my server yet, so does any one have any solid alternatives that I can install?? Thanks, Steph -- 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] Alternative to phpMyAdmin
[EMAIL PROTECTED] (Steve Brett) wrote: mysql front is by far my favourite available from mysql download section. or mysqlfront.de -- Henrik Hansen -- 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: Login system
I have used this one with success, mysql and multi-level authorization support: http://www.phpsecurepages.f2s.com/ Can lock individual pages or parts of it with a little modification or well placed include();s. Also, about forms and session IDs, simple solutions would be pass the SID on the form's action or get the session ID and pass it as a hidden input field. -- Julio Nobrega. One and One and One is Three -- 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: Silly table and php question.
You can also do as: img src=checkonline.php and create a file: checkonline.php ? // make some tests to determine if user is online if ($online_condition) { Header(Location: ../images/online.gif); } else { Header(Location: ../images/offline.gif); } exit(); ? Good luck, Johan Vikerskog [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].. . Hi all. I know this is a silly question but i dont know how to do it so thats why i am asking. Be gentle towards me. Im just a stupid swede! ;-) statement: I have a table cell in my upper right corner. I have a small php script which checks wheter my user is online or not. If the user is i want to update that cell with an gif that i made that says online. How do i update just that cell? Is there a special function in PHP to do that? I know the question is silly but bare with me. //Johan -- 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: Login system
I can suggest Session Variables instead of cookies, Try http://www.zend.com / Tutorial Section there, about Authorization and Session Variables, Kristjan Kanarik [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear list, I'm sorry to bother (or sorry for being stupid!) , but I've been looking around for some days and can't find what I'd like to have. My knowledge about sessions is literally non-existent and therefore I decided not to start creating a 'bycycle' from scratch. I'm looking forward for an authorisation system which stores user data (login name, password, etc.) in the MySQL and only if the user has logged on he/she has got certain priviliges across the whole site. The people who haven't logged on, can surf around, but certain features are turned off. And even more - it would be good if I could customize different users for different rights. I managed myself to do the authorisation for a single page, but don't think it is very secure. I don't want to use cookies and therefore I should be passing the SID to all URL-s, correct? Does this mean I can't really use post method with forms? Any hints, good tutorials, previous discussions? A usable script would be good... :) TIA Kristjan P.S. [EMAIL PROTECTED] to CC: , I'm on the digest. -- 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: Using PHP Variables with a Header
Hey, A simple example with one field: ? if (isset($submit)) { // do fields checking here... if (empty($fname)) { $errmsg = Name not entered please fill it in!; } else { // proceed here } } ? html body form ? if (isset($errmsg)) { ? font color=red?=$errmsg?/font ? } ? *Name: input type=text name=fname value=?=isset($fname) ? $fname : ? br input type=submit name=submit /form /body /html //Elias Michael Conley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a form that requires a user to enter various information (name, address, phone number, etc...). When they submit this form, the next PHP page checks to make sure that the required fields were filled in. What I would like to do is check to see if the required fields are all filled in and if they are not, save the values they submitted and go back to the original page, display a message that says the fields that need to be filled in and populate the rest of the fields with the information the user orignally submitted. This will keep them from having to type in all of the information again. I can run the checks just fine to see if the required fields are all filled in. I then save the data from all the fields into variables. What I would like to do is automatically forward the user back to the original page with the values (i already have all of the fields set with value=$variablename to allow them to get the data that is sent back). The only way I have been able to get this to work is to set this up as a regular form with hidden HTML fields and a Submit button. I really want this to be an automatic process. Any thoughts on how to accomplish this? When I set up a Header, the user is forwarded back to the page that I want, but none of the variables go with them (they are set by simply putting something like $savedlastname = $lastname, where $lastname is the HTML variable from the original form). Any help is appreciated. -- 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] Detection of no cookies?
Hi php'ers Since I have a site that relies on cookies it would be good to detect if a user has turned them off. How cat I determine if that is the case? Kind regards, Morten Winkler -- 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: Can i get the full HTTP-Header without patching PHP?
Peter Clarke [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Rainer Kohnen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, is there a way to get the full HTTP Header without patching PHP? I use a debugger coded in PHP a lot. Now i need to debug some intershop enfinity pages. However, enfinity uses a lot of fields with the same names. So my debugger overwrites the variables and i get only the last one. As i cant change the code (wouldn't work anymore then) i cant debug without having access to the full http header. (i can make arrays for duplicate variables for myself then) Same problem with some kind of e-cash system. It validates itself by putting a signature into the header. However, PHP cant validate the header as i have no chance to get the original header. (And i cant rebuild the original header of course) If there is no way without patching to get these informations are there any plans to integrate a function for getting the header in future versions of php? thanks Have you tried: http://www.php.net/manual/en/function.getallheaders.php $headers = getallheaders(); while (list ($header, $value) = each ($headers)) { echo $header: $valuebr\n; } Yes, did not work for me. What i need is the exact content of a POST and the header itself. For example: when i check the signature of a header, how can i know if the header contains: Content-Type: application/x-www-form-urlencoded or Content-Type: application/x-www-form-urlencoded (note the extra space) So what i like to have is the exact POST request sent from the users browser to the apache server as a single string oder array of strings for each line (not parsed!). A POST may look like this: --- POST /anmeldung_index.html HTTP/1.0 Host: www.testserver.work Content-length: 67 fstatus=1username=petersearch=bananasearch=drinksearch=daiquiri --- As you can see there are 3 times search in the POST. PHP itself will give me only the last one but if i can get the original request its easy to parse it into an array for myself. The other problem is with authentication signature: --- POST/anmeldung_index.htmlHTTP/1.0 Host: www.testserver.work signature: 43jgb34u545u6FGH3456hjSDFg2345456-dfg43j45h6gGFGH Content-length: 67 fstatus=1username=petersearch=bananasearch=drinksearch=daiquiri --- To verify this i need the exact request, as a string, not preparsed in any form. Thanks anyway :) -- 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] Windows Login Name
I saw this post in an HTML or Javascript group (can't remember) and I wondered if it is possible in PHP. Can one get the username of a person logged in on a Windows machine with a PHP variable? I have scanned the doc's quickly but I cannot find anything. Tx Bernie -- 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] building a search engine ??
I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri $searchpattern $path is this too resource intensive ? How does this idea sound ? please let me know. thanx in advance for any replies. Cape Town South Africa -- 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: Detection of no cookies?
[EMAIL PROTECTED] (Orvî÷inklÏ ²ørÏkîskî) wrote: Hi php'ers Since I have a site that relies on cookies it would be good to detect if a user has turned them off. How cat I determine if that is the case? a hack could be just to try to set one, like if (setcookie(...)) { the user has cookies; } else { echo No cookies; exit; } -- Henrik Hansen -- 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] building a search engine ??
Why reinvent the wheel? Use htdig or one of the other open source search engines. There's a memo on the htdgi site on integrating PHP and htdig. Miles Thompson At 02:26 PM 7/12/01 +0200, void wrote: I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri $searchpattern $path is this too resource intensive ? How does this idea sound ? please let me know. thanx in advance for any replies. Cape Town South Africa -- 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] Re: Downloading Data from Database
Dave, The code below gives me an error in IE 5.+ Here is the error: IE cannot download ..blah blah try again later Do you use this code on your site or do i just need to tweak it -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 6:30 PM To: Randy Johnson; PHP General List Subject: [PHP] Re: Downloading Data from Database On Sat, 14 Jul 2001 00:40, Randy Johnson wrote: I am adding a feature to my site where members can download their information from the database. What is the best way to accomplish this? Create a text file every time a member wants to download their info? I thought about this ..how would I handle deleting the text files when I was finished and what would prevent others from downloading the file? I read somewhere that files can be created on the fly or dynamically anytime a download takes place. This sounds like a good idea cause there wouldn't be any files on the server. Any idea where I can get more info on that? Thanks Randy try this: header(Content-disposition: filename=maillist.dat); header(Content-type: application/octetstream); header(Pragma: no-cache); header(Expires: 0); //query database //echo results required //end -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA [incredibly rude and childish comments deleted] -- 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] $HTTP_REFERER 10
Is it possible? I am writing a recommend script, and I already know that the $HTTP_REFERER can come empty or even not set, tested turning off the 'Enable Referer Logging' on Opera. But, an invalid $HTTP_REFERER is also one smaller than 10 characters? I believe the smallest referer you can have is 'http://a.jp', for example, but I am not sure. Anyone saw a smaller $HTTP_REFERER or have any other ideas to check if it is invalid? -- Julio Nobrega. One and One and One is Three -- 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]
AW: [PHP] Re: Detection of no cookies?
that does not work since cookie will just be available on the next page.. try tesp.php ? if (!(isset(cookietest))) { setcookie(blahblah...); //new request, so cookie will be send to server header(Location: test.php?cookietest=yes); exit; } else { if (sizeof($HTTP_COOKIE_VARS)1) { die (I WANT COOKIES); } } should do it... a hack could be just to try to set one, like if (setcookie(...)) { the user has cookies; } else { echo No cookies; exit; } -- 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 do i get url: response codes?
Here's some code I've been using for that. YMMV. :) - Tim http://www.phptemplates.org // // checks $url, returns true/false and sets the response code in $response // function dt_checklink($url, $response) { $ua = parse_url($url); $host = $ua[host]; $port = ($ua[port] != 0) ? $ua[port] : 80; $path = ($ua[path] != ) ? $ua[path] : /; $http_req = HEAD $path HTTP/1.1\r\nHOST: $host\r\nConnection: close\r\n\r\n; $http_resp = ; $response = 999; $fp = @fsockopen($host, 80); if ($fp) { socket_set_timeout($fp, 20); $start = time(); fputs($fp, $http_req); while (!feof($fp) ((time()-$start)20)) { $http_resp .= fgets($fp, 256); } fclose($fp); if (ereg(HTTP/[0-9]\.[0-9] ([0-9][0-9][0-9]) , $http_resp, $regs)) { $rcode = $regs[1]; $response = $rcode; if ($rcode == 200) return true; // OK if ($rcode == 301) return true; // document moved if ($rcode == 302) return true; // document moved return false; } return false; } return false; } - Original Message - From: Patrick Sibenaler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 12, 2001 6:28 AM Subject: [PHP] how do i get url: response codes? I've tried for a while now to figure out how to test from within php if a url (http://xxx/file.html) is present and what error code is returned (200,201,202,404, etc...) -- 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 irc chatrooms
Hi, Does anyone know of any PHP related chatrooms? Tx Bernie -- 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] associative arrays
Hi everybody i have the following database query: $result=mysql_db_query(database,select item1,item2 from table); while ($row=mysql_fetch_array($result)){ $a=$row[item1]; $b=$row[item2]; } what i need is an associative array, with $a as key and $b as value, containing each item1 and item2 from the database -- 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 irc chatrooms
Try #php :) Lots of people hanging out in there all the time. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Bernie Kruger [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 8:46 AM To: [EMAIL PROTECTED] Subject:[PHP] PHP irc chatrooms Hi, Does anyone know of any PHP related chatrooms? Tx Bernie -- 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] associative arrays
$result = mysql_db_query(database,select item1, item2 from table); while ($row = mysql_fetch_array($result)) { $myArray[$row['item1']] = $row['item2']; } -Original Message- From: Martin Lucas [mailto:[EMAIL PROTECTED]] Sent: 12 iulie 2001 16:25 To: '[EMAIL PROTECTED]' Subject: [PHP] associative arrays Hi everybody i have the following database query: $result=mysql_db_query(database,select item1,item2 from table); while ($row=mysql_fetch_array($result)){ $a=$row[item1]; $b=$row[item2]; } what i need is an associative array, with $a as key and $b as value, containing each item1 and item2 from the database -- 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] Re: $HTTP_REFERER 10
Maybe what you say about smallest refeerer length is true... but why don't you check via regexps the validity of the REFEERER format only if it was set? InéRcia Sensorial [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is it possible? I am writing a recommend script, and I already know that the $HTTP_REFERER can come empty or even not set, tested turning off the 'Enable Referer Logging' on Opera. But, an invalid $HTTP_REFERER is also one smaller than 10 characters? I believe the smallest referer you can have is 'http://a.jp', for example, but I am not sure. Anyone saw a smaller $HTTP_REFERER or have any other ideas to check if it is invalid? -- Julio Nobrega. One and One and One is Three -- 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: $HTTP_REFERER 10
That's also something worth to be done, but first I need to know some possible variations of $HTTP_REFERER... I never saw one, when coming from another domain, without the 'http://'´part, so that's a regex to check, but I may be wrong... -- Julio Nobrega. One and One and One is Three Elias [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Maybe what you say about smallest refeerer length is true... but why don't you check via regexps the validity of the REFEERER format only if it was set? -- 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] New host doesn't allow file uploads through PHP
Hi. I've (or rather the company I work for) recently transferred to a new new PHP host (www.hotchilli.com). All is fine, but they do not allow file uploads via a form, stating the following security risk: Arbitrary file disclosure through PHP file upload http://www.net-security.org/text/bugs/968074710,61298,.shtml The following, posted by Zeev, would seem to suggest that the above has been solved some time ago: http://www.securityfocus.com/templates/archive.pike?list=1mid=80197 Hotchilli also state that 'we have been advised in addition to this by the developers of PHP who we work with quite closely to disable the function on 'all' shared servers.' So. Could someone please tell me if this bug has been solved and if so, in what version? Cheers, -Toby Goldstone / [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] Re: Warning: mail() is not supported in this PHP build
run 'make clean' find out where your current PHP stuff is *now*. use that directory as --prefix=[dir] for the configure script. make; make test; make install; then, restart apache. always do this whenever you make any changes to anything even remotely apache-related. -Original Message- From: Matthew Loff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 1:30 AM To: 'Kyle'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Warning: mail() is not supported in this PHP build The build date in phpinfo() is the date that configure was run from scratch on the build... Try deleting config.cache in the PHP directory, then rerun configure. -Original Message- From: Kyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Warning: mail() is not supported in this PHP build Somebody mentioned that PHP checks to see if sendmail was installed when it was installing. Just I have another question, does anyone know where PHP puts everything when it installs? I keep recompiling PHP and Apache, and every time I run phpinfo() it still has the original build date. I tried deleting: /usr/local/lib/php /usr/local/include/php apache src/src/modules/php4/ - Kyle Kyle [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Warning: mail() is not supported in this PHP build in testmail.php on line 1 I don't remember disabling it when I compiled, and I can't find anything to specifically enable it when compiling. I'm running PHP 4.0.6. My sendmail_path is correct in my php.ini. I tried recompiling php4 and apache but it seems that it isn't overwriting the php modules. What files are used? I tried deleting the apache 1.3.20 src/src/modules/php4 folder. Any help would be greatly appreciated. -- 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] php mail form with predefined subject
link to the mail form like this: mailform.php?subject=Requesting+information+on and in the mailform, have a subject field something like this: INPUT TYPE=TEXT NAME=subject VALUE=?= $subject ? -Original Message- From: Ed Peddycoart [mailto:[EMAIL PROTECTED]] Subject: [PHP] php mail form with predefined subject I am in need of a mail form script which has the subject line filled in for the userHere's what I mean Let's say I have a webpage. On the web page is a picture of a truck, maybe a 1999 Ford F150. If the user clicks the pic, he/she is taken to a brief description of the truck. On the description page is a button which says email for more info. If the user clicks this button he/she is taken to a page which is a mail form, with the subject being something like, Requesting information on 1999 Ford F150 I guess what you could say, in a way, is that I want to have a mail form, with the subject set according to where the user is coming from...sort of, I guess... Can anyone point me to some example code on how to do this? Or an archive of php mailform scripts? Thanks, Ed -- 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] PHP irc chatrooms
[EMAIL PROTECTED] (Sam Masiello) wrote: Try #php :) Lots of people hanging out in there all the time. It seems that #php on efnet is more interesting than others :) -- Henrik Hansen -- 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] Array problem in PHP. Please help.
Ok, here's the print_r() output of my 2 arrays. The first really just has an extra dimension. How can I get the format of the first one looking like the bottom one (just an array of key = value pairs)? Thanks! Array ( [0] = Array ( [trade_date] = Trade Date ) [1] = Array ( [settle_date] = Settlement Date ) [2] = Array ( [symbol] = Symbol ) [3] = Array ( [blank] = Blank Field ) [4] = Array ( [account] = Broker Account ) [5] = Array ( [symbol_desc] = Symbol Description ) [6] = Array ( [symbol_desc] = Symbol Description ) [7] = Array ( [first_money] = First Money ) ) Array ( [trade_date] = Trade Date [settle_date] = Settlement Date [symbol] = Symbol [account] = Broker Account [symbol_desc] = Symbol Description [first_money] = First Money [buy_sell] = Buy/Sell [comm] ) -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: [EMAIL PROTECTED] hm: [EMAIL PROTECTED] ** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ** -- 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] multible queries and gets() command
Dear php support ! Im using the fgets() command in a counter. Basically the counter opens a txt-file gets the information from the previous query (see code below). Later this information will be evaluated and be written back into the txt-file (this is not in the code below). $fn = qrydata.txt; if (file_exists($fn)) { /* alte Zahl lesen */ $fp = fopen($fn,r); $zahl = fgets($fp,10); $date = fgets($fp,40); fclose($fp); } else If there are only a few queries this code works fine. In the last weeks I had a sharp increase in queries and the script will be called several times between getting the strings from the txt-file and writing a new string back to the txt-file. The gets() method is not only copying the lines out of the txt-file. It actually deletes them out of the txt-file. If a second query opens the file before the new string is written back into the txt-file, the variables are either empty or contain only a part of the string. I dont want to lock the file since this would enlarge the query time. Is there a command which copies only the strings out of the txt-file (without deleting it) ? Or do you have another idea to solve this problem ? Thank you very much for your help Jan please write me a response to [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] compiling
Jorge Inti Benites RocheHi! i'm trying to compile php4.0.6 for it i do: ./configure --with-zlib --with-mm --with-mysql --with-mcal=../libmcal --with -ldap --with-imap=/usr/lib --with-gettext --enable-ftp --with-db3=/usr/local /BerkeleyDB.3.2 --with-apache=../apache --with-mcrypt ok but when i try to compile the apache, this error appear: ./configure --activate-module=src/modules/php4/libphp4.a Configuring for Apache, Version 1.3.20 + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src cd ..; gcc -DLINUX=22 -I/home/facun/WebMail/paquetes/php-4.0.6 -I/home/facun/WebMa il/paquetes/php-4.0.6/main -I/home/facun/WebMail/paquetes/php-4.0.6/main -I/ home/facun/WebMail/paquetes/php-4.0.6/Zend -I/home/facun/WebMail/paquetes/ph p-4.0.6/Zend -I/home/facun/WebMail/paquetes/php-4.0.6/TSRM -I/home/facun/Web Mail/paquetes/php-4.0.6/TSRM -I/home/facun/WebMail/paquetes/php-4.0.6 -DUSE_ EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/local/BerkeleyDB.3.2/lib -Wl,-rpath,/usr/l ocal/lib -Wl,-rpath,/home/facun/WebMail/paquetes/libmcal -rdynamic -L/usr/l ocal/BerkeleyDB.3.2/lib -L/usr/local/lib -L/home/facun/WebMail/paquetes/libm cal -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lc-cli ent -ldl -lmm -lmcrypt -lltdl -lmcal -lldap -llber -ldb -lz -lcrypt -lresol v -lm -ldl -lnsl -lresolv -lm -lcrypt /usr/lib/libc-client.so: undefined reference to `mm_expunged' /usr/lib/libc-client.so: undefined reference to `mm_diskerror' /usr/lib/libc-client.so: undefined reference to `mm_lsub' /usr/lib/libc-client.so: undefined reference to `mm_flags' /usr/lib/libc-client.so: undefined reference to `mm_fatal' /usr/lib/libc-client.so: undefined reference to `mm_nocritical' /usr/lib/libc-client.so: undefined reference to `mm_notify' /usr/lib/libc-client.so: undefined reference to `mm_searched' /usr/lib/libc-client.so: undefined reference to `mm_status' /usr/lib/libc-client.so: undefined reference to `mm_login' /usr/lib/libc-client.so: undefined reference to `mm_list' /usr/lib/libc-client.so: undefined reference to `mm_critical' /usr/lib/libc-client.so: undefined reference to `mm_exists' /usr/lib/libc-client.so: undefined reference to `mm_log' /usr/lib/libc-client.so: undefined reference to `mm_dlog' collect2: ld returned 1 exit status make: *** [dummy] Error 1 Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. Error Output for sanity check = End of Error Report = Please could you help me? Thanks!! Jorge -- 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] Array problem in PHP. Please help.
foreach($oldArray as $a)) { list($key, $value) = each($a); $newArray[$key] = $value; } -Original Message- From: Michael Champagne [mailto:[EMAIL PROTECTED]] Sent: 12 iulie 2001 17:37 To: PHP General Mailing List Subject: [PHP] Array problem in PHP. Please help. Ok, here's the print_r() output of my 2 arrays. The first really just has an extra dimension. How can I get the format of the first one looking like the bottom one (just an array of key = value pairs)? Thanks! Array ( [0] = Array ( [trade_date] = Trade Date ) [1] = Array ( [settle_date] = Settlement Date ) [2] = Array ( [symbol] = Symbol ) [3] = Array ( [blank] = Blank Field ) [4] = Array ( [account] = Broker Account ) [5] = Array ( [symbol_desc] = Symbol Description ) [6] = Array ( [symbol_desc] = Symbol Description ) [7] = Array ( [first_money] = First Money ) ) Array ( [trade_date] = Trade Date [settle_date] = Settlement Date [symbol] = Symbol [account] = Broker Account [symbol_desc] = Symbol Description [first_money] = First Money [buy_sell] = Buy/Sell [comm] ) -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: [EMAIL PROTECTED] hm: [EMAIL PROTECTED] ** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ** -- 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]
AW: [PHP] associative arrays
hi adrian, many thanks for your tip. it works fine. kind regards martin -Ursprüngliche Nachricht- Von: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Juli 2001 15:46 An: Martin Lucas Cc: [EMAIL PROTECTED] Betreff: RE: [PHP] associative arrays $result = mysql_db_query(database,select item1, item2 from table); while ($row = mysql_fetch_array($result)) { $myArray[$row['item1']] = $row['item2']; } -Original Message- From: Martin Lucas [mailto:[EMAIL PROTECTED]] Sent: 12 iulie 2001 16:25 To: '[EMAIL PROTECTED]' Subject: [PHP] associative arrays Hi everybody i have the following database query: $result=mysql_db_query(database,select item1,item2 from table); while ($row=mysql_fetch_array($result)){ $a=$row[item1]; $b=$row[item2]; } what i need is an associative array, with $a as key and $b as value, containing each item1 and item2 from the database -- 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] Defining constants with a value of 0?
I'm running into some unexpected behavior that I can't figure out. This is with PHP version 3, where, to my knowledge, boolean is not built in. ?php define (true, 1); define (false, 0); echo gettype(true); echo gettype(false); ? The type of true is returned as an integer, while the type of false is returned as a string. Even if I say (int) 0, it still returns its type as a string. Can anyone explain to me why it behaves this way? Thank you. -Rob -- 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]I'm puzzled. TEXTAREA related.
-Original Message- From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 5:40 PM To: PHP General List (E-mail) Subject: [PHP]I'm puzzled. TEXTAREA related. hey- i have a page containing a form with a textarea field. The first part of the page is a quick IP check to make sure the request is coming from my computer. Here's the code I'm confused about: textarea rows=25 cols=80 name=news_info [snip] ?php readfile(lib/news_file.dat); ? /textarea brbr input type=submit name=submitnbsp;nbsp; input type=reset name=resetbr -this part above reads in data from the news file and it's put in between the textarea tags, so editing it is easier, then there is this part: ?php } if($submit) { $fileh = fopen(lib/news_file.dat, w); fwrite($fileh, $news_info); fclose($fileh); } ? Assuming the order of events in your script is as described above, here's what's happening: 1st request: script displays textarea (blank, or with old contents) $submit is unset, so no further action 2nd request: script displays textarea (blank, or with old contents) $submit is set, so *now* we write the new data out to the file 3rd request: script displays textarea with updated contents So...I'd expect the answer is to make sure you're updating the file *before* you look at its contents. --- Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full. LeTourneau University ||-- Henry Kissinger -- 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] Arggg
PHP PEOPLE, Sorry this is way off topic but can anyone point me to a place where I can find out how to mount/automount a tape drive in Linux? I need to know device name mount commands and tape drive commands etc...Been searching on the net for hours and the bits and pieces are not forming a whole :( 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] Finding Out Document That Included Another File
I have a PHP file that gets included by a lot of other files in a lot of other directories. Among other things, this file needs to display a link to that original page. I know I could specify this in a variable in each original file before the INCLUDE statement, but I'd like to do something more elegant and have the INCLUDED file recognize the original file dynamically. Is there some environmental PHP variable that has that info? -- SAMPLE -- Filename: /dummy/BigFile.php ? include ../ImportantFile.php; ? Filename: /ImportantFile.php ? echo $ConstantThatShowsTheFileThatIncludedIt; ? Results: /dummy/BigFile.php Thanks, Jeff Gannaway -- 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] Finding Out Document That Included Another File
The way PHP works currently, $PHPSELF will point to your original file. This is actually a problem, as it means that you cannot use relative includes in the included file if its in a different directory. There's currently discussion on the PHP-DEV list about changing this. Perhaps there's going to a be a new include_local function or, ideally, I'd love it if there was an environment variable set up that pointed to the included page so the script could handle any relative includes (or HTML links, for that matter) itself. For your purposes though, $PHPSELF should work. Hope this helps. Aral :) __ ([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]
[PHP] how to check if the required fields were filled in without the text in them?
Hola everybody; this is a simple form to send a mail via php, check if a field was filled in and prompt an error msg (if not) is easy but when the Submit button is presssed the text in the rest of the fields dessapear. How to avoid fields draining if one of them is no filled in? thanks Ani López html head titlemail send/title /head body bgcolor=#FF form name=emailer action=?php echo($PHP_SELF); ? method=post for: input size=26 name=forbr your name: input size=26 name=namebr your email: input size=26 name=mailbr tex:br textarea name=texto rows=8 cols=20/textareabr input type=submit name=submit value=enviar /form ?php $subjet = Welcome home [ www.lamundial.net ]; $headers = From: . $name . . $mail . ; $headers .= \nContent-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: PHP\n; if ($submit) { mail($for, $subjet, $text, $headers); } ? /body /html
Re: [PHP] Speed of loding PHP pages
So sprach »Aral Balkan« am 2001-07-11 um 14:59:44 -0400 : Personally, I couldn't be happier that Netscape won't be making browsers Ah, so Microsoft also stopped making operating systems? anymore and I wish that trouble-some bug of an excuse for a browser would just go away :) Well, Netscape 4 is not that nice, granted, but Mozilla rules! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 21 hours 36 minutes -- 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] Regular expression, parsing bad html in a xml document (strange)
I'm having problem with regular expression, not a good eek this week it seen like I alway's get a wall of problem. I know that it surely been ask a 1000 times, I look around, didn't find anythings, if you find somethings please point me out. So here what I want to do, I need to parse a xml document , but before to parse it I need to get rid of bad html that I don't want, but the document that I want require some stuff that I need too, so I don't want to get ride of all they HTML. So what I want to do, I already did a little bite of code that get out my good element and check for bad stuff, the only bad thing is that texttext-1 is a good stuff, but I need to change to lt; or it will do bad things with my xml parser. Here what I try $simple = XMLDATA ?xml version='1.0'? !DOCTYPE chapter SYSTEM /just/a/test.dtd [ !ENTITY plainEntity FOO entity !ENTITY systemEntity SYSTEM xmltest2.xml ] item text bad stuff texttext-1 text image title=Ceci est mon titre2 description=Ceci est ma description link=http://www.windplanet.com/; url=http://www.windplanet.com/images/news/988991159.gif; align=left width=235 height=131 size=13310/ text text image title=Ceci est mon titre description=Ceci est ma description link=http://www.windplanet.com/; url=http://www.windplanet.com/images/news/988991159.gif; align=left width=235 height=131 size=13310/ /item XMLDATA; //$simple = str_replace(\n\n, lt;br/ lt;br/ ,$simple); /* trouve moi tous les sauf suivant ceci ... */ $data = $simple; print $data; if(preg_match_all(/\(?:(?:\!|\/|\?|)(?:!xml|!DOCTYPE|!ENTITY|!image|!item|))/,$data,$cbadhtml)){ foreach( $cbadhtml as $key = $myarray){ foreach( $myarray as $key2 = $myarray2){ print pfont color='red'You can't use HTML here so . htmlentities($myarray2) . is not allowed/font/p\n; } } // what html? we exit //exit; } It find all the but doesnt' remove the one that I accept, so how can I find the bad and transform them to lt; ? Thank you and have a nice day. -- Francis Fillion, BAA SI Broadcasting live from his linux box. And the maintainer of http://www.windplanet.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] Re: Popquiz...
Elias [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How you mean *in it's original form* ? Lasse [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ..Or call it a riddle.. Whatever... :-) What did the following code look like in it's original form? function bitdef($prefix, $name, $bitnum) { define($prefix.B_.$name, $bitnum); define($prefix.F_.$name, 1 $bitnum); } Well, it's about as accurate a conversion of the original as it can be in PHP... People who knew/know the original should be able to recognise it... :-) Basically the question is if anyone can guess how his looked before I converted it to PHP... :-) -- Lasse -- 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] Please Help!!how to connect to a database server
hi. I am a newbie. We have a database server on the network along with an IIS (MS Internet Information server)server. We have PhP installed on IIS. What would the db connection parameters look like if I wanted to connect to our DB server. The database server name is USABASE. would it be... ? $servername=Usabase; $user=; $pw=xxx; mssql_connect($servername,$user,$pw) or die (Access denied); ? - Is it alright if I just give the servername or do I need to reference the port number or IP address as well? Thank you in advance, David
RE: [PHP] Re: $HTTP_REFERER 10
a partial suggestion would be to try an fopen() on the HTTP_REFERER if it was a static document like .html or .txt but if someone is being redirected from a CGI script or dyanmic page of any sort, it'll be virtually impossible to find out exactly where they came from and if that page is valid or not. or you could try to determine the host name of HTTP_REFERER, then perform an nslookup of that hostname to determine if it exists and is valid. but both of those will probably give your script a rather nasty performance hit while still not being 100% reliable. you can find out if the referrer *looks* OK, but there's virtually no way you can find out 100% if the referrer is actually where the user came from, and if it's an actual page somewhere out there on the internet... -Original Message- From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 10:01 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: $HTTP_REFERER 10 That's also something worth to be done, but first I need to know some possible variations of $HTTP_REFERER... I never saw one, when coming from another domain, without the 'http://'´part, so that's a regex to check, but I may be wrong... -- Julio Nobrega. One and One and One is Three Elias [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Maybe what you say about smallest refeerer length is true... but why don't you check via regexps the validity of the REFEERER format only if it was set? -- 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] building a search engine ??
and to answer one of the previous questions, yes... it is *very* resource intensive to scan an entire directory tree full of files every single time a user wants to search as far as i know, htdig indexes the information into one big file, and just reads thru that... which will save you loads of disk accesses and generally speed up search queries mucho... not to mention that allowing any users to submit data on a web form and then use that data in a command line tool is asking for trouble... :) best of luck. -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 8:46 AM To: void; [EMAIL PROTECTED] Subject: Re: [PHP] building a search engine ?? Why reinvent the wheel? Use htdig or one of the other open source search engines. There's a memo on the htdgi site on integrating PHP and htdig. Miles Thompson At 02:26 PM 7/12/01 +0200, void wrote: I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri $searchpattern $path is this too resource intensive ? How does this idea sound ? please let me know. thanx in advance for any replies. Cape Town South Africa -- 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] RE: building a search engine ??
You might also take a look at: http://www.php.net/manual/en/ref.mnogo.php On Thu, 12 Jul 2001, scott [gts] wrote: and to answer one of the previous questions, yes... it is *very* resource intensive to scan an entire directory tree full of files every single time a user wants to search as far as i know, htdig indexes the information into one big file, and just reads thru that... which will save you loads of disk accesses and generally speed up search queries mucho... not to mention that allowing any users to submit data on a web form and then use that data in a command line tool is asking for trouble... :) best of luck. -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 8:46 AM To: void; [EMAIL PROTECTED] Subject: Re: [PHP] building a search engine ?? Why reinvent the wheel? Use htdig or one of the other open source search engines. There's a memo on the htdgi site on integrating PHP and htdig. Miles Thompson At 02:26 PM 7/12/01 +0200, void wrote: I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri $searchpattern $path is this too resource intensive ? How does this idea sound ? please let me know. thanx in advance for any replies. Cape Town South Africa -- 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 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] building a search engine ??
This sounds interesting. Where can I find htdig? -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 12:20 PM To: php Subject: RE: [PHP] building a search engine ?? and to answer one of the previous questions, yes... it is *very* resource intensive to scan an entire directory tree full of files every single time a user wants to search as far as i know, htdig indexes the information into one big file, and just reads thru that... which will save you loads of disk accesses and generally speed up search queries mucho... not to mention that allowing any users to submit data on a web form and then use that data in a command line tool is asking for trouble... :) best of luck. -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 8:46 AM To: void; [EMAIL PROTECTED] Subject: Re: [PHP] building a search engine ?? Why reinvent the wheel? Use htdig or one of the other open source search engines. There's a memo on the htdgi site on integrating PHP and htdig. Miles Thompson At 02:26 PM 7/12/01 +0200, void wrote: I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri $searchpattern $path is this too resource intensive ? How does this idea sound ? please let me know. thanx in advance for any replies. Cape Town South Africa -- 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 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] building a search engine ??
http://www.htdig.org -Original Message- From: Navid A. Yar [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 10:50 AM To: 'scott [gts]'; 'php' Subject: RE: [PHP] building a search engine ?? This sounds interesting. Where can I find htdig? -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 12:20 PM To: php Subject: RE: [PHP] building a search engine ?? and to answer one of the previous questions, yes... it is *very* resource intensive to scan an entire directory tree full of files every single time a user wants to search as far as i know, htdig indexes the information into one big file, and just reads thru that... which will save you loads of disk accesses and generally speed up search queries mucho... not to mention that allowing any users to submit data on a web form and then use that data in a command line tool is asking for trouble... :) best of luck. -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 8:46 AM To: void; [EMAIL PROTECTED] Subject: Re: [PHP] building a search engine ?? Why reinvent the wheel? Use htdig or one of the other open source search engines. There's a memo on the htdgi site on integrating PHP and htdig. Miles Thompson At 02:26 PM 7/12/01 +0200, void wrote: I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri $searchpattern $path is this too resource intensive ? How does this idea sound ? please let me know. thanx in advance for any replies. Cape Town South Africa -- 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 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] Re: building a search engine ??
On Thu, 12 Jul 2001 14:26:33 +0200 impersonator of [EMAIL PROTECTED] (Void) planted I saw in php.general: I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri $searchpattern $path is this too resource intensive ? How does this idea sound ? Well you probably don't need too independent an engine. Only for *nix like systems (require external - to php - program). I think it'll take more resources for handling their connections, then avarage PHP only based search. But you are not planing having static indexes instead, do you? Will it be quick then? My PHP search, for example takes ~2M RAM for everything and it does not dependent on index files sizes (that it needs, but single index file size could soon be able to be limited, with their combined size still - intact). The script is not declared an open source (yet at least:). -- LeoN to e-mail: cut auto_no. if present. (.±.) ` to think - is to speak quietly, to speak - is to think aloud` My posted articles archive: http://nux.home.dk3.com/doc00.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] Alternative to phpMyAdmin
I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 6:47 AM To: Steph; [EMAIL PROTECTED] Subject: RE: [PHP] Alternative to phpMyAdmin mysql front is by far my favourite available from mysql download section. Steve -Original Message- From: Steph [mailto:[EMAIL PROTECTED]] Sent: 12 July 2001 05:01 To: [EMAIL PROTECTED] Subject: [PHP] Alternative to phpMyAdmin Hi all! I love phpMyAdmin, just makes life so easy :) But I just moved my site, and phpMyAdmin isnt working on my server yet, so does any one have any solid alternatives that I can install?? Thanks, Steph -- 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] Alternative to phpMyAdmin
I'd like to cast my vote for Webmin :-) www.webmin.com Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: Matthew Loff [EMAIL PROTECTED] To: 'Steve Brett' [EMAIL PROTECTED]; 'Steph' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, July 12, 2001 2:07 PM Subject: RE: [PHP] Alternative to phpMyAdmin I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 6:47 AM To: Steph; [EMAIL PROTECTED] Subject: RE: [PHP] Alternative to phpMyAdmin mysql front is by far my favourite available from mysql download section. Steve -Original Message- From: Steph [mailto:[EMAIL PROTECTED]] Sent: 12 July 2001 05:01 To: [EMAIL PROTECTED] Subject: [PHP] Alternative to phpMyAdmin Hi all! I love phpMyAdmin, just makes life so easy :) But I just moved my site, and phpMyAdmin isnt working on my server yet, so does any one have any solid alternatives that I can install?? Thanks, Steph -- 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] Alternative to phpMyAdmin
So sprach »Matthew Loff« am 2001-07-12 um 14:07:16 -0400 : I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ Well, but how is that going to work, if Steph wants to manage his databases on his providers server? Besides, mysqlfront is a Windows program... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 23 hours 13 minutes -- 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] Alternative to phpMyAdmin
After a little investigation, I figured out what was wrong - for whatever reason the server is requiring /index.php as part of the url. But thanks guys, I'll definitely look into MYSQL- Front!! -Original Message- From: Matthew Loff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 11:07 AM To: 'Steve Brett'; 'Steph'; [EMAIL PROTECTED] Subject: RE: [PHP] Alternative to phpMyAdmin I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 6:47 AM To: Steph; [EMAIL PROTECTED] Subject: RE: [PHP] Alternative to phpMyAdmin mysql front is by far my favourite available from mysql download section. Steve -Original Message- From: Steph [mailto:[EMAIL PROTECTED]] Sent: 12 July 2001 05:01 To: [EMAIL PROTECTED] Subject: [PHP] Alternative to phpMyAdmin Hi all! I love phpMyAdmin, just makes life so easy :) But I just moved my site, and phpMyAdmin isnt working on my server yet, so does any one have any solid alternatives that I can install?? Thanks, Steph -- 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] Alternative to phpMyAdmin
i manage the production mysql database on a linux server from my windows desktop at work it's an extremely nice program. :) many compliments to the authour, if he reads this list. -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 2:15 PM To: Matthew Loff Cc: 'Steve Brett'; 'Steph'; [EMAIL PROTECTED] Subject: Re: [PHP] Alternative to phpMyAdmin So sprach »Matthew Loff« am 2001-07-12 um 14:07:16 -0400 : I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ Well, but how is that going to work, if Steph wants to manage his databases on his providers server? Besides, mysqlfront is a Windows program... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 23 hours 13 minutes -- 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] Re: $HTTP_REFERER 10
Thank you Scott for the various ideas. I am preventing an eventual 'no referer' situation with a default url provided by who opens an account. I am getting (and trying to give :)) help on this list, so I will ask first before doing... Is it normal to announce personal projects here? This one is an open source referer system, where you can build a website to offer 'recommend' services to other people. When is it ready, can I post here? And maybe for some other projects too ;-) -- Julio Nobrega. One and One and One is Three Scott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... a partial suggestion would be to try an fopen() on the HTTP_REFERER if it was a static document like .html or .txt but if someone is being redirected from a CGI script or dyanmic page of any sort, it'll be virtually impossible to find out exactly where they came from and if that page is valid or not. or you could try to determine the host name of HTTP_REFERER, then perform an nslookup of that hostname to determine if it exists and is valid. but both of those will probably give your script a rather nasty performance hit while still not being 100% reliable. you can find out if the referrer *looks* OK, but there's virtually no way you can find out 100% if the referrer is actually where the user came from, and if it's an actual page somewhere out there on the internet... -- 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] Algorithm for repeating calendar events
Great, I'd like to steal it too then :). I just check php.net, but couldn't find it. In what section would you put it? Thanks. Reuben D. Budiardja On Tuesday 10 July 2001 05:34 pm, Rasmus Lerdorf wrote: Have any of you seen those calendar applications that let you program events that repeat periodically? You can set it to repeat every thursday, every week, every third week, every six months, and so on? I am developing such an application in PHP and I know that the client will ask for this feature. So in thinking ahead of time, I would like to know if any of you has had any experience developing such an application so that you can point me in the right direction. I just wrote one on the plane back from LinuxTag. I'll get it up on php.net soon and you can steal it from there. -Rasmus -- 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] Algorithm for repeating calendar events
Not quite live yet. You'll see it when it goes live. By the way, there is a very complete date class in PEAR that has pretty much everything you would need to build a calendar app. See pear/Date/Calc.php -Rasmus On Thu, 12 Jul 2001, Reuben D Budiardja wrote: Great, I'd like to steal it too then :). I just check php.net, but couldn't find it. In what section would you put it? Thanks. Reuben D. Budiardja On Tuesday 10 July 2001 05:34 pm, Rasmus Lerdorf wrote: Have any of you seen those calendar applications that let you program events that repeat periodically? You can set it to repeat every thursday, every week, every third week, every six months, and so on? I am developing such an application in PHP and I know that the client will ask for this feature. So in thinking ahead of time, I would like to know if any of you has had any experience developing such an application so that you can point me in the right direction. I just wrote one on the plane back from LinuxTag. I'll get it up on php.net soon and you can steal it from there. -Rasmus -- 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: $HTTP_REFERER 10
i know that i am always interested to see code posted on this list... even if i cannot personally use the code, i'm always curious to see how people write code. -Original Message- From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Re: $HTTP_REFERER 10 Thank you Scott for the various ideas. I am preventing an eventual 'no referer' situation with a default url provided by who opens an account. I am getting (and trying to give :)) help on this list, so I will ask first before doing... Is it normal to announce personal projects here? This one is an open source referer system, where you can build a website to offer 'recommend' services to other people. When is it ready, can I post here? And maybe for some other projects too ;-) -- 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] New host doesn't allow file uploads through PHP
If you use the documented mechanism for handling file uploads, then there is no such security problem. See http://www.php.net/manual/en/features.file-upload.php ie. use the move_uploaded_file() function. -Rasmus On Thu, 12 Jul 2001, Toby Goldstone wrote: Hi. I've (or rather the company I work for) recently transferred to a new new PHP host (www.hotchilli.com). All is fine, but they do not allow file uploads via a form, stating the following security risk: Arbitrary file disclosure through PHP file upload http://www.net-security.org/text/bugs/968074710,61298,.shtml The following, posted by Zeev, would seem to suggest that the above has been solved some time ago: http://www.securityfocus.com/templates/archive.pike?list=1mid=80197 Hotchilli also state that 'we have been advised in addition to this by the developers of PHP who we work with quite closely to disable the function on 'all' shared servers.' So. Could someone please tell me if this bug has been solved and if so, in what version? Cheers, -Toby Goldstone / [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] error compiling php4.0.6 with apache
Jorge Inti Benites RocheHi! i'm trying to compile php4.0.6 for it i do: ./configure --with-zlib --with-mm --with-mysql --with-mcal=../libmcal --with -ldap --with-imap=/usr/lib --with-gettext --enable-ftp --with-db3=/usr/loc al /BerkeleyDB.3.2 --with-apache=../apache --with-mcrypt ok but when i try to compile the apache, this error appear: ./configure --activate-module=src/modules/php4/libphp4.a Configuring for Apache, Version 1.3.20 + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src cd ..; gcc -DLINUX=22 -I/home/facun/WebMail/paquetes/php-4.0.6 -I/home/facun/WebMa il/paquetes/php-4.0.6/main -I/home/facun/WebMail/paquetes/php-4.0.6/main -I/ home/facun/WebMail/paquetes/php-4.0.6/Zend -I/home/facun/WebMail/paquetes/ph p-4.0.6/Zend -I/home/facun/WebMail/paquetes/php-4.0.6/TSRM -I/home/facun/Web Mail/paquetes/php-4.0.6/TSRM -I/home/facun/WebMail/paquetes/php-4.0.6 -DUSE_ EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/local/BerkeleyDB.3.2/lib -Wl,-rpath,/usr/l ocal/lib -Wl,-rpath,/home/facun/WebMail/paquetes/libmcal -rdynamic -L/usr/l ocal/BerkeleyDB.3.2/lib -L/usr/local/lib -L/home/facun/WebMail/paquetes/libm al -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lc-cli ent -ldl -lmm -lmcrypt -lltdl -lmcal -lldap -llber -ldb -lz -lcrypt -lresol v -lm -ldl -lnsl -lresolv -lm -lcrypt /usr/lib/libc-client.so: undefined reference to `mm_expunged' /usr/lib/libc-client.so: undefined reference to `mm_diskerror' /usr/lib/libc-client.so: undefined reference to `mm_lsub' /usr/lib/libc-client.so: undefined reference to `mm_flags' /usr/lib/libc-client.so: undefined reference to `mm_fatal' /usr/lib/libc-client.so: undefined reference to `mm_nocritical' /usr/lib/libc-client.so: undefined reference to `mm_notify' /usr/lib/libc-client.so: undefined reference to `mm_searched' /usr/lib/libc-client.so: undefined reference to `mm_status' /usr/lib/libc-client.so: undefined reference to `mm_login' /usr/lib/libc-client.so: undefined reference to `mm_list' /usr/lib/libc-client.so: undefined reference to `mm_critical' /usr/lib/libc-client.so: undefined reference to `mm_exists' /usr/lib/libc-client.so: undefined reference to `mm_log' /usr/lib/libc-client.so: undefined reference to `mm_dlog' collect2: ld returned 1 exit status make: *** [dummy] Error 1 Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. Error Output for sanity check = End of Error Report = Please could you help me? Thanks!! Jorge -- 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] Alternative to phpMyAdmin
Same here... I run MySQL on Win2k as well as Linux machines, and use Mysql-Front for things like table creation, user management, etc. It's also a great tool for EXPLAINing massive queries to find the most efficient. -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 2:17 PM To: php Subject: RE: [PHP] Alternative to phpMyAdmin i manage the production mysql database on a linux server from my windows desktop at work it's an extremely nice program. :) many compliments to the authour, if he reads this list. -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 2:15 PM To: Matthew Loff Cc: 'Steve Brett'; 'Steph'; [EMAIL PROTECTED] Subject: Re: [PHP] Alternative to phpMyAdmin So sprach »Matthew Loff« am 2001-07-12 um 14:07:16 -0400 : I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ Well, but how is that going to work, if Steph wants to manage his databases on his providers server? Besides, mysqlfront is a Windows program... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 23 hours 13 minutes -- 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] Algorithm for repeating calendar events
libmcal is a pain in the butt to set up, but once it's set up, it has some great features... I had to write a PHP page that handled scheduling of appointments, and mcal saved me a lot of time, after I spent the initial 2 hours pulling my hair to set it up. :) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 2:28 PM To: Reuben D Budiardja Cc: php php Subject: Re: [PHP] Algorithm for repeating calendar events Not quite live yet. You'll see it when it goes live. By the way, there is a very complete date class in PEAR that has pretty much everything you would need to build a calendar app. See pear/Date/Calc.php -Rasmus On Thu, 12 Jul 2001, Reuben D Budiardja wrote: Great, I'd like to steal it too then :). I just check php.net, but couldn't find it. In what section would you put it? Thanks. Reuben D. Budiardja On Tuesday 10 July 2001 05:34 pm, Rasmus Lerdorf wrote: Have any of you seen those calendar applications that let you program events that repeat periodically? You can set it to repeat every thursday, every week, every third week, every six months, and so on? I am developing such an application in PHP and I know that the client will ask for this feature. So in thinking ahead of time, I would like to know if any of you has had any experience developing such an application so that you can point me in the right direction. I just wrote one on the plane back from LinuxTag. I'll get it up on php.net soon and you can steal it from there. -Rasmus -- 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] browser tries to download not display
I am having a problem - hopefully someone can help me :o) I am trying to use a php document on a secure server, but instead of displaying output from the script, it tries to download the file. Even code this simple does it: ?php print(Hi); ? Thanks!!
RE: [PHP] browser tries to download not display
some questions ;) have you tried accessing the script non-secure? is php properly installed and running on your server? did you restart the server after installing PHP? are you using a different server to handle secure queries? does that server have php installed and configured properly? -Original Message- From: James Rodenkirch [mailto:[EMAIL PROTECTED]] Subject: [PHP] browser tries to download not display I am having a problem - hopefully someone can help me :o) I am trying to use a php document on a secure server, but instead of displaying output from the script, it tries to download the file. Even code this simple does it: ?php print(Hi); ? 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] newbie question
The ereg_replace for some reason doesn't always work. I tried this: HTLM BODY ? $st = This +is a test; $st = ereg_replace (=+is, and_is, $st); echo $st; ? /BODY /HTML ..and got: REG_BADRPT in b/usr/local/httpd/htdocs/test.php/b on line 5 What is wrong and how can I do what I want to? Thanx a lot in advance, André. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Regular expression, parsing bad html in a xml document (strange)
Lazy me, after a short break, alway's helping, I found out wthat it has to be: /\(?!\?xml|\!DOCTYPE|\!ENTITY|image|item|\/item)/ the ?! negate this text, I though that I could put it in every value like this (?!\?xml|?!\!ENTITY ... but no by putting in first he do it for all (k.i.s.s. Francis). Cu Francis Fillion wrote: I'm having problem with regular expression, not a good eek this week it seen like I alway's get a wall of problem. I know that it surely been ask a 1000 times, I look around, didn't find anythings, if you find somethings please point me out. So here what I want to do, I need to parse a xml document , but before to parse it I need to get rid of bad html that I don't want, but the document that I want require some stuff that I need too, so I don't want to get ride of all they HTML. So what I want to do, I already did a little bite of code that get out my good element and check for bad stuff, the only bad thing is that texttext-1 is a good stuff, but I need to change to lt; or it will do bad things with my xml parser. Here what I try $simple = XMLDATA ?xml version='1.0'? !DOCTYPE chapter SYSTEM /just/a/test.dtd [ !ENTITY plainEntity FOO entity !ENTITY systemEntity SYSTEM xmltest2.xml ] item text bad stuff texttext-1 text image title=Ceci est mon titre2 description=Ceci est ma description link=http://www.windplanet.com/; url=http://www.windplanet.com/images/news/988991159.gif; align=left width=235 height=131 size=13310/ text text image title=Ceci est mon titre description=Ceci est ma description link=http://www.windplanet.com/; url=http://www.windplanet.com/images/news/988991159.gif; align=left width=235 height=131 size=13310/ /item XMLDATA; //$simple = str_replace(\n\n, lt;br/ lt;br/ ,$simple); /* trouve moi tous les sauf suivant ceci ... */ $data = $simple; print $data; if(preg_match_all(/\(?:(?:\!|\/|\?|)(?:!xml|!DOCTYPE|!ENTITY|!image|!item|))/,$data,$cbadhtml)){ foreach( $cbadhtml as $key = $myarray){ foreach( $myarray as $key2 = $myarray2){ print pfont color='red'You can't use HTML here so . htmlentities($myarray2) . is not allowed/font/p\n; } } // what html? we exit //exit; } It find all the but doesnt' remove the one that I accept, so how can I find the bad and transform them to lt; ? Thank you and have a nice day. -- Francis Fillion, BAA SI Broadcasting live from his linux box. And the maintainer of http://www.windplanet.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] -- Francis Fillion, BAA SI Broadcasting live from his linux box. And the maintainer of http://www.windplanet.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] newbie question
Try this : $st = ereg_replace (\+is, and_is, $st); you have to escape the + sign it mean other things then just literal André Weidemann wrote: The ereg_replace for some reason doesn't always work. I tried this: HTLM BODY ? $st = This +is a test; $st = ereg_replace (=+is, and_is, $st); echo $st; ? /BODY /HTML ..and got: REG_BADRPT in b/usr/local/httpd/htdocs/test.php/b on line 5 What is wrong and how can I do what I want to? Thanx a lot in advance, André. -- 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] -- Francis Fillion, BAA SI Broadcasting live from his linux box. And the maintainer of http://www.windplanet.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] apache not handling 404 errors for .php pages
I have custom 404 error handling setup on my linux apache box, however, there's a problem with files that have a PHP extension. it seems that apache itself does not check for the existence of the requested .php file and fires up PHP no matter what. if PHP does not find the requested file, it'll bail out with that dorky looking Internal Server Error *NOT* the custom error handler that apache uses for non-php files example: notexists.html and notexists.php both do not exist http://server.com/notexists.html will show me the custom 404 page http://server.com/notexists.php will show me the Internal Server Error, becuase apache fired up PHP and passed in notexists.php without checking for the existence of notexists.php first. A possible solution that comes to mind is to auto_prepend a script that will check for the existance of the file that PHP is attempting to execute, and die gracefully if it does not exist on the server but that would be a bad kludge hack (if it even works at all) anyone have a more elegant solution? -- 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] apache not handling 404 errors for .php pages
on 7/12/01 12:38 PM, scott [gts] at [EMAIL PROTECTED] wrote: I have custom 404 error handling setup on my linux apache box, however, there's a problem with files that have a PHP extension. it seems that apache itself does not check for the existence of the requested .php file and fires up PHP no matter what. if PHP does not find the requested file, it'll bail out with that dorky looking Internal Server Error *NOT* the custom error handler that apache uses for non-php files example: notexists.html and notexists.php both do not exist http://server.com/notexists.html will show me the custom 404 page http://server.com/notexists.php will show me the Internal Server Error, becuase apache fired up PHP and passed in notexists.php without checking for the existence of notexists.php first. That would be the correct response from apache. Add this to your httpd.conf ErrorDocument 500 /path/to/my_error_page.html That should get you the result you want. DAve P.S. http://httpd.apache.org/docs/custom-error.html.html A possible solution that comes to mind is to auto_prepend a script that will check for the existance of the file that PHP is attempting to execute, and die gracefully if it does not exist on the server but that would be a bad kludge hack (if it even works at all) anyone have a more elegant solution? -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 [EMAIL PROTECTED] http://www.rblc.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] installation
the RPM is a binary. if mysql support is not in the RPM, there's no way to add it if you want to install PHP the simplest way, get the sources and compile it yourself as a stanalone binary (NOT using --with-apache or --with-apxs) then you can tweak it however you want, and compile in support for whatever you need... Here's the quick way of doing it: 1) download mysql, unzip it. 2) download PHP ,unzip it ./compile --with-mysql=/path/to/mysql and other options make make test make install 3) edit apache httpd.conf 4) restart apache done. :) -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 1:19 AM To: [EMAIL PROTECTED] Subject: [PHP] installation Hi there, Im just a new in PHP, please help me in installing PHP with mysql support using the RPM's format. It is much easier to install packages in Redhat6.2 in RPM's but it does not automatically install PHP mysql support. Please help me, i keep on trying installing this but it doesnt work. Mike -- 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] quotes
also: mysql_escape_string() will format data properly for use in MySQL queries -Original Message- From: Alexander Wagner [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] quotes Heidi Belal wrote: I have a problem using apostrophes/single quotes. I am using PHP and MySQL. The user enters data into the text field and everything goes ok, until an apostrophy/single quote is added in the middle of the text - then disaster occurs! Use addslashes() on the text before inserting it into the database. http://php.net/addslashes regards Wagner -- 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] -- 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] Credit Card script that really works...
You may also want to try Manuel Lemos' Form class -- it is very detailed and well coded solution that handles all sorts of form validation, including credit cards: http://www.phpclasses.upperdesign.com/browse.html/package/1 Aral :) __ ([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] how to check if the required fields were filled in without the text in them?
Use javascript to validate. This way the form is not submitted in the first place. You could use some server-side (PHP) validation just in case. html head titlemail send/title Script Language=JavaScript function validate() { jumpto = ; errors = ; var reg1str = (@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.); var reg2str = ^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$; var reg1 = new RegExp(reg1str); var reg2 = new RegExp(reg2str); if (document.emailer.name.value == ) { errors += 'Please enter a Name:\n'; if (!jumpto) { jumpto = document.emailer.name; } } if (reg1.test(document.emailer.mail.value) || !reg2.test(document.forms[0].mail.value)) { errors += 'Please use a valid Email Address:\n'; if (!jumpto) { jumpto = document.emailer.mail; } } if (errors) { string = The following fields were incomplete or invalid. Please complete them to continue.\n\n+errors; alert(string); jumpto.focus(); return false; } else { return true; } } /SCRIPT /head body bgcolor=#FF form name=emailer action=?php echo($PHP_SELF); ? method=post onSubmit='return validate()' for: input size=26 name=forbr your name: input size=26 name=namebr your email: input size=26 name=mailbr text:br textarea name=texto rows=8 cols=20/textareabr input type=submit name=submit value=enviar /form ?php $subjet = Welcome home [ www.lamundial.net ]; $headers = From: . $name . . $mail . ; $headers .= \nContent-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: PHP\n; if ($submit) { mail($for, $subjet, $text, $headers); } ? /body /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] referenced function not found errors. [ ap_block_alarms() ]
Hi, I just installed apache 1.3.20 on solaris7-sparc machine. When I try to start apache with PHP compiled as a module, I get... /www bin/apachectl start Syntax error on line 208 of /www/conf/httpd.conf: Cannot load /www/libexec/libphp4.so into server: ld.so.1: /www/bin/httpd: fatal: relocation error: file /www/libexec/libphp4.so: symbol ap_block_alarms: referenced symbol not found bin/apachectl start: httpd could not be started /www I did a search for the ap_block_alarms(), and found that it was a apache API call. If it is, then why can't php find it? Since the apache executable is the process loading PHP. Also does anyone know how to fix this? -Kervin -- 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] building a search engine ??
What you might want to try is something called ksearch.cgi, you'll find it at cgi-resources.com It's actually very good and very very small. It actually indexes your site and stores the info in several db databases or a text file, your choice and offers, if I'm not mistaken, boolean search, oh and the last time I checked it was free. If you dont want to use perl to run the search you should be able to access the data from php assuming the proper support is compile in rm At 02:26 PM 7/12/01 +0200, void wrote: I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.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] session management conflicts with xhtml specifications
My output does not validate as XHTML because of the sign in the a href that is automatically appendet by the php session management. it should be exchanged by an amp; entity. Is there a way to do this? There should be one I guess ... Thanks, Jan. Below are the results of checking this document for XML well-formedness and validity. a.. Line 1, column 963: ... a href=/?PHPSESSID=f40ca6652aa61b790cb53ae541b7904fPHPSESSID=52f628f ... ^ Error: unknown entity PHPSESSID (explanation...)
Re: [PHP] session management conflicts with xhtml specifications
You can change the arg_separator setting in your php.ini file. ie. arg_separator = amp; or perhaps: arg_separator = ; -Rasmus On Fri, 13 Jul 2001, Jan wrote: My output does not validate as XHTML because of the sign in the a href that is automatically appendet by the php session management. it should be exchanged by an amp; entity. Is there a way to do this? There should be one I guess ... Thanks, Jan. Below are the results of checking this document for XML well-formedness and validity. a.. Line 1, column 963: ... a href=/?PHPSESSID=f40ca6652aa61b790cb53ae541b7904fPHPSESSID=52f628f ... ^ Error: unknown entity PHPSESSID (explanation...) -- 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] Thumbnail Generation from DB Stored Images.
Hello! I have images stored in a MySQL Database. I can retrieve the images and display them without a problem, but I'd really like to be able to create thumbnails. The code that I've written just doesn't seem to work. Preferably, I'd like to pull the image from the database, and create the thumbnail for display, without ever writing an image to the disk. If this is not possible, I'd like to know alternate methods. I'm using imagemagick's convert utility to create the thumbs. Here is my code: getpic.php: ?php if($id) { @MYSQL_CONNECT(localhost,username,mypassword); @mysql_select_db(daelic); $query = select image,type from images where id=$id; $result = @MYSQL_QUERY($query); $data = @MYSQL_RESULT($result,0,image); $type = @MYSQL_RESULT($result,0,type); Header( Content-type: $type); echo $data; }; ? tgen.php: ?php if ($id) { $src = getpic.php?id=$id; $thumb = passthru(convert -geometry 40% $src jpeg:-); print $thumb; }; ? I know that getpic.php works. I can use it in like this: echo IMG SRC='getpic.php?id=$id'; and it will output the fullsize graphic in place. I'm trying to get to a point where I can use tgen.php in the same mannor. I can use the same convert command if I use an actual file, like pics/mypic.jpg and it works, so the command is good. any help at all would be very appreciated, Jason Bell
[PHP] replacing part of string with values in array
hello, ok heres the thing ;) lets say i have array(part1, part2, part3, part4); now i have string like $string = here's PART and heres PART, another PART here and final PART here; now i wanna replace first PART in string with part1 from array and second PART with part2 from array ... one more thing is that i dont know how many parts there will be in string .. but i know that array and string will have the same number of parts ;) help plz :) -- 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] replacing part of string with values in array
Shoot from the hip response... untested function resolveParts( $str, $partsArray ) { // explode the original $str based on 'PART' $stringBits = explode( 'PART', $str ); //Ok. So now we have two arrays. The length of partsArray // should be one less than stringBits $blended = array( array_shift( $stringBits )); while ( $stringBits ) { $blended[] = array_shift( $partsArray ); $blended[] = array_shift( $stringBits ); } return implode( $blended, ); } At 01:30 13/07/2001 +0200, Gregor Jaksa wrote: hello, ok heres the thing ;) lets say i have array(part1, part2, part3, part4); now i have string like $string = here's PART and heres PART, another PART here and final PART here; now i wanna replace first PART in string with part1 from array and second PART with part2 from array ... one more thing is that i dont know how many parts there will be in string .. but i know that array and string will have the same number of parts ;) help plz :) -- 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] - Brian White Step Two Designs Pty Ltd - SGML, XML HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [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] Upcoming wrox php/flash book?
I was searching for a Flash book today and ran across the following book, due to be released in September 2001: http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016 0 It's entitled Foundation Php for Flash 5 Now, I've never heard of using PHP to control Flash and, given the different ways they work, can't see how it would even be possible. (I'm no flash expert, but I believe they have to be pre-compiled .swf files to be displayed in a web page.) Wrox.com has no mention of this book in their upcoming releases section and google didn't turn up any hits, either. (Amazon doesn't have the book listed in their DB) Does anyone know any more about this book (and what PHP is going to be doing with Flash?)? I'm more inclined to believe someone over at Barnes Noble goofed, but stranger things have happened. --kurt -- 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] Upcoming wrox php/flash book?
http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016 0 BTW, in case this link doesn't work for some of you, note that some mail clients (including my version of Outlook) wrap the href and don't maintain the link. (note the trailing 0 in the link above) Sorry for any confusion. --kurt -- 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] Strong typing?
PHP is a great language. It makes it fast and easy to create web pages. However, one feature which is critical for doing rock-solid stable websites is strong typing. The reason for this is that you're dealing with untrusted user input. Strong typing helps because if you are expecting an INT, and the user gave you something else, and you made a mistake in your input checking, the program will fail when you attempt to assign the value to the strongly-type INT variable. This is a good thing when you are dealing with money, or other contexts where you need very solid code. First, is there a plan to introduce a strong typing option, like perl's strict mode? Second, is there a way to get something equivalent to strong typing using the class system? 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]