Re: [PHP-WIN] Re: multilanguage solutions
www.zaban.net supports 4 labguages ! ! ! ! toby --- Victor Dachev [EMAIL PROTECTED] wrote: Well, http://www.invisionboard.com/ use maybe something simular. The best of all is that if for example I translate it to a new language, trough their admin graphic interface I can export the langiage pach to a sincle file with one click and to share it with other people using that board who ned the language. Donatas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, I have this question here... has anyone heard of any project to help make a multilanguage website? Lets say all 'static' strings are stored in a database and managed through some webinterface? And then when you want to add new language the your website you do it through the same interface. Or something alike. Actually I've done something similar and now wondering if there are any other projects to compare to. /Donny -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] test
Not one which was appreciated here ... my reaction was that it was a screwed-up virus attempt ... especially as it appeared to fit with the Sophos emergency alert regarding W32/MyDoom-A ... o lord . :'( whats that now ? either all u guyz have gone out for a holiday to another galexcy or i must have been there . coz i simple fail to understand all this now .. :'( -Original Message- From: Daniel Perez Clavero [mailto:[EMAIL PROTECTED] Sent: 28 January 2004 09:22 To: Svensson, B.A.T. (HKG); 'toby z '; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] test No is not. Is the result of md5(My_first_script.php). I crypt it to hide the code, because was a shame until I debug it as it should be... ;-) Sorry. Just a Joke jeje -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] test
ok this is from jupiter . right ? :S --- [EMAIL PROTECTED] wrote: -Y ͦòÝù£mkdWL¨ÔSäbãì-Âæk5TĨ!!e1¶«»M11*aìàtÌǪ«*nÇNÌôþiÚÇ(ö¢Çc#úP½¡¡YÞf¦»® «ÁârúÂÎôänµa$BºP«la±Ö³ìsó¼ºu:MfÛ¯i-î¾`ú©ü%cîdk^¨óâLI½øAC§ÌwCïÊï®´#ùýzxAÛ^KSRðJÞ¹úÞòMÄ)æºFC1ÐM`78(±Zàt±m²1xYÓ?E¦UnðVF,y(÷åhäxËíVûô󺩷-lϽ8ʼm´¯U3.k¢Qç!Ú?»¢eB»NêñCke?å´aÍûô6íVF·ê¾Kä,°ô?%üÊ$æcLbǬüSÀ/Z3ÅjÇ£ºd-ä í¬)?ï¶ í fVéÞÖDõ7°°½g¹ ÑÙéÃeaH!ð¦[j9(½ »t®Ç'À©D©©C(Û®Ëí®!å±Mü¼jÔÎòBm*Z²ËììTjüã ¯¨;cü¯ÖIJ!û1½Ò^{/(G r~V¦³*1õK¼DìHJ\SIKÙæL©'éqû¹Ýyèãf÷_Õøs´IótcpúURq#y, »Á¨ÊéÐXY!dÕó²ù7éYMáÌÄJ}!1.·ýØò,lOãWÈi¸âÄlðH¿'JIµÛ¨Hoå¼¹#¯ÅufÁúa¼voi?nñ^(Sô磶Ό)qzÙu¡ä³î%:©F(P.d$ßÛxÎ'c Xæ*á:]YNòtÉ2±§¢wÇ(»6,[×H oübÖ32sïL8iMzº09XOô10ÇC÷.v,²òë'tIQÂùuNÖ#A:ñ\Ùãñs1~ ¶1¾ohùüÄ BsB!^}ÞaÙÑe¥é2Ib«tIÚæA«ZH'£ûj½áL©;äÖD§¾¼Ö'\ ñD¬üƯ:kQgû6´»¬®dÕ\KR½«D)ìwRW[K)·©Eé1gW KDÚ··ÎÉÅw/EÕcÃIi(zWu3ég[*ÔfÕJÙÑsYk÷ j§ü0ûË%!v°±ÊÒgçΡ»,¹åÄÉa8¡âyy ³0ªåp$ÌÄùQmßT¥Ùv νLÍoz«à;øÒI\¾%}b¥js·'¸½¡{mdMòtö ÔÙîÉËHùîyÌ8¹òpÁN¿ErÁ0LÞîêI}±8rXëh\ÁîcGC¥ìät«UB§©9íËSÜ¢õ¼þ ^¬¤z£^*¤ÒÜ%ÑhߦG9*,)Ñ¥ªJý¤DòòÖK¹ÕXq¹Jg|` ;Ü1gul¶}лµRC² Hwªòváã{GBü%jþôÉ£G¾½×â»û «cRµ,örÍ0Ït{ 2ø1)ý¨¡X®TâÅ_àÈÙ6ÀWZ÷Ç9¿¢þe¨¦c.Âj«FM :sJY%i'®T±Yq8_T:B) d~ øã±ìOÌby$ô¾»t(ýUQ`Õ:Æ{WjeÕëMÛ:L uØ*sj辶qí¶,Áj?«Àp¿Óx`ûȷج A§Égƽ¸BÉ%©dup\¿/ÏÊh½ÂiÍÝÜÖææñÒf8ü1MQgä|ÑoÕ\ìé2ÙÌIÕ¨Ìhäì®,°[ýbéRfys?ùü:xDÇÃJãõxr«o×oNU¨°rrܨsbo#¦ÙÙN)åÂ|ýªo!pËÎþÅæîúYXõöC¼p3Àâc³|¥o´l]VD¦è!¼íF5 ^(ýÊÙÒ꫹göÎ ¨}H2ZÁí®Ä hÙ|3úê (xfBaf|Ç{ Vr¤í¥aÇÓ3Çckåfy¸Ð¤è -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: [Help on getting BLOB from MySQL in PHP]
well :) that wasnt a blob file as far as i can recall it was just unicode data entered into a blob field and then retrieved to be displayed on a browser results have been the same with iis and apache :S working with images is possible playing around with php, fetching them from a blob field . im afraid i've never tried tell me what are you trying and whats actually going wrong explicitly i might be able to help you out good luck toby --- Askia Ahmed [EMAIL PROTECTED] wrote: Hello, I sow that you seem to have experienced the problem of getting a BLOB file from a MySQL Database and displaying it in a PHP. So I have a similar problem using IIS and trying to get images from MySQL and display them in PHP page. This works fine with Apache but the verry same script fails under IIS. Any help would be verry apprecied. Best regards. Askia. Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] uploading books
hay guyz . im thinkin about uploading a whole book on ma application that lets you upload files upto 2Megs theres a posting at http://www.php.net/manual/en/features.file-upload.php which sayz you can go upto 600 megz guyz well either way . i need to be able to upload files containing images too . how should i go about this ? and more yet my files are stored in a temp directory on the web server, i have to open them up and copy paste the material in em, is there a way to let the thing go directly to article_display page any suggestions ? thnx a mill toby Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] need back up .......
hay guyz this is a rather quick one . are these two releases stable php 4.3.++ what ever n apache 2 ? how many buggz have you guyz encountered so far ? what kind briefly plz i guess i just got ma self in a bit of a querrel with ma god-fo-saken boss here . n i need backup .. i would really appriciate any kind of it . thnx guyz . toby :) BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be. http://uk.rd.yahoo.com/evt=21064/*http://btyahoo.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] page cannot be displayed
yeah anders . send me em .. :) id luv to do it . n it will only cost u an arm n a leg .. :) practically . (A) waitin fo the files .. toby --- Svensson, B.A.T. (HKG) [EMAIL PROTECTED] wrote: On Wed, 2003-12-10 at 13:04, toby z wrote: n since i aint got nuthin better on ma hands to do these dayz . so guyz if anyone needs any testing of a proj done . im all here . toby . Well, I have this small VBScript file I need to port to php... :) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] DB Indexing
ofcourse it does . :) toby --- Herhuth, Ron [EMAIL PROTECTED] wrote: Quick question...does MySQL offer column based indexing? I'm looking to store resume text which can be quite lengthy in a database field for searching. I have already built the app that takes a MS Word resume and extracts and stores keywords in MS SQL and the searches are lightning fast with over 500 resumes, but a new client of mine isn't running MS SQL so I have to look at the reality of trying to use MySQL as a solution. Thanks, ROn -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] page cannot be displayed
hay hayden, well, can u send me ur ini file ill check it through fo u . n since i aint got nuthin better on ma hands to do these dayz . so guyz if anyone needs any testing of a proj done . im all here . toby . --- Hayden Kirk [EMAIL PROTECTED] wrote: Hi Im using php.exe on win2k. When I visit a php page i get page cannot be displayed. Other pages work fine. Any ideas? the php dll wont work at all, it refuses to read the ini file at all. Really anonying, cant figure this out. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be. http://uk.rd.yahoo.com/evt=21064/*http://btyahoo.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Award Notice
what on earth is all this or have i missed somethin here :S :| :[ --- Greg Ossai [EMAIL PROTECTED] wrote: STRITLY CONFIDENTIAL FROM:DR .GREG ossAI, DEAR SIR, I AM DR.GREG OSSAI Ossai AN ACCOUNTANT (FOREIGN PAYMENT DEPT) WITH THE FEDERAL MINISTRY OF TRANSPORT LAGOS- NIGERIA. WITH THE ASSISTANCE OF SOME SENIOR OFFICALS OF THE CENTRAL BANK OF NIGERIA,AND THE MINISTRY OF FINANCE, WE WANT TO TRANSFER THE SOME OF THIRTY-FIVE MILLION US DOLLARS OUT OF MY COUNTRY, NIGERIA. THE THIRTY-FIVE MILLION US DOLLARS IS AN ACCUMULATION OF OVER-INVOICED CONTRACTS WHICH HAS ALREADY BEEN EXECUTED AND COMMISSIONED. THIS AMOUNT STILL LIES IN THE FEDERAL MINISTRY OF TRANSPORT SUSPENCE ACCOUNT WITH THE CENTRAL BANK OF NIGERIA(CBN). AS CIVIL SERVANTS WE CANNOT OPERATE A FOREIGN ACCOUNT BECAUSE THE CODE OF CONDUCT ACT IN NIGERIA MAKES IT AN OFFENCE FOR ANY PUBLIC OFFICER TO OPERATE FOREIGN ACCOUNT. IT IS AS A RESULT OF THIS THAT WE SOLICIT YOUR ASSISTANCE TO MAKE USE OF YOUR PRIVATE/ COMPANYS ACCOUNT TO TRANSFER THE SAID SUM. PLEASE NOTE THAT ALL MODALITIES HAS BEEN WORKED OUT FOR A SMOOTH AND HITCH-FREE TRANSFER OF THE US$35MILLION INTO YOUR ACCOUNT, WITHIN TEN WORKING DAYS OF GETTING YOUR POSITIVE RESPONSE AND CONSENT. YOU WOULD BE ENTITLED TO 20% OF THE $35,000,000:00 FOR PROVIDING US AN ACCOUNT, 75% WOULD COME TO US IN NIGERIA, AND THE REMAINING 5% WOULD BE USED TO OFFSET ALL LOCAL/FOREIGN EXPENDITURE ON THE FOLLOWING GROUNDS. (A) THAT WE ARE SATISFIED ON ALL GROUNDS THAT OUR SHARE OF THE FUND WOULD BE GIVEN TO US AFTER TRANSFERENCE. (B) THAT THIS TRANSACTION IS TREATED WITH UTMOST CONFIDENCE,SECRECY AND ABSOLUTE SINCERITY, WHICH IT DEMANDS. IF YOU ARE INTERESTED IN THE PROPOSAL, YOU CAN CONTACT ME THROUGH MY EMAIL ADDRESS:[EMAIL PROTECTED] TO ENABLE US DISCUSS FURTHER DETAILS ON THE TRANSACTION. YOU ARE ALSO REQUIRED TO PROVIDE A SECURED TELEPHONE AND FAX FOR THE PURPOSE OF THIS TRANSACTION. EXPECTING TO HEAR FROM YOU SOONEST YOURS FAITHFULLY, DR. Greg Ossai. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs http://www.yahoo.co.uk/robbiewilliams -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Fatal error, but include_path seems correct?
hay rod im sorry im lost . from what i understand . u want to point ur url to www.myserver.com/phpMyAdmin254 :S well . u can give the ip instead of localhost or www.myserver.com/phpMyAdmin254 like $cfgPmaAbsoluteUri = 'xxx.yyy.z.a'; or even with a port as i do since im runnin both iis n apache on ma machine - $cfgPmaAbsoluteUri = 'xxx.yyy.z.a:8095/myadmin/'; or even ur machine name - $cfgPmaAbsoluteUri = 'http://shagg:8095/myadmin/'; im sorry if i havent answerd ur question . :$ ping me again if yes . toby --- Roderick Martin [EMAIL PROTECTED] wrote: Toby, Maybe this is something. $cfg['PmaAbsoluteUri'] is set to http://www.myserver.com/phpMyAdmin254; (of course, myserver being my real server) $cfg['Servers'][$i]['host'] = 'localhost'; Both of these were set this way already (before your suggestion). Now, mysql runs locally in a console with its setting pointing to localhost. Might the problem be that PmaAbsoluteUri is not set to the localhost equivalent, but the external URL? If so, how do I figure out where http://localhost/; points to so I can complete the path? I tried entering http://localhost/; in IE on the source computer, but I got an error. thanks!!! On Nov 13, 2003, at 11:54 PM, toby z wrote: hay rod locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file and put the path by which ur trying to access myadmin . like 'http://localhost/myadmin/'; then $cfgServers[$i]['host'] = 'localhost'; and 3rd u need-not include path to myadmin in ur include_path in php.ini :) good luck toby configurtion is a rather hair-tearing and mind-repairing process bare with it :) --- Roderick Martin [EMAIL PROTECTED] wrote: Tried it. Same error message... Fatal error: Failed opening required './libraries/grab_globals.lib.php' (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: \Netscape\SuiteSpot\docs\phpMyAdmin254') ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote: Try : D: \Netscape\SuiteSpot\docs\phpMyAdmin254 Instead of : D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries for your include path. Eric At 16:34 13/11/2003, Roderick Martin wrote: My setup: PHP 4.0.6 Windows NT 4.0 Netscape-Enterprise/3.6 SP3 Installed phpMyAdmin to the root of the server, which is d:/Netscape/SuiteSpot/docs/phpMyAdmin254/ I get the error: Fatal error: Failed opening required './libraries/grab_globals.lib.php' (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries') ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 As you can see, I've added the path to phpMyAdmin in my include_path, but it still errors out. Yes, there is a /libraries folder containing grab_globals.lib.php. Any suggestions? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ _ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] WIN-IIS File Upload error
hay 1. check temp_uploads settings in ur php.ini 2. try this $userfile_name=$_FILES['userfile']['name']; //The original name of the file on the client machine. $userfile_type=$_FILES['userfile']['type']; //The mime type of the file, if the browser provided this information. An example would be image/gif. $userfile_size=$_FILES['userfile']['size']; $userfile_from = $_FILES['userfile']['tmp_name']; $name = name u want the file to b uploaded with; $file = $_FILES['userfile']['tmp_name']; if (is_uploaded_file($file)) { /* copy's the file to the dir you want */ //print_r(Copying .$file); if (copy($file, files/. $_FILES['userfile']['name'])) { /* instead of : if (move_uploaded_file($userfile_from, ./files/ . $unique_id . $userfile_name)) */ echo(file uploaded successfully); } == hope it helps good luck toby --- Vladimir Iahnenco [EMAIL PROTECTED] wrote: Hi, All, I tried to implement the file upload on a WEB server and run into the issue. 1.Test case 1. WinXp, IIS, localhost - no problems. 2. Test case 2, Win2000, IIS, remote PC. The error log, print_r $_FILES, and source follow below. I saw some notes about the sharing. I tried to set tmp and Doc dir as Web shares - that didn't work. Thanks in advance. Warning: move_uploaded_file(D:\INETPUB\WWWROOT\SCS\Documents\Club 977 HI.pls): failed to open stream: Permission denied in d:\inetpub\wwwroot\scs\upload3.php on line 42 Warning: move_uploaded_file(): Unable to move 'D:\Inetpub\php\Temp\php25.tmp' to 'D:\INETPUB\WWWROOT\SCS\Documents\Club 977 HI.pls' in d:\inetpub\wwwroot\scs\upload3.php on line 42 == Array ( [myfile] = Array ( [name] = Club 977 HI.pls [type] = audio/scpls [tmp_name] = D:\Inetpub\php\Temp\php25.tmp [error] = 0 [size] = 420 ) ) = if(isset($_FILES[myfile]) and $_FILES[myfile][name] != ''): //my file parameters $myfile = $_FILES[myfile][tmp_name]; $myfile_name = $_FILES[myfile][name]; $myfile_size = $_FILES[myfile][size]; $myfile_type = $_FILES[myfile][type]; $error_flag = $_FILES[myfile][error]; $local_dir = stripslashes($_POST['TARGET_DIR']); //$local_dir = $_POST['TARGET_DIR']; $local_file = $local_dir.basename($myfile_name); $can_move= True; $response= 'Ok'; $info= ''; $info1 = ''; $info2 = ''; $info3 = ''; // no error if($error_flag == 0): if ( file_exists($local_file) ): if ( unlink($local_file)): $info2 = File Old file deleted; else: $info2 = 'Can not delete existing file'; $can_move = False; $error_flag = 1; endif; endif; if ( $can_move ): if (move_uploaded_file($myfile, $local_file)): = $info1 = 'File '.$local_file.' saved.'; $response = 'OK'; else: $info1 = 'File '.$local_file.' not saved.'; $info2 = 'Can not move '.$myfile.' to '.$local_file; $response = 'ERROR'; $error_flag = 1; endif; else: $info1 = 'File '.$local_file.' not saved.'; $response = 'ERROR'; $error_flag = 1; endif; else: $info1 = 'File transfer error.'; $response = 'ERROR'; endif; if ( $error_flag==0): $info='File upload successful'; else: $info='File upload error'; if ( $debug_mode): print_r($_FILES); endif; endif; -- Best regards, Vladimir --- mailto: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Fatal error, but include_path seems correct?
hay rod locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file and put the path by which ur trying to access myadmin . like 'http://localhost/myadmin/'; then $cfgServers[$i]['host'] = 'localhost'; and 3rd u need-not include path to myadmin in ur include_path in php.ini :) good luck toby configurtion is a rather hair-tearing and mind-repairing process bare with it :) --- Roderick Martin [EMAIL PROTECTED] wrote: Tried it. Same error message... Fatal error: Failed opening required './libraries/grab_globals.lib.php' (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: \Netscape\SuiteSpot\docs\phpMyAdmin254') ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote: Try : D: \Netscape\SuiteSpot\docs\phpMyAdmin254 Instead of : D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries for your include path. Eric At 16:34 13/11/2003, Roderick Martin wrote: My setup: PHP 4.0.6 Windows NT 4.0 Netscape-Enterprise/3.6 SP3 Installed phpMyAdmin to the root of the server, which is d:/Netscape/SuiteSpot/docs/phpMyAdmin254/ I get the error: Fatal error: Failed opening required './libraries/grab_globals.lib.php' (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries') ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 As you can see, I've added the path to phpMyAdmin in my include_path, but it still errors out. Yes, there is a /libraries folder containing grab_globals.lib.php. Any suggestions? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: FW: [PHP-WIN] HOW DO I FIND GD LIB ENABLED
Ok I couldn't find it in my phpinfo() output. I did find the file in c:\php\... and also I found extension=php_d2.dll syntax in php.ini but there is semi colon (;) before it. yeah ofcourse there is a semi-colan means it commented out ! ! ! ! Even I remove (;) semi colon from it, and restart my pc, but still its not in phpinfo() page. u dont need to restart ur machine just restart apache service Need help quick on this one... learn to go polite on people pal good luck toby -Original Message- From: Frank M. Kromann [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:35 AM To: 'PHP Help Desk' Subject: Re: [PHP-WIN] HOW DO I FIND GD LIB ENABLED Hi, The GD librarry is included in a DLL on Win32. You need to load the library from php.ini with extension=php_gd2.dll or from the script with dl(php_gd2.dll); You can check the output from phpinfo(); to see if the GD has been loaded. - Frank Hi, Can I find that my php version support gd library, My php version is 4.3.3 and server is IIS 5.0 and I want to configure it for JPGraph. Thnx in advanced. Faisal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] What should I learn
well get or make ur self a project . include as many modules as u can think of start codin in php go for javascript or vbscript checks on froms file uploads n downloads full db manipulation the works . i didnt know anything but c/c++ n html n veeery basics of a few other languages . when i started off with php so my dear theres no pre-requisite for learnin php all u have ot do is do it code it :) n ull learn php good luck toby --- GaguWD [EMAIL PROTECTED] wrote: If you already know HTML then you're ready. You can also learn the basics of JavaScript and know the difference between Server-Side and Client-Side languages. At least, that worked in my case. Bye! MG29 -Mensaje original- De: Rocco CAstoro [mailto:[EMAIL PROTECTED] Enviado el: Domingo, 09 de Noviembre de 2003 02:30 p.m. Para: [EMAIL PROTECTED] Asunto: [PHP-WIN] What should I learn What should I learn first, before I learn PHP to make it possible to actually become skillfull at PHP.. I Already know HTML and have worked with QBasic DOS Language. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] talking to flash
hay i generated a pie graph in flash passing it a string of vales from a php script which ofcourse got those from a table query i did this with bar graphs and jp-graphs too all u have to do is make proper strings of values and pass them to a page which would generate a graph for u based on the values passed but then, all this is to generate a graph n i dont know what u are actually at there if u'r tryin it for graphs ill be able to help u out :) good luck toby --- Bobo Wieland [EMAIL PROTECTED] wrote: Hi! How do I set up a php-script so that it can communicate with Flash MX? I send a querystring to the php-script - but I don't know how to return anything from that function or how to check if it works... Anyone? I guess it would be the same principles as to communicate with some other program, so if you know how to communicate with something other then Flash that would be great too... thanks! .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Register Globals
no ! ! ! ! --- [EMAIL PROTECTED] wrote: Just out of curiosity, if I was to work with register_globals set to on (on my home/testing/devel server), and then transfer my scripts across to a hosting server for them to be run live, will my scripts run if the PHP.ini file is configured to have register_globals set to off? Tryst -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Register Globals
:) when u r workin with regs on u catch ur form variables just like $variable but when u work with regs off . u need to catch ur variables with $_POST[variable] or $_GET[variable] ur scripts will run fine on ur machine with regs on n variables $variable but ofcourse when u transfer them to ur host which will have regs off .. im sure u can imagine the diseaster .. or should i spell it out ?? better to avoid the fuss . afterwrds of changin all ur from process pages . n listen to experience talkin pal . i didnt n i suffered :) good luck . toby . --- [EMAIL PROTECTED] wrote: Ok, thanks. Is that because on the hosting server that I transfer my scripts to, they have their own PHP.ini file that relates to all scripts that are run on that server? Tryst no ! ! ! ! --- [EMAIL PROTECTED] wrote: Just out of curiosity, if I was to work with register_globals set to on (on my home/testing/devel server), and then transfer my scripts across to a hosting server for them to be run live, will my scripts run if the PHP.ini file is configured to have register_globals set to off? Tryst -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP Graph
try these links http://www.webguys.com/pdavis/programs/html_graphs/ http://www.boutell.com/gd/ http://www.szewo.com/php/graph/eng.phtml http://php.resourceindex.com/Complete_Scripts/Images_and_Graphs/Graph_Creation/ hope these help good luck toby --- Ignatius Reilly [EMAIL PROTECTED] wrote: Investigate Jpgraph. Fantastic package. http://www.aditus.nu/jpgraph/ Ignatius _ - Original Message - From: Rinku Shivnani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 7:47 AM Subject: [PHP-WIN] PHP Graph Can any of you help me in making graph for numeric data for an application in PHP. Can any of you send me some samples for the same. Regards, -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] php_tidy.dll ?
pardon ma ignorance whats tidy.ll for toby . :$ --- Ignatius Reilly [EMAIL PROTECTED] wrote: Hello, I am trying to use the Tidy extension found on Frank Kromann's site http://kromann.info/pecl.php (php_tidy.dll, libtidy.dll), but it does not work (Can not load the specified module) Has anyone got it to work under PHP 4.3.3? Thanks Ignatius _ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] php 4.3.3 and apache 2.0.47 ..... all mucked up
hay guys as embarassing as this is .. im stuck with php 4.3.3 and apache 2.0.47 on win 2k everything seems to be in order no errors while restarting apache .. :S but when i try http://localhost i get the dammed page cannot b found and at http://localhost/phpinfo.php all i get is ? phpinfo() ? simply displayed on the screen what on earth is goin on ? what did i screw up this time ? pretty :S n :$ toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] php 4.3.3 and apache 2.0.47 ..... all mucked up
thnax fo the reply larry but it still aint workin even with the modifications n there still aint any error restarting apache or anything .. :s any other ideas ? thanx again toby --- [EMAIL PROTECTED] wrote: Edit httpd.conf and add following settings. LoadModule php4_module C:/php/sapi/php4apache2.dll AddOutputFilter PHP .php AddInputFilter PHP .php AddType text/html .php AddType application/x-httpd-php .php toby z [EMAIL PROTECTED] 09/23/2003 03:19 PM To: php hlp list [EMAIL PROTECTED] cc: Subject:[PHP-WIN] php 4.3.3 and apache 2.0.47 . all mucked up hay guys as embarassing as this is .. im stuck with php 4.3.3 and apache 2.0.47 on win 2k everything seems to be in order no errors while restarting apache .. :S but when i try http://localhost i get the dammed page cannot b found and at http://localhost/phpinfo.php all i get is ? phpinfo() ? simply displayed on the screen what on earth is goin on ? what did i screw up this time ? pretty :S n :$ toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Problem with 2 buttons
:) you didnt close the input tag pal /input :) toby --- William Cheung [EMAIL PROTECTED] wrote: Please ignore the word DEFANGED_. I don't know why it is there when I paste it. William Cheung mailto:[EMAIL PROTECTED] B.Sc, MCSE, MCDBA Databyte Corp. http://www.databyte.com/ -Original Message- From: William Cheung [mailto:[EMAIL PROTECTED] Sent: September 22, 2003 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Problem with 2 buttons -- I have 2 buttons sitting next to each other. One to update; the other to cancel. However, no matter which button I click, the isset($_POST[CHANGE]) always returns true. My template code is list below. Could someone tell me what's wrong with my code? tr height=60 td width=5%nbsp;/td td valign=bottom input type=hidden name=CHANGE input type=image name=CHANGE src={#img_dir#}{#template#}page6grid_g3.gif DEFANGED_Onmouseover=this.src='{#img_dir#}{#template#}page6grid_g4.gif' DEFANGED_Onmouseout=this.src='{#img_dir#}{#template#}page6grid_g3.gif' font class=mpanel_mid_data style=font-weight: lighter;Update order/font /td td valign=bottom input type=hidden name=CANCEL input type=image name=CANCEL src={#img_dir#}{#template#}page6grid_g11.gif DEFANGED_Onmouseover=this.src='{#img_dir#}{#template#}page6grid_g12.gif' DEFANGED_Onmouseout=this.src='{#img_dir#}{#template#}page6grid_g11.gif' font class=mpanel_mid_data style=font-weight: lighter; text-indent: 0px;Cancel order/font /td /tr William Cheung mailto:[EMAIL PROTECTED] B.Sc, MCSE, MCDBA Databyte Corp. http://www.databyte.com/ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Problem with 2 buttons
ever herdda xml ? and the rules ? which by the way bind u to close every tag u begin . ! ! ! ! and i'd rather hear william's response right now :) will howz it comming ? chao . toby --- Donatas [EMAIL PROTECTED] wrote: input doesn't have a closing tag, DUH http://www.w3schools.com/tags/tag_input.asp toby z wrote: :) you didnt close the input tag pal /input :) toby --- William Cheung [EMAIL PROTECTED] wrote: Please ignore the word DEFANGED_. I don't know why it is there when I paste it. William Cheung mailto:[EMAIL PROTECTED] B.Sc, MCSE, MCDBA Databyte Corp. http://www.databyte.com/ -Original Message- From: William Cheung [mailto:[EMAIL PROTECTED] Sent: September 22, 2003 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Problem with 2 buttons -- I have 2 buttons sitting next to each other. One to update; the other to cancel. However, no matter which button I click, the isset($_POST[CHANGE]) always returns true. My template code is list below. Could someone tell me what's wrong with my code? tr height=60 td width=5%nbsp;/td td valign=bottom input type=hidden name=CHANGE input type=image name=CHANGE src={#img_dir#}{#template#}page6grid_g3.gif DEFANGED_Onmouseover=this.src='{#img_dir#}{#template#}page6grid_g4.gif' DEFANGED_Onmouseout=this.src='{#img_dir#}{#template#}page6grid_g3.gif' font class=mpanel_mid_data style=font-weight: lighter;Update order/font /td td valign=bottom input type=hidden name=CANCEL input type=image name=CANCEL src={#img_dir#}{#template#}page6grid_g11.gif DEFANGED_Onmouseover=this.src='{#img_dir#}{#template#}page6grid_g12.gif' DEFANGED_Onmouseout=this.src='{#img_dir#}{#template#}page6grid_g11.gif' font class=mpanel_mid_data style=font-weight: lighter; text-indent: 0px;Cancel order/font /td /tr William Cheung mailto:[EMAIL PROTECTED] B.Sc, MCSE, MCDBA Databyte Corp. http://www.databyte.com/ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] generate img with fonts...
--- Comex [EMAIL PROTECTED] wrote: ofcourse u can Yes, but it would take less time to not use PHP. are u tellin me or askin ? :S toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] clearing cache ...... still not workin out
heres my code pitor for generate_graph.php this file is included in all query files .. === // ma data $max_data = count($gfData); for ($k = 0; $k $max_data; $k++) { //$arrData[$k] = $gfData[$k] * $factor ; $data[$k] = $gfData[$k] ; } // Create the Pie Graph. $graph = new PieGraph(650,400,auto); $graph-SetShadow(); //split title :P:P:P ! ! ! ! $newStr=; $newStr = explode( /r/n, $title ); $graph-title-Set($newStr[0]); $graph-subtitle-Set($newStr[1]); $graph-title-SetFont(FF_VERDANA,FS_BOLD,18); $graph-title-SetColor(darkblue); $graph-legend-Pos(0.1,0.2); // Create 3D pie plot $p1 = new PiePlot3d($data); $p1-SetTheme(sand); $p1-SetCenter(0.4); $p1-SetSize(150); // Adjust projection angle $p1-SetAngle(45); // Adjsut angle for first slice $p1-SetStartAngle(45); // Display the slice values $p1-value-SetFont(FF_ARIAL,FS_BOLD,11); $p1-value-SetColor(navy); // Add colored edges to the 3D pie // NOTE: You can't have exploded slices with edges! $p1-SetEdge(navy); for ($i = 0; $i $max_data; $i++) { if ($arrData[$i] $max_value) $max_value = $arrData[$i]; if ( strlen($label[$i]) $max_label_width ) $max_label_width = strlen($label[$i]); $p1-SetLegends($label); $ttl_rkrdz = array_sum($gfData); } $graph-Add($p1); $graph-Stroke(abc.jpg); echo( table width='100%' border='0' trtdnbsp;/td/tr trtdnbsp;/td/tr tr td align='center' img src=abc.jpg /td /tr /table brbrbr ); $table_text = table align='center' border='0'trtd align='center'nbsp;/td/tr trtd align='center'/td/trtrtd align=center brtable border=4tr; for ($i = 0; $i $max_data; $i++) { if ($arrData[$i] $max_value) $max_value = $arrData[$i]; if ( strlen($label[$i]) $max_label_width ) $max_label_width = strlen($label[$i]); $table_text = $table_text . th . $label[$i] . /th; $ttl_rkrdz = array_sum($gfData); } $table_text = $table_text . /tr; $table_text = $table_text . tr; for ($i = 0; $i $max_data; $i++) { $table_text = $table_text . td style= \font-family: $font\ . $gfData[$i] . /td; } $table_text = $table_text . /tr /table/td/tr tr td style= \font-family: $font\ /td /tr trtdnbsp;/td/tr tr td table border='4' align=center tr th width='50%' valign='center' style= \font-family: $font\ Total Recordsnbsp; /th td width='50%' valign='center' style= \font-family: $font\ $ttl_rkrdz /td /tr /table /td /tr trtdnbsp;/td/tr trtdnbsp;/td/tr trtdnbsp;/td/tr ; echo($table_text); = thnx a mill again toby --- Piotr Pluciennik [EMAIL PROTECTED] wrote: How do you send this file generated graph to the client browser? Are you using one of the functions ImagePNG(), ImageWBMP(), ImageJPEG() or are you presenting a link to your graph in php generated html output? Piotr --- toby z [EMAIL PROTECTED] wrote: thnx guyz but i have tried header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Date in the past header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified header(Cache-Control: no-store, no-cache, must-revalidate); // HTTP/1.1 header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache); // HTTP/1.0 and it aint working either . its still the same have to refresh the dammed page . i must be scewing something somewhere . cant figure out what n where . anyother ideas anyone . thanx a mill toby --- Piotr Pluciennik [EMAIL PROTECTED] wrote: Before sending your graph with: Imagegif($im); try things like that: Header(Expires: Fri, 10 Jun 1976 07:00:00 GMT); HTH Piotr --- toby z [EMAIL PROTECTED] wrote: hay guyz this is a rather silly thing but its starting to drive me now i have a page with a million switches checkin and including files for each case . the files on their turn run a few queries and then each calls a file generate graph which
[PHP-WIN] clearing cache ......
hay guyz this is a rather silly thing but its starting to drive me now i have a page with a million switches checkin and including files for each case . the files on their turn run a few queries and then each calls a file generate graph which generates a graph for the query rum earlier in the caller file u know the works . the problem is each file passes to the grapgh file the data fetched and the title of the graph unless i re-fresh the page the graph displayed last keeps appearing and re-appearing with the old title n old data u know . caching the old one .. :S i stumbled upon clearstatcache() but it aint seem to be workin either and another thing this screwup happens only on remote machines not on ma own not on the server u know .. what else can i do to clear the cache without having to tell ma clients to refresh the page each time (they cant even turn the compu on properly .. :) ) will sumbdy plz tell me . as im pretty lost in the cache clearing thinggy . thnx a mill guyz toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] clearing cache ...... still not workin out
thnx guyz but i have tried header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified header(Cache-Control: no-store, no-cache, must-revalidate); // HTTP/1.1 header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache); // HTTP/1.0 and it aint working either . its still the same have to refresh the dammed page . i must be scewing something somewhere . cant figure out what n where . anyother ideas anyone . thanx a mill toby --- Piotr Pluciennik [EMAIL PROTECTED] wrote: Before sending your graph with: Imagegif($im); try things like that: Header(Expires: Fri, 10 Jun 1976 07:00:00 GMT); HTH Piotr --- toby z [EMAIL PROTECTED] wrote: hay guyz this is a rather silly thing but its starting to drive me now i have a page with a million switches checkin and including files for each case . the files on their turn run a few queries and then each calls a file generate graph which generates a graph for the query rum earlier in the caller file u know the works . the problem is each file passes to the grapgh file the data fetched and the title of the graph unless i re-fresh the page the graph displayed last keeps appearing and re-appearing with the old title n old data u know . caching the old one .. :S i stumbled upon clearstatcache() but it aint seem to be workin either and another thing this screwup happens only on remote machines not on ma own not on the server u know .. what else can i do to clear the cache without having to tell ma clients to refresh the page each time (they cant even turn the compu on properly .. :) ) will sumbdy plz tell me . as im pretty lost in the cache clearing thinggy . thnx a mill guyz toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: stuck with substr now ....... solved ! ! ! !
thnxthnx for your reply the problems has already been solved thnx to chris n yeah i was screwing up the /r/n - \r\n thinggy . :) toby --- DvDmanDT [EMAIL PROTECTED] wrote: Are you sure you mean /r/n? I think you mean \r\n which is a windows line-end.. -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Toby z [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] hay guyz im stuck with substr now im sure i ve actually lost it i have a string being passed to a graph as its title and the title is being retrieved from mysql db now whenever i store anything with br or /r/n its displayed normally on the screen but this time i have to pass this to a jpeg chart being created by jd library which is then displayed on the screen and the title gets displayed as Medicine Reports /r/n (report generated for below 60% stocked medicines) where its supposed to display Medicine Reports (report generated for below 60% stocked medicines) i have tried a few functions but none of them seem to be working i can, however pass two strings as title and sub-title to the graph function call and for this i need to splitt the title retrieved from db to two strings .. = ?php //$pg='rprt_gf_py_3d_1'; // ma dta $max_data = count($gfData); for ($k = 0; $k $max_data; $k++) { //$arrData[$k] = $gfData[$k] * $factor ; $data[$k] = $gfData[$k] ; } // Create the Pie Graph. $graph = new PieGraph(850,600,auto); $graph-SetShadow(); /* trying 2 split title :P:P:P ! ! ! ! **/ $newStr=; //Replacing \n with br /*$tok = strtok($title,:P); while ($tok) { $newStr = $newStr.$tok.br; $tok = strtok(:P); } */ $tok = split($title,:P); //while ($tok) { $newStr = $newStr.$tok.br; //$tok = substr(:P); //} echo ($newStr); //$newStr = explode(\r\n,$title); //$newStr = explode(chr(10),$title); //$newStr = preg_split(/[ \t]+/, $title); // Set A title for the plot $graph-title-Set($newStr); $graph-subtitle-Set(sub); $graph-title-SetFont(FF_VERDANA,FS_BOLD,18); $graph-title-SetColor(darkblue); $graph-legend-Pos(0.1,0.2); // Create 3D pie plot $p1 = new PiePlot3d($data); $p1-SetTheme(sand); $p1-SetCenter(0.4); $p1-SetSize(150); // Adjust projection angle $p1-SetAngle(45); // Adjsut angle for first slice $p1-SetStartAngle(45); // Display the slice values $p1-value-SetFont(FF_ARIAL,FS_BOLD,11); $p1-value-SetColor(navy); // Add colored edges to the 3D pie // NOTE: You can't have exploded slices with edges! $p1-SetEdge(navy); for ($i = 0; $i $max_data; $i++) { if ($arrData[$i] $max_value) $max_value = $arrData[$i]; if ( strlen($label[$i]) $max_label_width ) $max_label_width = strlen($label[$i]); $p1-SetLegends($label); $ttl_rkrdz = array_sum($gfData); } $graph-Add($p1); $graph-Stroke(abc.jpg); echo( table width='100%' border='1' tr td align='right' img src=abc.jpg /td /tr /table brbrbr ); $table_text = table align=center border='0'trtd align='center'nbsp;/td/tr trtd align=center/td/trtrtd align=center brtable border=4tr; for ($i = 0; $i $max_data; $i++) { if ($arrData[$i] $max_value) $max_value = $arrData[$i]; if ( strlen($label[$i]) $max_label_width ) $max_label_width = strlen($label[$i]); $table_text = $table_text . th . $label[$i] . /th; $ttl_rkrdz = array_sum($gfData); } $table_text = $table_text . /tr; $table_text = $table_text . tr; for ($i = 0; $i $max_data; $i++) { $table_text = $table_text . td style= \font-family: $font\ . $gfData[$i] . /td; } $table_text = $table_text . /tr /table/td/tr tr td style= \font-family: $font\ /td /tr trtdnbsp;/td/tr tr td table border='4' align=center tr th width='50%' valign='center' style= \font-family: $font\ Total Recordsnbsp; /th td width='50%' valign='center' style= \font-family: $font\ $ttl_rkrdz /td /tr /table /td /tr trtdnbsp;/td/tr trtdnbsp;/td/tr trtdnbsp;/td/tr ; echo($table_text); ? = will someone plz jerk me out of this . ? thnx a million toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows
[PHP-WIN] stuck with substr now .......
hay guyz im stuck with substr now im sure i ve actually lost it i have a string being passed to a graph as its title and the title is being retrieved from mysql db now whenever i store anything with br or /r/n its displayed normally on the screen but this time i have to pass this to a jpeg chart being created by jd library which is then displayed on the screen and the title gets displayed as Medicine Reports /r/n (report generated for below 60% stocked medicines) where its supposed to display Medicine Reports (report generated for below 60% stocked medicines) i have tried a few functions but none of them seem to be working i can, however pass two strings as title and sub-title to the graph function call and for this i need to splitt the title retrieved from db to two strings .. = ?php //$pg='rprt_gf_py_3d_1'; // ma dta $max_data = count($gfData); for ($k = 0; $k $max_data; $k++) { //$arrData[$k] = $gfData[$k] * $factor ; $data[$k] = $gfData[$k] ; } // Create the Pie Graph. $graph = new PieGraph(850,600,auto); $graph-SetShadow(); /* trying 2 split title :P:P:P ! ! ! ! **/ $newStr=; //Replacing \n with br /*$tok = strtok($title,:P); while ($tok) { $newStr = $newStr.$tok.br; $tok = strtok(:P); } */ $tok = split($title,:P); //while ($tok) { $newStr = $newStr.$tok.br; //$tok = substr(:P); //} echo ($newStr); //$newStr = explode(\r\n,$title); //$newStr = explode(chr(10),$title); //$newStr = preg_split(/[ \t]+/, $title); // Set A title for the plot $graph-title-Set($newStr); $graph-subtitle-Set(sub); $graph-title-SetFont(FF_VERDANA,FS_BOLD,18); $graph-title-SetColor(darkblue); $graph-legend-Pos(0.1,0.2); // Create 3D pie plot $p1 = new PiePlot3d($data); $p1-SetTheme(sand); $p1-SetCenter(0.4); $p1-SetSize(150); // Adjust projection angle $p1-SetAngle(45); // Adjsut angle for first slice $p1-SetStartAngle(45); // Display the slice values $p1-value-SetFont(FF_ARIAL,FS_BOLD,11); $p1-value-SetColor(navy); // Add colored edges to the 3D pie // NOTE: You can't have exploded slices with edges! $p1-SetEdge(navy); for ($i = 0; $i $max_data; $i++) { if ($arrData[$i] $max_value) $max_value = $arrData[$i]; if ( strlen($label[$i]) $max_label_width ) $max_label_width = strlen($label[$i]); $p1-SetLegends($label); $ttl_rkrdz = array_sum($gfData); } $graph-Add($p1); $graph-Stroke(abc.jpg); echo( table width='100%' border='1' tr td align='right' img src=abc.jpg /td /tr /table brbrbr ); $table_text = table align=center border='0'trtd align='center'nbsp;/td/tr trtd align=center/td/trtrtd align=center brtable border=4tr; for ($i = 0; $i $max_data; $i++) { if ($arrData[$i] $max_value) $max_value = $arrData[$i]; if ( strlen($label[$i]) $max_label_width ) $max_label_width = strlen($label[$i]); $table_text = $table_text . th . $label[$i] . /th; $ttl_rkrdz = array_sum($gfData); } $table_text = $table_text . /tr; $table_text = $table_text . tr; for ($i = 0; $i $max_data; $i++) { $table_text = $table_text . td style= \font-family: $font\ . $gfData[$i] . /td; } $table_text = $table_text . /tr /table/td/tr tr td style= \font-family: $font\ /td /tr trtdnbsp;/td/tr tr td table border='4' align=center tr th width='50%' valign='center' style= \font-family: $font\ Total Recordsnbsp; /th td width='50%' valign='center' style= \font-family: $font\ $ttl_rkrdz /td /tr /table /td /tr trtdnbsp;/td/tr trtdnbsp;/td/tr trtdnbsp;/td/tr ; echo($table_text); ? = will someone plz jerk me out of this . ? thnx a million toby Want to chat instantly with your online friends? Get the FREE Yahoo!
Re: [PHP-WIN] Re: stuck with substr now .......
thnx chris i dunno when ill start to see things properly i guess ill ve to open up ma eyes fo that .. thnx again toby --- Chris Kranz [EMAIL PROTECTED] wrote: and for this i need to splitt the title retrieved from db to two strings .. $array = explode( /r/n, $stringToSplit ); print $array[0]; //first part print $array[1]; //second part -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] calling a user defined java class method .....
in php? yes :) my dear man . why else would i ask this here toby - Original Message - From: toby z [EMAIL PROTECTED] To: php hlp list [EMAIL PROTECTED] Sent: Monday, August 04, 2003 11:14 AM Subject: [PHP-WIN] calling a user defined java class method . hay guyz im stuck a bit i am trying to call a java class method which happens to be my own as well user defined that is how do i go about this n that also if its possible at all . thnx a bill toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] calling a user defined java class method .....
hay guyz im stuck a bit i am trying to call a java class method which happens to be my own as well user defined that is how do i go about this n that also if its possible at all . thnx a bill toby Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Password generator
and how did you accomplish that ? toby --- Davy Obdam [EMAIL PROTECTED] wrote: Thanks for you reactions people, i have found the solution Best regards, Davy Obdam Met vriendelijke groeten uit Den Haag;-) Daniel Beulshausen wrote: At 11:45 17.06.2003 +0200, Davy Obdam wrote: Hi people, I have to make a password generator, but i have a little problem. - It needs to generate password 8 characters long, and including 1 or 2 special characters(like #$%*@). - Those special characters can never appear as the first or last character in the string... anywhere between is fine. I have a password generator script now that does the first thing... but the special character can be in front or back of the string wich it shouldnt.. i have been looking on the web for this but i havent found the answer. Below is my scripts so far.. Any help is appreciated, thanks for your time, please don't cross-post. ?php function generatePassword( $length = 8 ) { $alphaNumChar = array( 'a','b','c','d','e','f','g','h','e','f','g','h','i','j','k', 'l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6', '7','8','9' ); $specialChar = array( '%','#','*','' ); $allChars = array_merge( $alphaNumChar, $specialChar ); $returnValue = ''; mt_srand( lcg_value() * 1 + time() ); $returnValue .= $alphaNumChar[ array_rand( $alphaNumChar ) ]; if( ( $length -= 2 ) 0 ) { while( $length-- 0 ) { $returnValue .= $allChars[ array_rand( $allChars ) ]; } } $returnValue .= $alphaNumChar[ array_rand( $alphaNumChar ) ]; return $returnValue; } echo generatePassword(); ? mit freundlichen grüßen aus berlin, daniel /*-- Daniel Beulshausen - [EMAIL PROTECTED] Using PHP on Windows? http://www.php4win.com -- --- Davy Obdam Web application developer Networking4all email: [EMAIL PROTECTED] email: [EMAIL PROTECTED] internet: http://www.networking4all.com --- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Password generator
and how did you accomplish that ? toby --- Davy Obdam [EMAIL PROTECTED] wrote: Thanks for you reactions people, i have found the solution Best regards, Davy Obdam Met vriendelijke groeten uit Den Haag;-) Daniel Beulshausen wrote: At 11:45 17.06.2003 +0200, Davy Obdam wrote: Hi people, I have to make a password generator, but i have a little problem. - It needs to generate password 8 characters long, and including 1 or 2 special characters(like #$%*@). - Those special characters can never appear as the first or last character in the string... anywhere between is fine. I have a password generator script now that does the first thing... but the special character can be in front or back of the string wich it shouldnt.. i have been looking on the web for this but i havent found the answer. Below is my scripts so far.. Any help is appreciated, thanks for your time, please don't cross-post. ?php function generatePassword( $length = 8 ) { $alphaNumChar = array( 'a','b','c','d','e','f','g','h','e','f','g','h','i','j','k', 'l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6', '7','8','9' ); $specialChar = array( '%','#','*','' ); $allChars = array_merge( $alphaNumChar, $specialChar ); $returnValue = ''; mt_srand( lcg_value() * 1 + time() ); $returnValue .= $alphaNumChar[ array_rand( $alphaNumChar ) ]; if( ( $length -= 2 ) 0 ) { while( $length-- 0 ) { $returnValue .= $allChars[ array_rand( $allChars ) ]; } } $returnValue .= $alphaNumChar[ array_rand( $alphaNumChar ) ]; return $returnValue; } echo generatePassword(); ? mit freundlichen grüßen aus berlin, daniel /*-- Daniel Beulshausen - [EMAIL PROTECTED] Using PHP on Windows? http://www.php4win.com -- --- Davy Obdam Web application developer Networking4all email: [EMAIL PROTECTED] email: [EMAIL PROTECTED] internet: http://www.networking4all.com --- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help please: undefined index in sample code
my dear man if u try $tireqty = $_POST['tireqty']; with register globals on it gives u the same error :) i didn ask that without any reazon toby --- Stephen [EMAIL PROTECTED] wrote: Which just goes to show some people will say anything... I don't think this has anything to do with register globals (Sorry toby). Undefined index sounds like php is just warning you that you are using a variable without a value. Since you are using a form to send data, this can occur. To be honest, its a fairly pointless warning, so you probably want to ignore it. In your php.ini file search for and find the error_reporting option. I recommend you change your settings to error_reporting = E_ALL ~E_NOTICE This should solve your problem. - Original Message - From: Stuart Felenstein [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 14, 2003 10:18 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code Yes, register globals are now on. Though it doesn't apparently matter. Stuart toby z [EMAIL PROTECTED] wrote: register globals on or off ? --- Stuart Felenstein wrote: I can't believe Chapter 1 , section 1 and I'm off to a bad start already. Using this form and script, I keep getting undefined index for the variables I declare in the script. Running PHP 4.3.2 on XP Pro. Thanks. Stuart Form: Item Quantity Tires [input] maxlength=3 Oil [input] maxlength=3 Spark Plugs [input] maxlength=3 [input] Order Script: Bob's Auto Parts Order Results //create short variable names $tireqty = $_POST['tireqty']; $oilqty = $_POST['oilqty']; $sparkqty = $_POST['sparkqty']; ? echo ' Your order is as follows: '; echo $tireqty.' tires '; echo $oilqty.' bottles of oil '; echo $sparkqty.' spark plugs '; ? Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help please: undefined index in sample code
jeez it didn work with me .. i mean when i had register globals on it didn work . i guess i must ve tried that in the stone age .. :| toby --- Stephen [EMAIL PROTECTED] wrote: Toby, $_POST should exist even if register globals are on! Thats why I said it would probably be nothing to do with it. Unless I am mistaken Stephen - Original Message - From: toby z [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED] Cc: Windows Helplist (PHP) [EMAIL PROTECTED] Sent: Monday, June 16, 2003 10:37 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code my dear man if u try $tireqty = $_POST['tireqty']; with register globals on it gives u the same error :) i didn ask that without any reazon toby --- Stephen [EMAIL PROTECTED] wrote: Which just goes to show some people will say anything... I don't think this has anything to do with register globals (Sorry toby). Undefined index sounds like php is just warning you that you are using a variable without a value. Since you are using a form to send data, this can occur. To be honest, its a fairly pointless warning, so you probably want to ignore it. In your php.ini file search for and find the error_reporting option. I recommend you change your settings to error_reporting = E_ALL ~E_NOTICE This should solve your problem. - Original Message - From: Stuart Felenstein [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 14, 2003 10:18 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code Yes, register globals are now on. Though it doesn't apparently matter. Stuart toby z [EMAIL PROTECTED] wrote: register globals on or off ? --- Stuart Felenstein wrote: I can't believe Chapter 1 , section 1 and I'm off to a bad start already. Using this form and script, I keep getting undefined index for the variables I declare in the script. Running PHP 4.3.2 on XP Pro. Thanks. Stuart Form: Item Quantity Tires [input] maxlength=3 Oil [input] maxlength=3 Spark Plugs [input] maxlength=3 [input] Order Script: Bob's Auto Parts Order Results //create short variable names $tireqty = $_POST['tireqty']; $oilqty = $_POST['oilqty']; $sparkqty = $_POST['sparkqty']; ? echo ' Your order is as follows: '; echo $tireqty.' tires '; echo $oilqty.' bottles of oil '; echo $sparkqty.' spark plugs '; ? Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help please: undefined index in sample code
thats rather sweet of luis thnx :) but it was somebody elses problem this time i was only replying to stephen :) ;) toby --- Luis Moreira [EMAIL PROTECTED] wrote: Toby, If you write $tireqty = $_POST['tireqty'] you're telling PHP that the calling script is sending a variable called 'tireqty'. Since on your case the name of the value and of the POST are the same, I mean that if you write $AFTER_POST = $_POST['VALUE_PASSED'] you will set a variable called $AFTER_POST to the value given by the calling form through the field named 'VALUE_PASSED' Otherwise, you trying to get the value of a POST that never was. Check the names of the fields on the form, and as someone said, use 'isset' to see if something actually went trough Sorry to be so thorough, but it's just to be as clear as I can Luis - Original Message - From: Stephen [EMAIL PROTECTED] To: toby z [EMAIL PROTECTED] Cc: Windows Helplist (PHP) [EMAIL PROTECTED] Sent: Monday, June 16, 2003 1:58 PM Subject: Re: [PHP-WIN] Help please: undefined index in sample code Toby, $_POST should exist even if register globals are on! Thats why I said it would probably be nothing to do with it. Unless I am mistaken Stephen - Original Message - From: toby z [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED] Cc: Windows Helplist (PHP) [EMAIL PROTECTED] Sent: Monday, June 16, 2003 10:37 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code my dear man if u try $tireqty = $_POST['tireqty']; with register globals on it gives u the same error :) i didn ask that without any reazon toby --- Stephen [EMAIL PROTECTED] wrote: Which just goes to show some people will say anything... I don't think this has anything to do with register globals (Sorry toby). Undefined index sounds like php is just warning you that you are using a variable without a value. Since you are using a form to send data, this can occur. To be honest, its a fairly pointless warning, so you probably want to ignore it. In your php.ini file search for and find the error_reporting option. I recommend you change your settings to error_reporting = E_ALL ~E_NOTICE This should solve your problem. - Original Message - From: Stuart Felenstein [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 14, 2003 10:18 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code Yes, register globals are now on. Though it doesn't apparently matter. Stuart toby z [EMAIL PROTECTED] wrote: register globals on or off ? --- Stuart Felenstein wrote: I can't believe Chapter 1 , section 1 and I'm off to a bad start already. Using this form and script, I keep getting undefined index for the variables I declare in the script. Running PHP 4.3.2 on XP Pro. Thanks. Stuart Form: Item Quantity Tires [input] maxlength=3 Oil [input] maxlength=3 Spark Plugs [input] maxlength=3 [input] Order Script: Bob's Auto Parts Order Results //create short variable names $tireqty = $_POST['tireqty']; $oilqty = $_POST['oilqty']; $sparkqty = $_POST['sparkqty']; ? echo ' Your order is as follows: '; echo $tireqty.' tires '; echo $oilqty.' bottles of oil '; echo $sparkqty.' spark plugs '; ? Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Fw: PHP mySQL testing server does not map to the URL
im sure u must have fixed up ur php.ini and httpd.conf files and set ur document root u ve to fix ur mysql'z config file too n myadmin otta be in ur doccument root to work properly good luck toby --- Ildiko Nyari [EMAIL PROTECTED] wrote: In fact I am not sure I have installed php correctly. I have downloaded the php files and Apache installed, and alos the phpmyadmin unzipped here: C:\mysql\bin where the mysql database is and C:\phpwhere php is C:\phpmyadmin is here And now, how can I open phpmyadmin? How should I set up my testing server map to the WHERE? thanks, ildiko - Original Message - From: Ildiko Nyari To: [EMAIL PROTECTED] Sent: Monday, June 16, 2003 8:05 PM Subject: Fw: PHP mySQL testing server does not map to the URL Somebody? Nobody? C:\mysql\bin where the mysql database is and C:\phpwhere php is C:\phpmyadmin is here how the hell can I make them running together, testing server map to the WHERE? thanks, ildiko - Original Message - From: Ildiko Nyari To: [EMAIL PROTECTED] Sent: Monday, June 16, 2003 6:30 PM Subject: PHP mySQL testing server does not map to the URL Hello, I just can't go beyond this point. I am trying to connect the website to the localhost server (PHP mySQL) but I always get this message. Any advise? Thanks, ildiko The testing server specified for this site does not map to the http://localhost/website/_MMServerScript/MMHTTPDB.php URL. Verify that the URL Prefix maps to the root of the site. Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help please: undefined index in sample code
register globals on or off ? --- Stuart Felenstein [EMAIL PROTECTED] wrote: I can't believe Chapter 1 , section 1 and I'm off to a bad start already. Using this form and script, I keep getting undefined index for the variables I declare in the script. Running PHP 4.3.2 on XP Pro. Thanks. Stuart Form: form action=processorder.php method=post table border=0 tr bgcolor=#cc td width=150Item/td td width=15Quantity/td /tr tr tdTires/td td align=centerinput type=text name=tireqty size=3 maxlength=3/td /tr tr tdOil/td td align=centerinput type=text name=oilqty size=3 maxlength=3/td /tr tr tdSpark Plugs/td td align=centerinput type=text name=sparkqty size=3 maxlength=3/td /tr tr td colspan=2 align=centerinput type=submit value=Submit Order/td /tr /table /form Script: html head titleBob's Auto Parts - Order Results/title /head body h1Bob's Auto Parts/h1 h2Order Results/h2 ?php //create short variable names $tireqty = $_POST['tireqty']; $oilqty = $_POST['oilqty']; $sparkqty = $_POST['sparkqty']; ? ?php echo 'pYour order is as follows: /p'; echo $tireqty.' tiresbr /'; echo $oilqty.' bottles of oilbr /'; echo $sparkqty.' spark plugsbr /'; ? /body /html Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] running my head into php
anderz whats gotten into u ? I am really in a desperate need to be able to execute php, my entire project, carrier and life depends on it. I been running my head several time into php, but I still not seams to be able to execute it. ? ? ? ? I even had tried to burnt the latest version on a CD-ROM and did the reverse thing in order to see if it works - e.g. I been running CD-ROM's into my head all day long for a weeks time now. The cleaner has starts to complain about all the trash on the floor. Not to mention my boss who starts to make inquires about all the consumed CD-ROM at our department. What may be wrong? P.S. I suspect that this might be a bug with php. Am I right? D.S. what on earth is goin on with ur php i ve just configured 3 machines at my work place i mite b able to hlp write what u c on the screen or any toher details errors . anythin to do with the problem chao __ Yahoo! Plus - For a better Internet experience http://uk.promotions.yahoo.com/yplus/yoffer.html -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Re: problems with phpmyadmin
hay try fixing ur config file for phpmyadmin i hope u know u get to fix it like u must have fixed ini and httpd files, the file being config.inc.php ofcourse anywayz 1. $cfgPmaAbsoluteUri = 'http://localhost/myadmin/'; locate and set to ur host and myadmin settings 2. u have to add ur host,user,password and db to b used in the file locate and fix this chunk $i++; $cfgServers[$i]['host'] = ''; $cfgServers[$i]['port'] = ''; $cfgServers[$i]['socket']= ''; $cfgServers[$i]['connect_type'] = 'tcp'; $cfgServers[$i]['controluser'] = ''; $cfgServers[$i]['controlpass'] = ''; $cfgServers[$i]['auth_type'] = 'config'; $cfgServers[$i]['user'] = 'root'; $cfgServers[$i]['password'] = ''; $cfgServers[$i]['only_db'] = ''; $cfgServers[$i]['verbose'] = ''; $cfgServers[$i]['bookmarkdb']= ''; $cfgServers[$i]['bookmarktable'] = ''; $cfgServers[$i]['relation'] = ''; hope this helps good luck toby --- Chadwick, John [EMAIL PROTECTED] wrote: The AddType line did it. Now at least I have something to go on. Now I get the following: phpMyAdmin - Error phpMyAdmin was unable to read your configuration file! This might happen if php finds a parse error in it or php cannot find the file. Please call the configuration file directly using the link below and read the php error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere. If you receive a blank page, everything is fine. Thanks! John -Original Message- From: Joseph McDonald [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: problems with phpmyadmin Do you have a cpl lines like this in your httpd.conf? LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php .inc if your file is name extension is php3, you should have atleast .php .php3 on the AddType line. I have .inc cause all of my include() files are named with extension .inc John Chadwick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have installed PHP 4.3.2 on a Windows 2000 server machine running Apache 2.0.45. So far, I seem to have done something right, since the directory listing for the phpmyadmin directory gives me the following: Apache/2.0.45 (Win32) PHP/4.3.2 Server at www.stlib.state.nm.us Port 80 The problem I am having is getting phpmyadmin to work. I have followed the instructions for the Quick Install in the documentation and all I see is the source code for the index.php3 page instead of a Web page. Any ideas what is going on? Thanks John +-+ John Chadwick, Ed.D. New Mexico State Library 1209 Camino Carlos Rey Santa Fe, NM 87507 505-476-9740 [EMAIL PROTECTED] http://www.stlib.state.nm.us -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Yahoo! Plus - For a better Internet experience http://uk.promotions.yahoo.com/yplus/yoffer.html -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] how do i skip primary keyz ????
hay guyz im a bit stuck im restoring backup data and i need to fetch all fields of tables except for the primary key is there anyway to do that ? i ve been searchin fo a biultin function but couldnt find any im sorry if this is off the list :$ thnx a mill toby __ Yahoo! Plus - For a better Internet experience http://uk.promotions.yahoo.com/yplus/yoffer.html -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] query infinitely stuck ......
hay guyz im stuck in an infinite loop ill try to explain what im actually tryin to do im letting a user of the application take a backup of a mysql db he selects a path n types in a file name for the backup to be dumped as two files 1. tk_bkp.php(take_backup) 2. gen_qry_bkp.php(generate_backup_query) take backup file: gets the dir path and file name includes 2 files 1st to generate the insert into query 2nd to write a file on user's disk generate backup query file : 1. fetchs all table names from a table tbl_ztbl (i dont want it to fetch all table namez as ive got 17 lookup tables in the db) 2. after it has fetched the table names it calls the ReedDta() funct passing it the table names fetched 3. ReedDta() funct : i. fetches all the data inserted in the tables where nu_bkp=0 (the watch-dgo field for new || backup data; 0==new) ii. fetches all the field names from the table names fetched in #1 iii. make an insert into query problem: a. the ReedDta() funct gets stuck in the query #i where it has to fetch the data inserted into the db tables :| the query goes nuttz .. or perhapps i ve screwed somethin else in the code :| b. the data fetched from the tables include a primary key auto-incrementor the backup is to be restored on the server where the application will be hosted and i most definately dont want the backup-auto-incremented values to get inserted in to the server db as im generating reports on distinct primarykeys what the hell do i do now ? :| :S i guess i ve done it for myslf to get sacked after this proj is through :) the code goes here === tk_bkp.php = $bkp_fl = $_GET['bkp_fl']; echo(1st nbsp; $bkp_flbr); $dirPth=; $rpos = strrpos($bkp_fl, '\\'); $dirPth = substr($bkp_fl, 0, $rpos+1); $FileStr = substr($bkp_fl, $rpos+1, strlen($bkp_fl)); str_replace(\\, /, $bkp_fl); if(is_dir($dirPth)){ echo(br da dammed dir xixtz ! continue savin da file ! ! ! ! br); //$fp=fopen($FileStr, wb); includegen_qry_bkp.php; includegen_bkp_fl.php; } else{ echo(br da dammed dir duzn xixtz ! mk dir here ! ! ! ! br); if (mkdir($dirPth)){ echo(br da dammed dir created ! save da file now ! ! ! ! br); //$fp=fopen($FileStr, wb); includegen_qry_bkp.php; includegen_bkp_fl.php; } else { echo(br da dammed dir cudn b created ! :S now vat :S :| :[ ! ! ! ! br); } } == //$pg = 'gen_qry_bkp.php'; == $ftch_tbl_nmx_qry = select tbl_nme from tbl_ztbl; $ftch_tbl_nmx_qry_rzlt_hndlr = mysql_query($ftch_tbl_nmx_qry) or die(qry $ftch_tbl_nmx_qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !); for($count=0; $count = mysql_num_rows($ftch_tbl_nmx_qry_rzlt_hndlr); ++$count){ $ftch_tbl_nme = mysql_fetch_row($ftch_tbl_nmx_qry_rzlt_hndlr); $tbl_nme = $ftch_tbl_nme[0]; $tbl_nme_cmt = /* br Table data for planDb_Bkp.$tbl_nme br */ br ; echo($tbl_nmebr); ReedDta($tbl_nme); echo($tbl_nme_cmt); } function ReedDta($tbl_nme){ // xz2 $ftch_dta_qry = select * from $tbl_nme; $ftch_dta_qry_rzlt_hndlr = mysql_query($ftch_dta_qry) or die(qry $ftch_dta_qry failed ! da tbl must xixtin da db 2 b played vid ! ! ! !); echo($ftch_dta_qry); for($cnt=0; $cnt = mysql_num_rows($ftch_dta_qry_rzlt_hndlr); ++$cnt){ $ftch_dta = mysql_fetch_row($ftch_dta_qry_rzlt_hndlr); $inzrtn_dta[] = $ftch_dta[$cnt]; echo(br inzrtn dta gozz : nbsp; $inzrtn_dta br ); } $inzrt_qry_1st_hlf = insert into $tbl_nme (; // xz1 $result_q = select * from $tbl_nme limit 0,1; $result = mysql_query($result_q) or die(qry $ftch_fld_nmz_qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !); $num_fldz = mysql_num_fields($result); for($i = 0; $i $num_fldz; $i++) { $fldxx[] = mysql_fetch_field($result); } echo($inzrt_qry_1st_hlf); for($i = 0; $i $num_fldz; $i++) { printf(%s,\n, $fldxx[$i]-name); } $inzrt_qry_2nd_hlf = ) values ($valz); echo($inzrt_qry_2nd_hlf); } == thnx a million guyz toby __ Yahoo! Plus - For a
[PHP-WIN] RE: stuck with distinct ! ! ! !
hi n thnx eveyone as i hate makin loong queries so i came up with a rather silly but at the moment workin idea i made three files qry.php ftch.php dsply.php fetched from all 11 tables in to 11 different queries n displayed em all separately i guess im a bit tooo dammed lazzy :$ to go fo an actual effort thnx a mill everyone toby --- Uttam [EMAIL PROTECTED] wrote: u hv not explained the actual problem (even briefly)? regds -Original Message- From: toby z [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 13:08 To: php hlp list Subject: stuck with distinct ! ! ! ! hi guyz im trying a query that fetches all fields(ranging from 5 to 15) from 11 tables i m looking round for distinct at http://www.mysql.com/doc/en/SELECT.html n so faar i aint getting anything :( can n some1 plz hlp thnx a lot . toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] stuck with distinct ! ! ! !
hi guyz im trying a query that fetches all fields(ranging from 5 to 15) from 11 tables i m looking round for distinct at http://www.mysql.com/doc/en/SELECT.html n so faar i aint getting anything :( can n some1 plz hlp thnx a lot . toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] solution :: multiple selections and checkboxes ! ! ! !
thnx a mill guyz fo all ur support especially uttam, dash and jill finally this darrned thingg is working now heres the code . the neat one this time . :D incase any1 mite need it - cnja_inzrt.php - ?php includecnctdb.php; $jb_ttl = $_POST['jb_ttl']; $loc = $_POST['loc']; $no_poz = $_POST['no_poz']; $qlf = $_POST['$rq_qlf']; //$rq_skllz = $_POST['$rq_skllz']; $mst_sklz = $_POST['mst_skllz']; $dzrd_sklz = $_POST['dzrd_skllz']; $xp_slry = $_POST['xp_slry']; $fday = $_POST['day']; $fmon = $_POST['mon']; $fyr = $_POST['yr']; $poz_typ = $_POST['poz_typ']; $k_dt = $fyr.$fmon.$fday; $cdt = date('Y-m-d'); /***skllz ! ! ! ! **/ /** goin huntin . ! ! ! ! **/ $i=0; $j=0; $strMust = ; $j=0; while($jcount($mst_sklz)){ if ($j == 0) $strMust = $mst_sklz[$j]; else $strMust = $strMust . , . $mst_sklz[$j]; print $mst_sklz[$j]; $j++; } $j=0; while($jcount($dzrd_sklz)){ if ($j == 0) $strDes = $dzrd_sklz[$j]; else $strDes = $strMust . , . $dzrd_sklz[$j]; print $dzrd_sklz[$j]; $j++; } $inzrt_dzrd_skllz_qry = insert into tbl_jrd(no_poz, xpctd_slry, ttl, loc, mst_skllz, dzrd_skllz, poz_typ, klzn_dt, dt_de) values('.$no_poz.', '.$xp_slry.', '.$jb_ttl.',.$loc.', '.$strMust.', '.$strDes.', '.$poz_typ.', '.$k_dt.', '.$cdt.'); // fld mpty ! ! ! ! if ($jb_ttl== || $loc== || $no_poz== || $xp_slry==){ echo(mpty ! ! ! !.$jb_ttl.nbsp nbsp;.$loc.nbsp nbsp;.$no_poz.nbsp nbsp;.$qlf.nbsp nbsp;.nbsp nbsp;.$xp_slry); echo(mpty field ! ! ! ! ); //header(Location: /kcntrl/rr_mpty.php?pg=cnja.php); //exit(); } else { // all fldx flld ! ! ! ! ! /** go fo da kill ! ! ! ! **/ if(! mysql_query($inzrt_dzrd_skllz_qry)){ echo($qlf_inzrt_qry didn exe ! ! ! ! :P); } else { // mysql_query ($qlf_inzrt_qry) /***qlfz ! ! ! ! **/ $rq_qlfz_ftch_qry = select skll, skll_id, sq from tbl_lookup_skllz_qlf where sq='q' or sq='n'; $rq_qlfz_ftch_qry_rzlt_hndlr = mysql_query($rq_qlfz_ftch_qry) or die(qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! ! :Q ); $mx_id_inzrtd_qry = SELECT max(pk_id) FROM tbl_jrd; $mx_id_inzrtd_qry_rzlt_hndlr = mysql_query($mx_id_inzrtd_qry) or die( $mx_id_inzrtd_qry qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !); $max_id = mysql_fetch_row($mx_id_inzrtd_qry_rzlt_hndlr); $mx = $max_id[0]; $j=0; $strqlf=;
Re: [PHP-WIN] Re:Subject: multiple selections and checkboxes
guyz thnx a zillion all of u its all solved n dun i skrwd my own code up fo my slf thnx again all of u eternally grateful toby .. --- Neil Smith [EMAIL PROTECTED] wrote: One more thing (dunno if it has been mentioned ) : select id=qlf_opt name=rq_qlf You have different -id- and -name- identifers in the Select tag. These should match. Use one or the other. Both should be qlf_opt or both should be rq_qlf That way your script knows which one to use as the POST variable - else it might decide neither is appropriate :-) Cheers Neil. At 06:42 19/03/2003 +, you wrote: thnx a mill guyz for ur replys but im still stuck nuthing seem to be working n im closing-in on my ded line id be eterrnally gratefull if anyone could suggess an alternative to allow multi-selection of values fetched from the db the only prob is the values are aorund 40 outta which a user has to select as many as he likes n i HAVE to fetch them all from the db guyz hlp plz thnx a mill doomed . toby --- Neil Smith [EMAIL PROTECTED] wrote: Hi Toby - I can't actually fllw yr frm cs t hs n vwls n t ! However, I notice you are not closing the /option tag. Maybe that would help ? AFAIK, HTML requires option tags to be close. HTH - My 2c Cheers, Neil Smith. At 09:51 18/03/2003 +, you wrote: /* echo(select id=qlf_opt name=rq_qlf width='15' style=\font-family: $font\ multiple optgroup label=select qualifications ); for ($count = 1; $qlfz_id = mysql_fetch_row($rq_qlfz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { $qlf_id = $qlfz_id[1]; $qlf_nme = $qlfz_id[0]; $sq = $qlfz_id[2]; echo (option value=$qlf_id$qlf_nme); //echo($skll_id.$sq); } echo(/optgroup /select -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] RE:[newbie]session problem
hi try this initiate session on proc.php // init sessn session_start(); // register session variblez ! ! ! ! session_register(SESSN); chech for session set on sum_page.php ?php // sessn chk ! ! ! ! session_start(); if(!session_is_registered(SESSN)) { // sessn chk failed invoke error hndlr ! ! ! ! header(Location: /nologn.php); exit(); } the rest of ur code . ? hope thid helps good luck toby --- Bobby Rahman [EMAIL PROTECTED] wrote: Hiya, Im running php4.2.3 on Win98 and apache 2.0.43. I am having troubles passing variables from page to page. I try to use: session_start(); session_register(test); when echo $test on a different page it seems to be empty when not called from within the page originally created. I have session_start() on every page at the start just under the php syntax ? and also register the variables which I want global. I have edited the php.ini to set the session.save_path = C:/windows/temp and also have global variables set on Any suggestions to what it may be as it doesnt seem to produce any errors. Thanks _ Express yourself with cool emoticons http://messenger.msn.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] multiple selections and checkboxes
hi guys im stuck with a rather silly thing i fetch db entries into a multi-selection list and check box when i post these thru a form i get only the FIRST selected value of the multi-select list and NO value for the check boxes im all :S:S:S heres the code if it makes any sence cnja.php - form action=cnja_inzrt.php method=post tr td style=\font-family: $font\ height='259' align='center' valign='top' table width='100%' border='2 ' cellspacing='0' cellpadding='0' tr td style=\font-family: $font\ height='34' colspan='3' align='center'strongfont size='4'JAARD/font/strong/td /tr tr align='center' valign='top' td style=\font-family: $font\ width='41%' height='24' valign='middle' div align='left'Job Title/div/td td style=\font-family: $font\ width='59%' valign='middle' div align='left' input name='jb_ttl' type='text' /div/td /tr tr td style=\font-family: $font\ height='21'Location/td td style=\font-family: $font\ height='21' input name='loc' type='text'/td /tr tr td style=\font-family: $font\ height='24'No of Positions/td td style=\font-family: $font\ height='24' input name='no_poz' type='text'/td /tr tr td style=\font-family: $font\ height='22'Required Qualifications/td td style=\font-family: $font\ height='22'); //$rq_qlf = 'qlf_rq'; includeftch_rq_qlf.php; echo( /td /tr tr td style=\font-family: $font\ height='24'Expected Salary/td td style=\font-family: $font\ height='24' input name='xp_slry' type='text'/td /tr tr td style=\font-family: $font\ height='21'Must Skills/td td style=\font-family: $font\ height='21'); $rq_skllz = 'mst_skllz'; includeftch_rq_skllz.php; echo( /td /tr tr td style=\font-family: $font\ height='23'Desired Skills/td td style=\font-family: $font\ height='23' ); $rq_skllz = 'dzrd_skllz'; includeftch_rq_skllz.php; echo( /td /tr tr td style=\font-family: $font\ height='21'Closing Date/td td style=\font-family: $font\ height='21'); includeftch_date.php; echo( /td /tr tr td style=\font-family: $font\ height='32' colspan='2'input type='submit' name='Submit' style=\font-family: $font\ value='Create New Job '/td /tr /table /td /tr /form --- ftch_skllz.php --- $rq_skllz_ftch_qry = select skll, skll_id, sq from tbl_lookup_skllz_qlf where sq='s' or sq='n'; $rq_skllz_ftch_qry_rzlt_hndlr = mysql_query($rq_skllz_ftch_qry) or die(qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !); echo(select id=skllz_opt name=$rq_skllz width='15' style=\font-family: $font\ multiple optgroup label=select skills ); for ($count = 1; $skllz_id = mysql_fetch_row($rq_skllz_ftch_qry_rzlt_hndlr); ++$count) { $skll_id = $skllz_id[1]; $skll_nme = $skllz_id[0]; $sq = $skllz_id[2]; echo (option value=$skll_id$skll_nme); //echo($skll_id.$sq); } echo(/optgroup /select ); ftch_rq_qlf $rq_qlfz_ftch_qry = select skll, skll_id, sq from tbl_lookup_skllz_qlf where sq='q' or sq='n'; $rq_qlfz_ftch_qry_rzlt_hndlr = mysql_query($rq_qlfz_ftch_qry) or die(qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !); /* echo(select id=qlf_opt name=rq_qlf width='15' style=\font-family: $font\ multiple optgroup label=select qualifications ); for ($count = 1; $qlfz_id = mysql_fetch_row($rq_qlfz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { $qlf_id = $qlfz_id[1]; $qlf_nme = $qlfz_id[0]; $sq = $qlfz_id[2]; echo (option value=$qlf_id$qlf_nme); //echo($skll_id.$sq); } echo(/optgroup /select ); */ for ($count = 1; $qlfz_id = mysql_fetch_row($rq_qlfz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { $qlf_id = $qlfz_id[1]; $qlf_nme = $qlfz_id[0]; $sq = $qlfz_id[2]; echo (input type='checkbox' name=rq_qlf value=$qlf_id nbsp;nbsp; $qlf_nme nbsp; br ); //echo($skll_id.$sq); } --- cnja_inzrt.php - includecnctdb.php; $jb_ttl = $_POST['jb_ttl']; $loc = $_POST['loc'];
Re: [PHP-WIN] Re:Subject: multiple selections and checkboxes
thnx rt for the reply heres my latest try at it multi_select.php $rq_skllz_ftch_qry = select skll, skll_id, sq from tbl_lookup_skllz_qlf where sq='s' or sq='n'; $rq_skllz_ftch_qry_rzlt_hndlr = mysql_query($rq_skllz_ftch_qry) or die(qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !); echo(form action=multi_lst_proc.php method=get); echo(select id=skllz_opt name=skl_id[] width='15' style=\font-family: $font\ multiple optgroup label=select skills ); for ($count = 1; $skllz_id = mysql_fetch_row($rq_skllz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { $skll_id = $skllz_id[1]; $skll_nme = $skllz_id[0]; $sq = $skllz_id[2]; echo (option value=$skll_id$skll_nme); //echo($skll_id.$sq); //echo(/option); } echo(/optgroup /select input type=submit value=try /form ); --- multi_lst_proc.php --- $rq_skllz_ftch_qry = select skll, skll_id, sq from tbl_lookup_skllz_qlf where sq='s' or sq='n'; $rq_skllz_ftch_qry_rzlt_hndlr = mysql_query($rq_skllz_ftch_qry) or die(qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !); for ($count = 1; $qlfz_id = mysql_fetch_row($rq_skllz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { // for ($count; $count=$_GET['$qlf']; ++$count){ $skl_id = $skllz_id[1]; $skll_nme = $skllz_id[0]; $sq = $skllz_id[2]; echo($_GET[$skl_id].br); echo($skl_id.br); //echo($nme); } but what i get is http://localhost/multi_lst_proc.php?skl_id%5B%5D=vcskl_id%5B%5D=ln i no im being the dumbo of all timez but i cant figure out what on earth iz it with this code ? thnx a billion guyz toby . --- RT [EMAIL PROTECTED] wrote: Sorry. I missed the original message but if I understand it right you want to send multiple selections from a select box to PHP. If you add [] after the name it will create an array with the data that's sent to the server ie select name=foo[] option value=1selection 1/option etc /select The variable $foo[0] or $_POST['foo'] would have the first value selected and so on. Hope it helps On Wed, 2003-03-19 at 01:42, toby z wrote: thnx a mill guyz for ur replys but im still stuck nuthing seem to be working n im closing-in on my ded line id be eterrnally gratefull if anyone could suggess an alternative to allow multi-selection of values fetched from the db the only prob is the values are aorund 40 outta which a user has to select as many as he likes n i HAVE to fetch them all from the db guyz hlp plz thnx a mill doomed . toby --- Neil Smith [EMAIL PROTECTED] wrote: Hi Toby - I can't actually fllw yr frm cs t hs n vwls n t ! However, I notice you are not closing the /option tag. Maybe that would help ? AFAIK, HTML requires option tags to be close. HTH - My 2c Cheers, Neil Smith. At 09:51 18/03/2003 +, you wrote: /* echo(select id=qlf_opt name=rq_qlf width='15' style=\font-family: $font\ multiple optgroup label=select qualifications ); for ($count = 1; $qlfz_id = mysql_fetch_row($rq_qlfz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { $qlf_id = $qlfz_id[1]; $qlf_nme = $qlfz_id[0]; $sq = $qlfz_id[2]; echo (option value=$qlf_id$qlf_nme); //echo($skll_id.$sq); } echo(/optgroup /select -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] help! for my project...
hay jeff how much time u got there do u understand anyother language then english well if u do i search for articles display results on my site u can chek it out at www.zaban.net then v will discuss what xactly n how u wanna do that im sorry the site doesnt support english yet but will in a few months :) good luck vid ur thesis ill try 2 help what i can ok :) toby --- Jeffrey S. Payao [EMAIL PROTECTED] wrote: hi guys! can anyone please help me in my project. please. im currently creating my thesis, a site with a search engine. i googled and found a lot for my projects. now my problem is i cant display my article links. :( im using php+apache+mysql on my w2k. here are the following code i took from http://www.devarticles.com/ the sql: create database content; use content; create table articles ( articleId int auto_increment, title varchar(50) not null, content text, primary key(articleId), unique id(articleId) ); create table searchWords ( wordId int auto_increment, word varchar(50), articleIds varchar(255), primary key(wordId), unique id(wordId) ); insert into articles values(0, 'MySQL is a great database', 'If you\'re after a top quality database, then you should consider MySQL. MySQL is packed with features, and can be installed on both Linux and Windows servers.'); insert into searchWords values(0, 'MySQL', '1'); insert into searchWords values(0, 'install', '1'); insert into articles values(0, 'MySQL: Most popular DBMS!', 'A recent survey conducted by Company X indicated that 98% of Linux developers prefer MySQL over any other DBMS. Developers prefer MySQL because it is fast, free and also cross-platform.'); update searchWords set articleIds = '1,2' where word = 'MySQL'; insert into searchWords values(0, 'survey', 2); insert into articles values(0, 'Apache is pronounced A-Patchy', 'Did you know that Apache is pronounced A-Patchy, because back in its early days it consisted of code that was just \'patched\' together roughly to create a web server?'); insert into searchWords values(0, 'apache', 3); the php: ?php $submit = $_POST[submit]; $keywords = $_POST[keywords]; if(isset($submit) || isset($keywords)) { doSearch($keywords); } else { getKeywords(); } function getKeywords() { ? html head title Enter Search Keywords /title /head body bgcolor=#FF form name=frmKW action=searchdocs.php method=post h1Keyword Search/h1 Enter keywords to search on: input type=text name=keywords maxlength=100 brbrinput type=submit name=submit value=Search /form /body /html ?php } function doSearch($search_keywords) { $arrWords = explode( , $search_keywords); if(sizeof($arrWords) == 0 || $search_keywords == ) { echo You didn't enter any keywordsbr; echo a href='searchdocs.php'Go Back/a; } else { // Connect to the database $dServer = localhost; $dDb = content; $dUser = admin; $dPass = password; $s = @mysql_connect($dServer, $dUser, $dPass) or die(Couldn't connect to database server); @mysql_select_db($dDb, $s) or die(Couldn't connect to database); $count = 0; $articles = array(); for($i = 0; $i sizeof($arrWords); $i++) { $query = select articleIds from searchWords where word = '{$arrWords[$i]}'; $result = mysql_query($query); if(mysql_num_rows($result) 0) { // Get the id's of the articles $row = mysql_fetch_array($result); $arrIds = explode(,, $row[0]); $arrWhere = implode( OR articleId = , $arrIds); $aQuery = select articleId, title, left(content, 100) as summary from articles where articleId = . $arrWhere; $aResult = mysql_query($aQuery); if(mysql_num_rows($aResult) 0) { while($aRow = mysql_fetch_array($aResult)) { $articles[$count] = array ( articleId = $aRow[articleId], title = $aRow[title], summary = $aRow[summary] ); $count++; } } } } if(isset($articles)) { $articles = array_unique($articles); echo h1 . sizeof($articles); echo (sizeof($articles) == 1 ? article : articles); echo found:/h1;
[PHP-WIN] user selectionz ?????
hi guyz im making this report generation form which lets the user select a category out of 8 through a dropdown list then the user has to select a few more thinggs only then the report can be generated now my problem is each of the 8 categories has 3 to 5 sub-categories what i want to do is when he selects a category the sub-cat-dropdown should get the sub-cats of ONLY the category selected n i have no clue how to go about this decently that is without having to re-load the page when category is selected suggesstion solutions pleeez thnx a million toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Authenticate user
hi rui 1st of all y do u want to clean up user data collected :S 2nd if u only want to authentify a user (logged into ur system/site) try this : // session check ! ! ! ! session_start(); if(!session_is_registered(name-of-session-u-registered-for-user )) { header(Location: /root/error-file-name.php); exit(); } hope i ve helped good luck toby .. --- Rui [EMAIL PROTECTED] wrote: I'm trying to make a page that requires an authentification by the user. A lot of problems appear when I run a script copied from the O'Reilly : Web Database Applications. One of them is the function :clean: that doesn't exist, according with the php compiler: session_start(); $authenticated = false; // Clean the data collected from the user $appUsername = clean($HTTP_POST_VARS[formUsername], 10); $appPassword = clean($HTTP_POST_VARS[formPassword], 15); Can someone tell me what is the prob? Where can I get information for this kind of script? Thanks. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] RE: script not allowing login after generating new password
jim with my vry little experteez what i do is $password= time(); store this password into db and mail it out to the member all in the same file :) what this does is not only a unique password for all my members its also pretty difficult to apprehend . let alone anythin else hope this helps good luck toby .. --- Uttam [EMAIL PROTECTED] wrote: what command are you using to change the password? *if you are using GRANT then you don't need to use PASSWORD() function, unless you use IDENTIFIED BY PASSWORD clause *if you are using INSERT or SET then you need to use PASSWORD() function to encrypt the password. see the actual password stored in database and compare it with encrypted user password [ PASSWORD('userpasssword')], both should match. hope that helps! regds, -Original Message- From: Beach, Jim [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 21:16 To: [EMAIL PROTECTED] Subject: script not allowing login after generating new password Hi, I'm new in this list and to PHP and MySQL. I'd welcome any help you can give. I'm working on a simple application where a registered user submits a forgot my password form. The script is supposed to generate a random new password, write it to the database, and send it to the user. Then they can log in with the new password and they're off and running. Here's what happens now: The password generator works fine - it creates a random string any length I want. The password field in the database gets changed - not to the new random string but apparently to an encrypted version of it via the MySQL password() function. The script returns the user a notice of the new password. BUT, login with the new password fails! I'm reluctant to ask you to do my debugging but I'm almost brain dead after hours of trying to figure this out. Can someone suggest where I might look for the problem? I'll include my scripts in a reply if needed. Thanks very much in advance. Jim -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] sos part 2 ! ! ! !
hi agian .. im through with usecaes exoansion and diagram ++ robustness diagram n am at collaboration diagramz rite now guyz id be in ur eternal debt if anyone can spare some time and go through these and lemme no if ive screwedup some vere im uploading these at my final project site (its a multilingual application) im pretty sure and sorry bout the fact, most of u will not be able to understand the site itself sine it aint in english :( . the url is : http://www.zaban.net/sos_doc/ thnx a mill guyz .. waitin despretely . toby ill upload the collaborationz just as im thru with em __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] php icon ????
well max ill try to explain what i can :$ as i rote in my first mail im making an scentcil of my own in ms visio for uml design for a thin client web application (i add) i have this book by booch and 2 more people ... designing web applications with uml and it has these artifacts of abondy objects, entity objects and control objects then it has these for a web page, asp page, form, frameset, target page, jsp page, scripts' and script liberaries page and all .. and in the books appandex the guys have described all these as stereotypes u know with all thier defination, declaration, icon, constraints and all so im think since i cudnt find all these in rational rose 98 (the only version of rose tha seeems to work A BIT here) ill do the same thatis make an appandex for these stereotypes and declare em all there since im sure ill never find a tool which HAS all these sighin deep n desprete toby my class is graduatiog on march 1st n the last date to register for graduation is feb 8th i foundout today .. i dont think ill b graduationg with em . does this happen to people or is it just me ? :( ? --- Maxim Maletsky [EMAIL PROTECTED] wrote: please, explain yourself better. Use what? Add what? ..to what? -- Maxim Maletsky [EMAIL PROTECTED] toby z [EMAIL PROTECTED] wrote... : thnx guyz a billion but do tell me anothrthingg while we are at it cant i uze sumthing of my own n then later in the appendex declare a stereotype deffination . with all its declaration, defination and constraints and all ? this is a doccumentation for my masters degree final project .. n i really cant afford to screw this one up u no thnx again . gratefull . toby --- Maxim Maletsky [EMAIL PROTECTED] wrote: Yeah, but remember also to read the copyrights. Design property is not GPL, but can be often used with the permission. Read the license on php.net. -- Maxim Maletsky [EMAIL PROTECTED] Luis Ferro [EMAIL PROTECTED] wrote... : In the site www.php.net there is a faveicon in the site that can be used as such: http://www.php.net/favicon.ico Cheers, Luis Ferro Teladigital.net toby z wrote: hi guys im at designing my project i couldnt find any free tools so im making my own stencil in ms visio i have got a list of uml articrafts from this book with icons for asp and java pages and scripts, but what i dont see there is an icon for a php page can and will anyone pleez tell me what a php page icon would or shud look like thnx a mill toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com --- [This E-mail scanned for viruses by Declude Virus] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: Apache 2.0.44; PHP 4.3.0; CGI implemented WinXP Home
hay shaggy 2 solutions 1. risk turn ur registerglobals on in ur php.ini since its off by default 2. on the page where ur catching ur variable vatdh it as if ($_GET['site']) $site=events; shaggy if u dont change ur code now and keepgoin with register globals off u ll end up in a mess . i know this cuz it actually happened to me 7 months ba ok for security puroses ull ve 2 turn register globals off eventually . so do the right thig now pal good luck toby ... --- Shaggy [EMAIL PROTECTED] wrote: plzzz any help is appreciated =( Shaggy [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there =D; i got the following problem: When i want to use variables in URLs for example: http://192.168.0.1/Treff/index2.php?site=events i got this error: Warning: main(.php) [function.main]: failed to create stream: No such file or directory in c:\stuff\homepage\treff\index2.php on line 34 Warning: main() [function.main]: Failed opening '.php' for inclusion (include_path='.;c:/stuff/homepage/treff;c:/stuff/homepage/magus;c:/stuff/ho mepage/bgallery') in c:\stuff\homepage\treff\index2.php on line i discovered that the $site variable is empty next is my php.ini it seems, that there are workarounds with some kind of magicvariables but i don´t want to change my code so plzzz do u have any suggestions? thx so far Shaggy -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] php icon ????
:$ :D yup . u got it . i tried my best u cudnt but u clever u u actually got it paron me im losin it here . :'( im doomed . :'( sucidal dreeemz toby .. --- Maxim Maletsky [EMAIL PROTECTED] wrote: So, in short, is your question stays in whetehr or not you could use the PHP logo for the thin client we application or whatever your project is? I am not sure why, but I stil doubt I understood you right ... :) -- Maxim Maletsky [EMAIL PROTECTED] toby z [EMAIL PROTECTED] wrote... : well max ill try to explain what i can :$ as i rote in my first mail im making an scentcil of my own in ms visio for uml design for a thin client web application (i add) i have this book by booch and 2 more people ... designing web applications with uml and it has these artifacts of abondy objects, entity objects and control objects then it has these for a web page, asp page, form, frameset, target page, jsp page, scripts' and script liberaries page and all .. and in the books appandex the guys have described all these as stereotypes u know with all thier defination, declaration, icon, constraints and all so im think since i cudnt find all these in rational rose 98 (the only version of rose tha seeems to work A BIT here) ill do the same thatis make an appandex for these stereotypes and declare em all there since im sure ill never find a tool which HAS all these sighin deep n desprete toby my class is graduatiog on march 1st n the last date to register for graduation is feb 8th i foundout today .. i dont think ill b graduationg with em . does this happen to people or is it just me ? :( ? --- Maxim Maletsky [EMAIL PROTECTED] wrote: please, explain yourself better. Use what? Add what? ..to what? -- Maxim Maletsky [EMAIL PROTECTED] toby z [EMAIL PROTECTED] wrote... : thnx guyz a billion but do tell me anothrthingg while we are at it cant i uze sumthing of my own n then later in the appendex declare a stereotype deffination . with all its declaration, defination and constraints and all ? this is a doccumentation for my masters degree final project .. n i really cant afford to screw this one up u no thnx again . gratefull . toby --- Maxim Maletsky [EMAIL PROTECTED] wrote: Yeah, but remember also to read the copyrights. Design property is not GPL, but can be often used with the permission. Read the license on php.net. -- Maxim Maletsky [EMAIL PROTECTED] Luis Ferro [EMAIL PROTECTED] wrote... : In the site www.php.net there is a faveicon in the site that can be used as such: http://www.php.net/favicon.ico Cheers, Luis Ferro Teladigital.net toby z wrote: hi guys im at designing my project i couldnt find any free tools so im making my own stencil in ms visio i have got a list of uml articrafts from this book with icons for asp and java pages and scripts, but what i dont see there is an icon for a php page can and will anyone pleez tell me what a php page icon would or shud look like thnx a mill toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com --- [This E-mail scanned for viruses by Declude Virus] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: logo copyright [was: php icon [@PHP - WIN]]
thnx max i really appriciate this thnx a zallion :) toby --- Maxim Maletsky [EMAIL PROTECTED] wrote: OK, Toby, I think I got it - you need to display the PHP logo within your project for differeciating PHP amoung the other languages in a list of code/scripts/resources. Correct me if I am wrong. Well, PHP license is GPL, however, the graphical elements from the website are copyrighted to the PHP Group. This is described here: http://www.php.net/copyright.php But, I think you should ask [EMAIL PROTECTED] describing how you want to use the PHP logo and see whether this can be allowed. I am cc'ing this to the PHP webteam, they should give you the right answer shortly. -- Maxim Maletsky [EMAIL PROTECTED] toby z [EMAIL PROTECTED] wrote... : :$ :D yup . u got it . i tried my best u cudnt but u clever u u actually got it paron me im losin it here . :'( im doomed . :'( sucidal dreeemz toby .. --- Maxim Maletsky [EMAIL PROTECTED] wrote: So, in short, is your question stays in whetehr or not you could use the PHP logo for the thin client we application or whatever your project is? I am not sure why, but I stil doubt I understood you right ... :) -- Maxim Maletsky [EMAIL PROTECTED] toby z [EMAIL PROTECTED] wrote... : well max ill try to explain what i can :$ as i rote in my first mail im making an scentcil of my own in ms visio for uml design for a thin client web application (i add) i have this book by booch and 2 more people ... designing web applications with uml and it has these artifacts of abondy objects, entity objects and control objects then it has these for a web page, asp page, form, frameset, target page, jsp page, scripts' and script liberaries page and all .. and in the books appandex the guys have described all these as stereotypes u know with all thier defination, declaration, icon, constraints and all so im think since i cudnt find all these in rational rose 98 (the only version of rose tha seeems to work A BIT here) ill do the same thatis make an appandex for these stereotypes and declare em all there since im sure ill never find a tool which HAS all these sighin deep n desprete toby my class is graduatiog on march 1st n the last date to register for graduation is feb 8th i foundout today .. i dont think ill b graduationg with em . does this happen to people or is it just me ? :( ? --- Maxim Maletsky [EMAIL PROTECTED] wrote: please, explain yourself better. Use what? Add what? ..to what? -- Maxim Maletsky [EMAIL PROTECTED] toby z [EMAIL PROTECTED] wrote... : thnx guyz a billion but do tell me anothrthingg while we are at it cant i uze sumthing of my own n then later in the appendex declare a stereotype deffination . with all its declaration, defination and constraints and all ? this is a doccumentation for my masters degree final project .. n i really cant afford to screw this one up u no thnx again . gratefull . toby --- Maxim Maletsky [EMAIL PROTECTED] wrote: Yeah, but remember also to read the copyrights. Design property is not GPL, but can be often used with the permission. Read the license on php.net. -- Maxim Maletsky [EMAIL PROTECTED] Luis Ferro [EMAIL PROTECTED] wrote... : In the site www.php.net there is a faveicon in the site that can be used as such: http://www.php.net/favicon.ico Cheers, Luis Ferro Teladigital.net toby z wrote: hi guys im at designing my project i couldnt find any free tools so im making my own stencil in ms visio i have got a list of uml articrafts from this book with icons for asp and java pages and scripts, but what i dont see there is an icon for a php page can and will anyone pleez tell me what a php page icon would or shud look like thnx a mill toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
[PHP-WIN] sos !!!!
guyz this is an sos mail i need a hand with my system design if anyone outthere knowz uml for web and can spare me sum time id be eternally gratefull . i no ur all really buzzy n deep into work :( n ill understand .. (A) thnx a mill guyz toby . dash u there __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Mail newbie Question
hi duncan i have to do this job for a client in a week or so im sure its possible . ill start at it in a while n ill let u no whatever it is k ? good luck toby --- Duncan [EMAIL PROTECTED] wrote: Hi All, Is it possible to create a page where visitors can for example submit their email address and a list of their demands, then the page mails it to a support address? Would I have to use a mail server of any kind to send the emails? Where could I find an example script that could do this? Many thx in adv __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] How to extract PHP code from php pages
hi ha duy will u please be a bit more specifick about this extracting code thinggy out of php and html mixxup toby . --- Ha Duy Thien [EMAIL PROTECTED] wrote: Hi everyone Could you show me how to extract php code (in ?php ?) from a php pages mixed with HTML Thanks for any help Thien -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] an other tool thinggy ......
hi guyz im tryin to reverse engineer design model a project that has expanded a bit broader than my assumptionz its db is all intact n runnin perfect i only have to design the system in uml n submitt the darrned doccumentation the thingg is i cant work around with rational rose 98 it sumhow aint workin cant install rose 2000 aint got the key n no money 2 but it any free tools out there that do the thing :$ i no bout google.com :( it didn help much im afraid . :$ thnx a mill guyz bangin head in the wallz . toby. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Apahce Windows problems
u forgot to attach the files n attach ur code too if ud like to share it with us that is toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] importing access db to mysql
hi guys is there any tool to import an access db to mysql thnx a mill toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Looking for something simple
hi john im starting to work on a similar thingg well im finalazing the pretty messedup scheema rite now may b we cud workout togather on this one how bout it toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Which Web server to run under XP
sean im ran iis 5.1 on my win xp home :) it ran fine . till the list made me get apache ;) chao toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re:[PHP-WIN] TEXT (again)
hi bobo try using longtext or longblob types for ur mysql data im pretty sure that should solve ur prob mm n try anothr thingg will ya do u 've any kindda ID for a primary key of the table ur keeping ur questions and answers in if not make 1 and are u passing the id on to the page thats suuppozed to display the question n all in full ? if not try passing the id along and query ur database to get the id CAUGHT, by this display-full-question page, get the question AND anser or whatever else u want (IN a loop if u want to display more than 1 at a time) n then echo it out this thingg has been workin fo me all along n i hope this helps u good luck toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] GD, UNICODE RTL
hi i ve been workin with unicode for the last few months n i think ill be able to help you if u ll pleez be a bit more precise bout this why do u want to write in bitmap do u want to use it with php or what if u just wanna type sumthin in unicode from left to write in a bitmap file select the text tool then select a font ofcorse then press ctrlshift LEFT togather if u want arabic srcipt fonts in unicode ur wselcome to vist www.zaban.net for free downloadable unicode fonts that shud do fo now i guess good luck toby .. --- Mottaghi [EMAIL PROTECTED] wrote: Hi all, I want to write a Right-to-Left (like Arabic languages) sentence in a bitmap by unicode...but HOW??? :) thanks, bye -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] MYSQL PHP + GRAPH
hi first u ll have to lookup gd and enable it in ur php.ini n u ll have to get tiff and libjpeg on ur machine n here r a few links to graph creation with php http://php.resourceindex.com/Complete_Scripts/Images_and_Graphs/Graph_Creation/ http://www.szewo.com/php/graph/eng.phtml http://www.aditus.nu/jpgraph/ http://www.boutell.com/gd/ http://www.actionscript.com/archives/0077.html http://www.webguys.com/pdavis/programs/html_graphs/ if ur still stuck ping . good luck toby . --- [EMAIL PROTECTED] wrote: Hi, I am using MySQL as my database backend server and PHP to poll the data. I am wondering if someone could guide in presenting this data by a GRAPH using PHP. I really appreciate ur reply R R-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Can't install PHP 4.3.0, HELP PLEASE!
hi rafael 1st let this be a lesson to be remembered foever always keep a backup of your config files' last known good so that if anything like this happenez u ll have something to turn back to 2nd im sending you my php.ini and httd set n runnin on my windows macheen try them i made these work on an xp macheen too so im pretty sure they ll work . dont foget to change server name ! ! ! ! if ur still stuck or anything else blowz off ping me hope i v ehelped good luck toby . --- Rafael Fernandez [EMAIL PROTECTED] wrote: Hello, I am using Apache 1.3.27 in a Win XP computer and I used to run PHP 4.2.3 and I tried to upgrade to PHP 4.3.0 but I get the following errors: I deleted the old PHP 4.2.3 from my computer and the configuration lines in httpd.conf. I inserted the following lines: LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php It said that mod_php4.c was already loaded so, I restarted the server again, checked that no other line contained AddModule mod_php4.c and it still came up. I decided to delete the line AddModule mod_php4.c but I get the following error: [Warn] Loaded DSO c:/php/sapi/php4apache.dll uses plain Apache 1.3 API, this module might crash under EAPI! (Please recompile it with -DEAPI) __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Sessions
what on earth are u tryin to do startin the session and checkin it in the same file ? :S what toby --- ûÅÓÔÁËÏ× îÉËÏÌÁÊ [EMAIL PROTECTED] wrote: OS: WinXP Pro SP1. Apache 2. php 4.3 isap index.php ?php session_start(); session_register(sa); echo $sa.br; $sa=1; echo $sa.br; echo session_id().br; echo session_name().br; echo session_module_name().br; echo session_is_registered(sa).br; echo session_save_path().br; ? a href=http://localhost/index2.php;increment/a get 1 728be1c2b387346bf08ec42680571589 PHPSESSID files 1 C:\Program Files\php-4.3.0-Win32\sessiondata increment sess_728be1c2b387346bf08ec42680571589 is sa|i:1;. index2.php ?php session_start(); session_register(sa); echo $sa.?br; $sa+=2; echo $sa.br; echo session_id().br; echo session_name().br; echo session_module_name().br; echo session_is_registered(sa).br; echo session_save_path().br; ? a href=http://localhost/index2.php;increment/a get ? 2 728be1c2b387346bf08ec42680571589 PHPSESSID files 1 C:\Program Files\php-4.3.0-Win32\sessiondata increment sess_728be1c2b387346bf08ec42680571589 is sa|i:1;. sessiondata access is full. Why? __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: help with db selection with php .............
thnx a million diggy pardon my ignorance . i think postgre only works with freebsd, unix,linx or solaris can it work with windows ? 2ndly how much will i get to pay fo it if i get to pay . (rite now im searchin thru http://www.pgsql.com/ :$) 3rd i ve to get an alternative for visual practice developed in fox pro so i guess i HAVE to run what ever i run on windows 4th can freebird work with windows i think it works with interbase what can i do ?? plz tell . thnx a zillion again ... lost as ever toby . --- Diggy Bell [EMAIL PROTECTED] wrote: Toby, Either MySQL or PostgreSQL are good database alternatives. I'm more of a hardcore database person so I prefer PostgreSQL because of it's support for transactions. I've also found the SQL grammar in PostgreSQL to be a little more standard. Another option would be the Firebird project (http://firebird.sourceforge.net/). It was originally the Interbase product from Borland. Coming from FoxPro, either database is going to be a nice step up in the world. The main thing to keep in mind is that you'll have to pay a bit more attention to some of the standard database things like normalization and referential integrity. -- William D. 'Diggy' Bell Principal DB Software Development http://www.dbsoftdev.com Toby z [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ok guyz i need some inside info . plz help me with: 1. if i ve to conver a db in foxpro to mysql or sql which one should i preffer to use with php and y 2. and while im converting the foxpro db to mysql what will i ve to loose the common pitfalls .. 3. there aint no foreign keys in mysql then what can i do about cascading updates, deletes and all 5. n finally do i have anyother choice of open source database (cheapest if not completely free) for this conversion ? id be eternally gratefull if anyone cud guide me thru this .. thnx a billion zillion guyz . toby .. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] help with db selection with php .............
ok guyz i need some inside info . plz help me with: 1. if i ve to conver a db in foxpro to mysql or sql which one should i preffer to use with php and y 2. and while im converting the foxpro db to mysql what will i ve to loose the common pitfalls .. 3. there aint no foreign keys in mysql then what can i do about cascading updates, deletes and all 5. n finally do i have anyother choice of open source database (cheapest if not completely free) for this conversion ? id be eternally gratefull if anyone cud guide me thru this .. thnx a billion zillion guyz . toby .. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Unable to upload.. :(
thnx yet again pal . No probs buddy. Perhaps you have an IM program loaded? m do u mean instant messenger thinggy ya ive got it on my machine is THAT hinderrin my file upload sumhow :S 2ndly . move_uploaded_file() aint workin either . i keep gettin the same god fo saken error . :( :'( i ve gotta make dis creepy upload thinggy work else im doomed :'( vat else can i try thnx a mill . despreate as ever ... toby .. --- Dash McElroy [EMAIL PROTECTED] wrote: Toby, Your ISP may be using 'safe_mode'. Try the move_uploaded_file function() instead of copy(). This is taken off php.net/move_uploaded_file: Note: move_uploaded_file() is not affected by the normal safe-mode UID-restrictions. This is not unsafe because move_uploaded_file() only operates on files uploaded via PHP. Hope this helps... -Dash *** NEWSFLASH *** Russian tanks steamrolling through New Jersey Details at eleven! On Sun, 24 Nov 2002, [iso-8859-1] toby z wrote: Hi all I am trying to upload a file. It works fine on my local Apache, but gives me Permission denied to create file error on my online host.. Any clue??? $file = $_FILES['userfile']['tmp_name']; if (is_uploaded_file($file)) print_r(Copying .$file); if (copy($file, ./files/. $_FILES['userfile']['name'])) echo(Success); else echo(Failure); __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Unable to upload.. :(
Hi all I am trying to upload a file. It works fine on my local Apache, but gives me Permission denied to create file error on my online host.. Any clue??? $file = $_FILES['userfile']['tmp_name']; if (is_uploaded_file($file)) print_r(Copying .$file); if (copy($file, ./files/. $_FILES['userfile']['name'])) echo(Success); else echo(Failure); __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] lost tryin to UPLOAD a file .... :(
hay guyz . im tryin to upload a file to my server n im gettin this on the screen : file submittedmissing in beta ! ! ! !.txtfile sixe 162file typetext/plain Warning: Unable to open '' for reading: Permission denied in e:\final project\zroot\up.php on line 89 Either you did not upload any file, or you uploaded an empty file! (Y) :P:P:P toby z here s the code lou.php - echo(form enctype=\multipart/form-data\ action=up.php method=post); includewriter_info_dsply.php; include lang_dsply.php; include cat_dsply.php; // !-- entr title -- echo(tr td title /td); echo ( td INPUT NAME=title TYPE=text style=\font-family: '$font'\ /INPUT /td /tr ); //!-- summary -- echo(tr td valign='top'summary /td); echo( td textarea name=summary rows=7 cols=60 wrap=virtual style=\font-family: '$font'\ /textarea /td /tr ); echo(tr td valign='top'input type=hidden name=MAX_FILE_SIZE value=200 Send this file: input name=userfile type=file /td td (file size should not exceed 2mb)/td /tr trtd input type=submit value='Send File' style=\font-family: Riwaj\ /td/tr); --- up.php // followin waz tried outta sheer despiration $file_origin= $_POST['file_origin']; $destination_directory=$_POST['destination_directory']; $file_destination = $_POST['$file_destination']; $overwrite = $_POST['$overwrite']; $fatal = $_POST['$fatal']; $fp = $_POST['$fp']; $error_prefix = $_POST['$error_prefix']; $copy_file = $_POST['$copy_file']; $copy_file =$_POST['$copy_file']; $dest_file_exists =$_POST['$dest_file_exists']; // endda despration 1 include cpychk.php; includecnctdb.php; includestyl.php; /* i cut it out ven i found i had been a goof again :( $userfile_name=$_POST['userfile_name']; $userfile_size=$_POST['userfile_size']; $userfile_type=$_POST['userfile_type']; */ $userfile_name=$_FILES['userfile']['name']; $userfile_type=$_FILES['userfile']['type']; $userfile_size=$_FILES['userfile']['size']; $cat_opt_name =$_POST['cat_opt_name']; $lang_opt_name=$_POST['lang_opt_name']; $firstName=$_POST['firstName']; $lastName=$_POST['lastName']; $title=$_POST['title']; $summary=$_POST['summary']; echo(file submitted .$userfile_name ); echo(file sixe .$userfile_size); echo(file type .$userfile_type); $unique_id = time(); $name = $unique_id.$userfile_name;// fo t imestmp ++ usr givn name ! $zname = 'moronhead'; // sorry bout dis try //if (copy($userfile, E:/final project/zroot/tmp uploadz/ . $unique_id.-. $userfile_name )) // dis didnt work if (copy($_FILE['userfile']['name'], E:/final project/zroot/tmp uploadz\\ . $unique_id)) // so i tried dis :S { echo(b file successfully uploaded /b); // insrtn in2 db $query = SELECT memb_id FROM lgn where login = '$login' ; $query_result_handle = mysql_query ($query) or die ('qry failed ! DA tbl must xixt in DA db specifyd bov '); $memb_id=mysql_fetch_row($query_result_handle); $sql = insert into ctnt_inf (cat_id, lang_id, memb_id, firstName, lastName, title, summary, path_of_upload, isfile, type,sixe, date_time, day, month, year ) . values ( . $cat_opt_name . , . $lang_opt_name . , . $memb_id[0] . ,' . $firstName . ', ' . $lastName . ',' . $title . ',' . $summary . ',' . $unique_id. ', '1' ,' . $userfile_type . ',' . $userfile_size . ', . time() . , . date(d). , . date(m). , . date(Y).) ; if ( mysql_query($sql) ) { echo(font face='riwaj'Particle submitted ! ! ! !/P . $title.br//. $body . . br.$summary. /font ); } else { echo(PError uploadin file : . mysql_error() . /P); } } else //(!$userfile_size) echo( Either you did not upload any file, or you uploaded an empty file! ); echo( (Y) . . :P:P:P.brbr. $login . br ) ; echo($firstName .nbsp. $lastName); echo($query); echo($sql); --- included file cpychk.php - //function that performs various checks before copying: function file_copy($file_origin, $destination_directory, $file_destination, $overwrite, $fatal) { if ($fatal) { $error_prefix = 'FATAL: File copy
Re: [PHP-WIN] problem insert data into mysql
hay zues try this insert into table values ( . $first. , . $last. ); hope this works . good luck toby .. --- zeus [EMAIL PROTECTED] wrote: I make register golbals on, but it doesn't solve the problems. The wird thing is, i am using php nuke in my localhost, it can enter datas into MySQL, the form and the script it's not diffrent than mine right (phpnuke more complex). The form it self don't have any errors?? and how about the PHP script?? is there any error? I need explanation in english please..please.. because i am still new in php. Dash McElroy wrote: Oh - you might want to check your register_globals item in php.ini and set it to on (look at www.php.net/register_globals) or use $_GET['varname'] for GET, $_POST['varname'] for POST, or $_REQUEST['varname'] for Get/Post/Cookie (works for any of those). -Dash -Original Message- From: zeus [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 8:49 AM To: phpwin Subject: [PHP-WIN] problem insert data into mysql I make this script. I have a problem, the data entered in the form wont insert into MYSQL, the database added new row but with blank database. Is there something wrong with the script? because i install phpnuke and i can added new data into mysql. Thanks, i need solve this problem A.S.A.P, with your kind help o PHP-er Thanks.. using PHP 4.2 Apache 1.3 code=== form action=insert.php method=post First Name: input type=text name=firstbr Last Name: input type=text name=lastbr Phone: input type=text name=phonebr Mobile: input type=text name=mobilebr Fax: input type=text name=faxbr E-mail: input type=text name=emailbr Web: input type=text name=webbr input type=Submit /form ?PHP $username=root; $password=; $database=belajarPHP; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( Unable to select database); $query = INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query); mysql_close(); ? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] sessions and unicode!
hi siamak I'm designing a site with php that it has a login page. the login page uses sessions; when I save my document normally it works , an everything is ok , but when I save it as a UTF-8 document, it says : Warning: Cannot send session cache limiter - headers already sent (output started at ... 1. plz enlighten me y on earth r u saving ur page as utf-8 (i guess ur savin ur php page as utf or m i right ??) 2. can u share ur code with us what should I do to make a unicode login page that uses sessions? 3. what is it on this page thats unicode waitin toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Cookie problem
hay clay letts start over 1st page where u ll take input into a from n post it - echo( form action=logn_p.php method=POST input type=text name=frm_login/input); echo( password input type=password name=frm_pw/input input type=submit value=login /input /form ); ** a simple form ! ! ! ! ** logn_p.php --- includecnctdb.php; // a file for ur connection to database with the connection query n all // get the variables passed from the form $flogin=$_POST['frm_login']; $fpw=$_POST['frm_pw']; // qry for gettin the login and password fields from db table $query = SELECT role_id,fName, logn.memb_id FROM mbr_inf, logn WHERE logn.login = '$flogin' and logn.pw = '$fpw' and mbr_inf.memb_id = logn.memb_id ; $result = mysql_query ($query) or die ('qry failed ! DA tbl must xixt in DA db specifyd bov '); $rows = mysql_num_rows($result); if($rows0) { // chk n disply fo membrz only ! ! ! ! $data = mysql_fetch_row($result); if ($data[0] == 0 $flogin != ) // chk fo mbr { $name=$data[1]; // initiate a session session_start(); // register some session variables session_register(SESSION); header(Location: /dir_path/mbrchk.php?flogin= . $flogin. varble2= .$varble2); exit(); } // endda membr chk ! ! ! ! else { // no lgn found header(Location: /dir_path/nologn.php); exit(); } --- mbrchk.php -- ** now this is the file that actually displayz the material only a member has access to ** // session check session_start(); if (!session_is_registered(SESSION)) { // if session check fails, invoke error handler header(Location: /sir/nolgn.php); exit(); } $flogin=$_GET['flogin']; $name_qry = select fName,lastName from mbr_inf where email='$flogin'; $name_qry_result = mysql_query ($name_qry) or die ('qry failed ! DA tbl must xixt in DA db specifyd bov '); and after this u can fetch row or dsply what ever u want to * --- hope this helps . good luck toby .. --- Clay Culver [EMAIL PROTECTED] wrote: Hi, I am having a problem trying to set a cookie with the register_globals variable turned OFF. I have a script that just checks a password in a MySQL database through a form, if the password is the same in the db then the cookie is set and access is allowed to any page that has the other part of the code. Right now the password is not being validated, below is the code I am using. [html form] form method=post action=validate.php h5Enter Password/h5 pinput type=password name=password size=20 //p input type=submit value=Enter / [/html form] [validate.php] ?php include(phpDB.php); include(db.php); $result = $db-execute(SELECT Password FROM password WHERE Location='members'); if (!strcasecmp($result-fields['Password'], $password)) { setcookie (access, access, 0, , weburlhere, 0); ? html head titleIdentification/title !-- META HTTP-EQUIV=Expires CONTENT=Fri, Jun 12 1981 08:20:00 GMT META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache -- /head body div align=center Password accepted /div ?php include(footer.htm); ? ?php } else { // bad password ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/tr/xhtml1/dtd/transitional.dtd; ?php print(?xml version=\1.0\ encoding=\iso-8859-1\?\n); ? html head titleBad Password/title /head body div align=center Bad Password ?php include(footer.htm); ? /div ?php }? /body /html [/validate.php] [password.php this is what is included at the top of the pages I wish to protect] ?php if (isset ($access)) { if (!strcasecmp(access, $access)) { } else { header (Location: http://url/breach.php;); // Redirect browser exit; // Make sure that code below does not get executed when we redirect. } } else { header (Location: http://url/breach.php;); // Redirect browser exit; // Make sure that code below does not get executed when we redirect. } ? [/password.php] I have tried changing if (!strcasecmp($result-fields['Password'], $password)) { to if
Re: [PHP-WIN] uploading help please
hi marcelo 1st i don think u can upload 2 filez simultaneosly 2nd form enctype=\multipart/form-data\ action=up.php method=post is what u do when u wanna upload A file 3rd when u see Array displayed istead ur variable it means the variable aint bein piked by the page or the query check ur code and the variables passed hope i ve helped good luck toby --- marcelo [EMAIL PROTECTED] wrote: Hi need some help please What is wrong with my code? it is supposed to upload 2 files but instead gives me this error Warning: Unable to open 'Array' for reading The code: html head titleO Leme upload/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php $PHP_SELF = $_SERVER['PHP_SELF']; $page = $_REQUEST['page']; $origem = $_FILES['origem']; $origem2 = $_FILES['origem2']; switch($page) { case um: um($origem ,$origem2); break; case dois: dois($origem, $origem2); break; default: um($origem ,$origem2); break; } function um($origem ,$origem2) { ? titleJornal O Leme/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#006699 table width=100% border=0 cellpadding=0 cellspacing=0 !--DWLayoutTable-- tr td width=100% height=70 valign=topimg src=test.jpg width=600 height=120 /td /tr tr td height=262 valign=toppnbsp;/p form method=post action=?php $PHP_SELF ? enctype=multipart/form-data table width=75% border=0 align=center bgcolor=#FF tr td width=23%div align=centerfont face=BankGothic Md BT /font/div/td td width=77% bgcolor=#FFnbsp; /td /tr tr tddiv align=center/div/td td bgcolor=#FFnbsp; /td /tr tr tddiv align=center/div/td td bgcolor=#FFnbsp; /td /tr tr tddiv align=leftstrongImagem pequena/strong/div/td td bgcolor=#FF input type=hidden name=MAX_FILE_SIZE value=102400 input type=File name=origem /td /tr tr tddiv align=leftstrongImagem grande/strong/div/td td bgcolor=#FFinput type=hidden name=MAX_FILE_SIZE value=102400 input type=File name=origem2 /td /tr tr tddiv align=center/div/td td bgcolor=#FFnbsp; /td /tr tr tdnbsp;/td tdnbsp;/td /tr /table p align=center input name=submit type=submit value=Adicionar input type=hidden name=page value=dois /form/p /td /tr tr td height=81 valign=topdiv align=center pnbsp;/p p ?php include ('menu.php'); ? nbsp;/p /div/td /tr /table ?php } function dois($origem, $origem2) { set_time_limit(60); $path=(dirname($PATH_TRANSLATED)).../primeirapagina/; $origem_name=pppv2.jpg; $dest= $path.$origem_name; if (($origem none) ($origem )){ if (copy($origem,$dest)){; } else { echo directoria sem direitos de escrita br; } unlink ($origem); } set_time_limit(60); $path2=(dirname($PATH_TRANSLATED)).../primeirapagina/; $origem2_name=ppv2.jpg; $dest2= $path2.$origem2_name; if (($origem2 none) ($origem2 )){ if (copy($origem2,$dest2)){; } else { echo directoria sem direitos de escrita br; } unlink ($origem2); } } ? /body /html === message truncated === __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Login from another page (pardon me :$)
pardon my ignorance guyz but what on earth is BBS pretty embaressed toby . --- Douglas F. Keim [EMAIL PROTECTED] wrote: I installed php, mysql and phpbb on my web site. The bbs is great and a wonderful way to communicate with clients and family. However, there is an area on my web that I have password protected earlier with a MS Access database. Now I have two databases to maintain and two areas that I have to set up users. Though relatively easy to do, it is a duplication of effort. What I think that I would like to do is use one or the other for both functions. Since the BBS is working so well in the PHP world, I am leaning towards MySQL as the preferred database of choice. My question is this. How do I access the mysql database from a web page that is not going to go into the bbs? I would also like to allow a user to update his/her own profile. Maybe even change their own password on occasion if they would like. Anyone help? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] fopen, fputs, fwrite, fclose, fdammit
hay max writin to a file is terrable . anyway 1st $pctarget = /blogbits/.substr ($target,0,6)./_.$target._bc.txt; if this is a path ur tryin to specify change / to \ 2nd try fwrite fwrite($getcomments, $title ); or fwrite($getcomments, $addrecord); hope this helps . good luck toby. --- Max Graham [EMAIL PROTECTED] wrote: I'm trying to put a comment page on my weblog. I have the link displayed in the format of date first, then a link to bookmark the entry, and then a link to post a comment. I want to write the comments to a text file. My comment page accepts a default value of target, which is set to the date to be commented on. Then it opens (or creates) a text file in the format of the variable set by $pctarget. $pctarget = )./_.$target._bc.txt; if ($newpost == yes) { $addrecord = $newpostname.\n.$newpostemail.\n.$newposturl.\n.date(l, F jS, Y).\n.$newpostcomments.\nbr; $fullcomments .= -splitcomment-\n; $getcomments = fopen($pctarget, a); fputs($getcomments, $addrecord); fclose($getcomments); } I've tried assigning fputs() and fclose() to variables (which I infer is the right way to do things but the manual isn't clear on it, i.e. $gc=fputs($getcomments, $addrecord); but that doesn't work either. When the page loads I get a blank page and this for the source: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=windows-1252/HEAD BODY/BODY/HTML It's not even the header source I told it to put out. As I understand it, this is the source put out by an error page, when the code won't run. I haven't been able to figure out what simple thing I'm missing, and I know it's simple because it invariably is. (Law of Murphy, don't ya know.) Any suggestions? Would lack of file permissions cause this? Server is a Linux box. Thanks in advance -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] file download .......
hi guyz im tryin to let a user download a file when he clicks on the link a open from location or save to disk dialog should appear n i dont know how to do this can n will sumbdy plz help thnx a million toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] font library in php ????
hi guyz now a new stuckup is there any library for using embedded fonts in php can anyone help plz thnx a million toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] font library in php ?????
hi guyz now a new stuckup is there any ibraary for using embedded font in php can anyone help plz thnx a million toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] works on one server and not another
hay tim y doesnt it work ? vat error do u get its really strange coz i ve XP at my home n win2k pro at my workplace and all the code i bring from home vorks on my vrkplace machine do do lemme no bout any errors i MIGHT b able to help goodluck toby --- Tim Blackwell [EMAIL PROTECTED] wrote: this works on a windows XP machine i have but when i put it on a w2kserver it doesn't work? html body ? @ $db = mysql_pconnect(localhost, , ); mysql_select_db(database_name); $query = insert into table_name values ('.$name.'); $result = mysql_query($query); ? /body /html -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] uploading filez with $HTTP_POST_FILES ?????
ok now i know i ve actually lost it all i cant upload files now this file waz workin fine till i turned register globalz off n now im gettin this error Warning: Unable to open 'Array' for reading: No such file or directory in e:\final project\zroot\s i r\up.php on line 52 Either you did not upload any file, or you uploaded an empty file! (Y) :P:P:P n line 52 is if (copy($HTTP_POST_FILES['userfile'], E:/final project/zroot/ . $unique_id)) what onearth is it with it or is it only me id really appriciate anyhelp with this thnx a mill toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] uploading filez with $HTTP_POST_FILES ?????
ya mikey its workin now thnx . heres me code pal . in load.php echo(input type=hidden name=MAX_FILE_SIZE value=200 Send this file: input name=userfile type=file input type=submit value='Send File' ); in up.php if (copy($_FILES['userfile']['tmp_name'], E:\\final project\\zroot\\ . $unique_id..pdf)) { echo( file successfully uploaded ); } // endda if copy else { echo(either u didn upload a file or its empty ! ! ! ! );} hope it helps (aftr the if chk i ve got a qry if u van 2 c dat lemme no n i ll mail dat 2 ) luck toby . --- Mikey [EMAIL PROTECTED] wrote: Also - do you have track_vars set to on? Please let me know how you get on, as I am about to try using this myself in a bit. regards, Mikey If you give someone a program, you will frustrate them for a day. If you teach them how to program, you will frustrate them for a lifetime. -Original Message- From: toby z [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 11:15 To: php hlp list Subject: [PHP-WIN] uploading filez with $HTTP_POST_FILES ? ok now i know i ve actually lost it all i cant upload files now this file waz workin fine till i turned register globalz off n now im gettin this error Warning: Unable to open 'Array' for reading: No such file or directory in e:\final project\zroot\s i r\up.php on line 52 Either you did not upload any file, or you uploaded an empty file! (Y) :P:P:P n line 52 is if (copy($HTTP_POST_FILES['userfile'], E:/final project/zroot/ . $unique_id)) what onearth is it with it or is it only me id really appriciate anyhelp with this thnx a mill toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Page has expired
hi Radovan To acccess the previous URL in history: use $HTTP_REFERER i came accross this function n saved it it is somevere in function list on php.net hope it helps (by the way how do u pronounce ur name n vat does it meen :S) goodluck toby --- Radovan Radic [EMAIL PROTECTED] wrote: Hello When i have javascript code history.go(-1) and i need to go back to the php page, i get errors page has expired. What should i do? Radovan -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] =array within html table=
tony if you want it to be printed inside the table it has to be INSIDE the table inside a ROW and a COLUMN just like you have done with all other tr and td echo(trtd . $current . /td/tr); godd luck toby --- Anthony Ritter [EMAIL PROTECTED] wrote: I'd like to have the record data - $current - *within* the html table but if I run this script it is on a line outside of the table: ? $content = file(http://waterdata.usgs.gov/ny/nwis/uv?format=rdbperiod=1site_no=01427 510); array_pop($content); $current = array_pop($content); print(table border=1); print(trtdUSGS/tdtdStation/tdtdDate/tdtdTime/tdtdHeight /tdtdCFS/tdtdTemperature/td); print(/table); print($current); ? ... ...and if I run this script, the record - $current - is outside above the table - not within it. ? $content = file(http://waterdata.usgs.gov/ny/nwis/uv?format=rdbperiod=1site_no=01427 510); array_pop($content); $current = array_pop($content); print(table border=1); print(trtdUSGS/tdtdStation/tdtdDate/tdtdTime/tdtdHeight /tdtdCFS/tdtdTemperature/td); print($current); print(/table); ? . Any help would be greatly appreciated. Tony Ritter -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Creating files with PHP - need help
or u could add an other \ to tha path c:\\name.txt, wb luck toby --- Luis Moreira [EMAIL PROTECTED] wrote: When you refer to a ROOT; to create a file, you are not referring to the MACHINE's root, but to the FILE SYSTEM ROOT. That is why the file goes to HTDOCS. Try creating the file using an ABSOLUTE PATH, e.g c:\Docs\example-dir\54.txt Regards, Luis - Original Message - From: Sviss [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 9:46 PM Subject: [PHP-WIN] Creating files with PHP - need help Hi NG. I'm having problems creating files at a certain location. If I attemt to create a file it gets created in the rootdir (htdocs) even though I add a path infront of the file name. I've tried severel ways of adding a path but nothing works. eksample: /nef/articles/54.txt File 54.txt gets created but not at the intented location, instead it gets created in htdocs. Can anyone help me by telling me how I'm suppose to do this? I'm running PHP on Win98 with Apache. ~ Sviss -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Creating files with PHP - need help
well aidal for me it did it just WOULDN create the file otherwise :$ :| toby --- Aidal [EMAIL PROTECTED] wrote: Dona that \\nef\\articles makes no difference. Toby z [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... or u could add an other \ to tha path c:\\name.txt, wb luck toby --- Luis Moreira [EMAIL PROTECTED] wrote: When you refer to a ROOT; to create a file, you are not referring to the MACHINE's root, but to the FILE SYSTEM ROOT. That is why the file goes to HTDOCS. Try creating the file using an ABSOLUTE PATH, e.g c:\Docs\example-dir\54.txt Regards, Luis - Original Message - From: Sviss [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 9:46 PM Subject: [PHP-WIN] Creating files with PHP - need help Hi NG. I'm having problems creating files at a certain location. If I attemt to create a file it gets created in the rootdir (htdocs) even though I add a path infront of the file name. I've tried severel ways of adding a path but nothing works. eksample: /nef/articles/54.txt File 54.txt gets created but not at the intented location, instead it gets created in htdocs. Can anyone help me by telling me how I'm suppose to do this? I'm running PHP on Win98 with Apache. ~ Sviss -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Mail problem
francisco are u tryin the function on the webserver u will host ur site on coz if u r running it from ur local host u will get the error since ur localhost cant send a mail toby . --- Francisco Murillo Montoya [EMAIL PROTECTED] wrote: Hello; I have PHP 4.2.3 on Windows 2000 advanced, and when I try to use the mail funtion, the server returns an error. ? mail([EMAIL PROTECTED],Formulario,cuerpo); ? The page sais: Warning: Server error in c:\url\file.php on line 2. I have Imail as Mail Server. Do you know why this happen? Thank you. Francisco Murillo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] RE: [PHP] Re: Using date() function
davy heres my query $sql = insert into ctnt_inf (title, body,summary,date_time, day, month, year ) . values (' . $_POST['title']. ',' . $_POST['body'] . ',' . $_POST['summary'] . ', . time() . , . date(d). , . date(m). , . date(Y). ) ;\ n i get the day month n year in my database hope it helps :) luck toby . --- Davy Obdam [EMAIL PROTECTED] wrote: Hi John, How do u use UNIX_TIMESTAMP or DATE_FORMAT in your query. My query now looks like this: SELECT * FROM guestbook2002 ORDER BY entryID DESC LIMIT $entry, $show; Can u help me;-) Thanks for your time Best regards, Davy Obdam, mailto:[EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 06, 2002 3:31 PM To: 'Davy Obdam'; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-WIN] RE: [PHP] Re: Using date() function Using $entry_date = date('l, d F Y H:i:s',$sql['date']); now gives me back Tuesday, 19 January 2038 04:14:07 with ever entry. $sql['date'] is a TIMESTAMP and looks like this 20021006141256 in the datebase. It should give me Sunday, 06 October 2002 14:12:56..? Wierd eh? Do u know a solution? No, not weird. MySQL uses a timestamp in the MMDDHHMMSS format. Date() is expecting a UNIX timestamp, which is the number of seconds since Jan 1, 1970. So... you can either use DATE_FORMAT() in your query, with is the MySQL equivalent of date(). Look up the format in the manual. Or, you can use UNIX_TIMESTAMP() in your query to select out the unix timestamp instead of the mysql timestamp, and then use that value within date() in your PHP script. ---John Holmes... -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] RE: [PHP] Re: Using date() function
heres my query $sql = insert into ctnt_inf (title, body,summary,date_time, day, month, year ) . values (' . $_POST['title']. ',' . $_POST['body'] . ',' . $_POST['summary'] . ', . time() . , . date(d). , . date(m). , . date(Y). ) ;\ n i get the day month n year in my database hope it helps :) luck toby . --- Davy Obdam [EMAIL PROTECTED] wrote: Hi John, How do u use UNIX_TIMESTAMP or DATE_FORMAT in your query. My query now looks like this: SELECT * FROM guestbook2002 ORDER BY entryID DESC LIMIT $entry, $show; Can u help me;-) Thanks for your time Best regards, Davy Obdam, mailto:[EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 06, 2002 3:31 PM To: 'Davy Obdam'; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-WIN] RE: [PHP] Re: Using date() function Using $entry_date = date('l, d F Y H:i:s',$sql['date']); now gives me back Tuesday, 19 January 2038 04:14:07 with ever entry. $sql['date'] is a TIMESTAMP and looks like this 20021006141256 in the datebase. It should give me Sunday, 06 October 2002 14:12:56..? Wierd eh? Do u know a solution? No, not weird. MySQL uses a timestamp in the MMDDHHMMSS format. Date() is expecting a UNIX timestamp, which is the number of seconds since Jan 1, 1970. So... you can either use DATE_FORMAT() in your query, with is the MySQL equivalent of date(). Look up the format in the manual. Or, you can use UNIX_TIMESTAMP() in your query to select out the unix timestamp instead of the mysql timestamp, and then use that value within date() in your PHP script. ---John Holmes... -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] guest book ?????
ok guys stuck as usual i ve to make a guest book on my site and have no clue how to get about it as usual will someone pleez tell me where to start from and what to do and second guyz plz do tell me if any one has worked on it , how long would it take to make thnx a million guyz toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] suggessions fo full text search .....
hi guys i mailed bout a fulltext search on pdf doccuments in mysql database now from what i ve gathered i guess i ll ve to develop either of the two : either a search module that ll search the WORD doccuments ill ve 2 store in an table (other then the pdf thinggy) n get the match n den get a refrence to the pdf tables row n throw it out OR develop a com thinggy which ll search thru the pdfs now guys im sure u how my professional skills r leading me around m a totla newbee so will u guys bestow upon me the eternal bliss of ur wizdom ? n guide me thru thnx a million guys toby __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Getting at addressbook information on an Exchange S erver...
mmm if i aint 2 late ME TOOO :D thnx a mill toby --- Sichta Daniel [EMAIL PROTECTED] wrote: Me too !! THX DS -Original Message- From: Jody Cleveland [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Getting at addressbook information on an Exchange S erver... Me too? Thanks! Jody Cleveland -Original Message- From: Raceeend [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Getting at addressbook information on an Exchange Server... Can you send that to me too? regards, Martijn M.B. wrote: I must say, I'm interested too. M.B. Ernani Joppert Pontes Martins [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have made a com+ module in php that uses CDO (Collaboration Data Objects) to interact with exchange server profiles and send e-mails with php like a webmail. Are you interested ? Cheers, Ernani Ross Fleming [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED]... Question 1 I'm not too sure about... Question 2: How do you mean spell check it? There are several levels of depth you could take this to. You could just check the format of it (ie [EMAIL PROTECTED]) using a pattern matching technique ereg( ^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)$ ,$email) is a rather simple one. This only checks that it's a valid format of email address however. It doesn't stop php emailing [EMAIL PROTECTED] (going out on a limb and assuming this doesn't exist!) There are ways of taking this further however. You can explode $email by the @ character and checking that the domain actually exists by simply pinging it or connecting to the relevant smtp server. This again, doesn't stop php from emailing [EMAIL PROTECTED] (again, probably doesn't exist but the format is ok and the TLD exists). The next step you could take (and this is getting a bit involved here... depends how much time you've got on your hands) is to talk to the smtp server and attempt to find out whether the user exists or not. I believe that it is possible to get an smtp server to confirm or deny a users existance. Like I say, these are varying levels of checking, I have to say I've only ever went so far as to resolving the TLD through a DNS server. A solution you may wish to consider, is only allowing trusted email addresses to be used. One way I have done this in the past is to allow a user to register an email address, and then email a random cipher to this address and make the user enter the cipher into a validation page, thereby validating the email address a genuine and held by the user. I'd be glad to help if you've got any questions about the solutions I've given. :) HTH Ross -Original Message- From: RS Herhuth [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 15:31 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Getting at addressbook information on an Exchange Server... === message truncated === __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php