Re: [PHP] Need a hint how to track an error
Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en Why do you guys assume javascript I am disappointed that after switching totally from XP to Ubuntu to suggest me a Windows tool! I installed in a VirtualBox XP again and above tool helped me to find the mistake: ?php echo $S_VALUEp/FONT; } ? form . The tool helped me to find the missing ``'' after /FONT since it showed me no value for the submit buttons. Is there no other tool available that can find such errors? tool webpage error.list bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need a hint how to track an error
Start by coding proper semantic xhtml and you will have less headaches too - that code looks very ugly. On Nov 12, 2007 8:38 AM, Ronald Wiplinger [EMAIL PROTECTED] wrote: Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en Why do you guys assume javascript I am disappointed that after switching totally from XP to Ubuntu to suggest me a Windows tool! I installed in a VirtualBox XP again and above tool helped me to find the mistake: ?php echo $S_VALUEp/FONT; } ? form . The tool helped me to find the missing ``'' after /FONT since it showed me no value for the submit buttons. Is there no other tool available that can find such errors? tool webpage error.list bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one has no Subversion support and no SSH support for deploying to the server properly. The debugging support worked well on the windows version, but I couldn't get it to work from Linux (with the same web server...) And the look and feel is so crowded and over-complicated. Yuck. Quanta+ can do this (mostly) right, although I have had some trouble with debugging. [EMAIL PROTECTED] wrote: Andrew Peterson wrote: I'll try installed it again with none of the other nonsense. PDT has the so called ALL-IN-ONE thing, however I don't really trust it. I would suggest the following - a) Be sure you have the latest Java. b) Get the normal, traditional Eclipse. c) Update it (Help Software updates Find and install Search for updates of the currently installed features). Repeat if needed. d) Go to Help Software updates Find and install Search for new features to install and add the PDT site (http://download.eclipse.org/tools/pdt/updates/). Check the PDT site and the Europa Discovery Site and click Finish (I haven't done it for a while, so could be something has changed there). When you get the result, the Update manager might complain that PDT depends on something. In this case unfold the Europa Discovery Site result (by clicking the +, if you do not unfold it the next step might not work) and click the Select Required button. This should select the minimum you need. Let me know if you run into a trouble and I'll try to send you reproducible steps. And again, Eclipse is Java, so you need a decent machine. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP ide?
It has, but you should install them manually... Try help- Software updates - Find and install... Regards, Shelley -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:24 PM To: php-general@lists.php.net Subject: Re: [PHP] PHP ide? I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one has no Subversion support and no SSH support for deploying to the server properly. The debugging support worked well on the windows version, but I couldn't get it to work from Linux (with the same web server...) And the look and feel is so crowded and over-complicated. Yuck. Quanta+ can do this (mostly) right, although I have had some trouble Quanta+ with debugging. [EMAIL PROTECTED] wrote: Andrew Peterson wrote: I'll try installed it again with none of the other nonsense. PDT has the so called ALL-IN-ONE thing, however I don't really trust it. I would suggest the following - a) Be sure you have the latest Java. b) Get the normal, traditional Eclipse. c) Update it (Help Software updates Find and install Search for updates of the currently installed features). Repeat if needed. d) Go to Help Software updates Find and install Search for new features to install and add the PDT site (http://download.eclipse.org/tools/pdt/updates/). Check the PDT site and the Europa Discovery Site and click Finish (I haven't done it for a while, so could be something has changed there). When you get the result, the Update manager might complain that PDT depends on something. In this case unfold the Europa Discovery Site result (by clicking the +, if you do not unfold it the next step might not work) and click the Select Required button. This should select the minimum you need. Let me know if you run into a trouble and I'll try to send you reproducible steps. And again, Eclipse is Java, so you need a decent machine. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: explorer
Hi, I am a newB to php. When a user clicks a button on the client side, it will open a windows explorer with the path to a folder from the server machine. Is it possible. Lets say my server is machine x and client is machine y. from y is it possible using php to open a path from x (X:\folder1\folder2\) I am using pa href=?php exec($click_Folder); ??php echo Sequence Path; ? /a/pbr /. Alternatively, I used system instead of exec. It shows the path but upto two subfolders not all. BRgds, kNish On 11/10/07, kNish [EMAIL PROTECTED] wrote: Hi, How if, it is possible to open a windows explorer with a path specified in it, thru a php script. BRgds, kNish -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] enhanced_list_box
Hi, I am using this function enhanced_list_box. This works fine. Except the return value is None. How is it possible for it to return a proper value. It reads a list from a data base. Brgds, kNish ?php $db_artist = mysql_connect(ENG-3, Any, )or die(mysql_error()); mysql_select_db(daily,$db_artist)or die(mysql_error()); ? ?php $options = mysql_query(SELECT artist_name FROM artist); $options=mysql_fetch_array($options); echo 'td'; $test = enhanced_list_box_05(array( 'table' = 'artist', 'value_field' = 'artist_name', 'highlight_id' = 1)); echo $test; function enhanced_list_box_05($options){ $sql = select . $options['value_field']; $sql .= from . $options['table']; $result = mysql_query($sql)or die(error in SQL); echo 'select name=', $options['value_field'],' size=1'; while ($row = mysql_fetch_array($result, MYSQL_NUM)) { if($row[0] == $options['highlight_id']) { echo 'option value=' . $row[0] . 'SELECTED' . $row[0] . '/option'; } else { echo 'option value=' . $row[0] . '' . $row[0] . '/option'; echo $row[0]; } } echo '/select'; return $row[0]; } echo '/td'; mysql_close($db_artist); ? /tr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: functions versus includes
Frank Lopes wrote: No takers on this topic? The question is not one of performance since while it will be quicker to call a function than include a file the difference is going to be inconsequential. If you were to use a function where would you put it? You imply it needs to be used from multiple scripts, so it would need to be in an included file anyway which makes the question kinda pointless. Whether to use a function should then be based on how you need to use this block of text. Will it be used more than once in any given script? If yes then you want a function so you only need to include the file once. If not then it really doesn't matter whether you use a function in the external file. When you're thinking about possible performance issues there are two things you need to ensure... 1) You're not spending time optimising the wrong bit (this would be an example of that). You can check that by writing a quick performance test as someone did later in this thread. 90% of the time you'll find that the performance difference between two options is negligible. 2) The architecture and maintainability of your code is more important than most performance issues you can imagine. Performance optimisation should be driven by performance problems. Write your app, test it, find bottlenecks and then optimise those. Time spent saving 0.001 seconds per request is better spent elsewhere. -Stut -- http://stut.net/ Frank Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just started using PHP and got to think... Without getting into the discussion of best practices, strictly from a performance perspective, what is faster: a function or an include? For example I have a block of text that needs to appear mutliple times throughout the site. Will I be better off creating a function with its contents and then later just calling the function or, will it be faster (from an execution perspective) for me to create an .inc file that gets included later on? Thanks for the your thoughts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need a hint how to track an error
On Nov 12, 2007 7:38 PM, Ronald Wiplinger [EMAIL PROTECTED] wrote: Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en Why do you guys assume javascript Because you sent us javascript errors. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compile - libxml2
I've opened a bug report on bug.php.net, Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 5.2.5) but developpers say me that's not a bug : I must use XML2_DIR instead of XML_DIR, But when using configure, it say me : use libxml-dir for libxml2 using libxml2-dir is not working, in 5.2.2 and 5.2.4 using libxml-dir is working in 5.2.2 but no 5.2.4 libxml2-dir isn't an existing variable in the configuration script. Best regards, http://bugs.php.net/bug.php?id=43212 Description: Compilation work with PHP 5.2.2 but not 5.2.4 In 5.2.2 : checking libxml2 install dir... checking for xml2-config path... (cached) /opt/freeware/libxml2/libxml2/bin/xml2-config checking whether libxml build works... (cached) yes In 5.2.4 : checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation. My xml2-config is in /opt/freeware/libxml2/2.6.30/bin Reproduce code: --- [EMAIL PROTECTED] more .envcommun LADATE=$(date +%Y%m%d%H%M) PATH=/opt/freeware/gcc/gcc/bin:${PATH} export PATH ZLIB_VERSION=1.2.3 CURL_VERSION=7.17.1 MYSQL_VERSION=4.1.18 OPENSSL_VERSION=0.9.8g OPENLDAP_VERSION=2.3.39 APACHE_VERSION=2.0.61 FREETYPE_VERSION=2.3.5 GD_VERSION=2.0.35 JPEG_VERSION=6b PNG_VERSION=1.2.22 XML_VERSION=2.6.30 PHP_VERSION=5.2.2 ZLIB_DIR=/opt/freeware/zlib/${ZLIB_VERSION} CURL_DIR=/opt/freeware/curl/${CURL_VERSION} MYSQL_DIR=/ibp/uti/msq/${MYSQL_VERSION} OPENSSL_DIR=/opt/freeware/openssl/${OPENSSL_VERSION} OPENLDAP_DIR=/opt/freeware/openldap/${OPENLDAP_VERSION} APACHE_DIR=/opt/freeware/apache/${APACHE_VERSION} FREETYPE_DIR=/opt/freeware/freetype2/${FREETYPE_VERSION} GD_DIR=/opt/freeware/gd/${GD_VERSION} JPEG_DIR=/opt/freeware/jpeg/${JPEG_VERSION} PNG_DIR=/opt/freeware/libpng/${PNG_VERSION} XML_DIR=/opt/freeware/libxml2/${XML_VERSION} PHP_DIR=/ibp/uti/php/${PHP_VERSION} DATADIRECT_DIR=/ibp/uti/ddt/datadirect # cd php-${PHP_VERSION} LDFLAGS=-L${FREETYPE_DIR}/lib CPPFLAGS=-I${DATADIRECT_DIR}/include -I${FREETYPE_DIR}/include CUSTOM_ODBC_LIBS=-L${DATADIRECT_DIR}/lib -lodbc -lodbcinst PATH=/opt/freeware/freetype2/freetype2/bin:${PATH} export LDFLAGS CPPFLAGS CUSTOM_ODBC_LIBS PATH make clean ../configure \ --prefix=${PHP_DIR} \ --with-config-file-path=${PHP_DIR} \ --with-apxs2=${APACHE_DIR}/bin/apxs \ --enable-safe-mode \ --enable-mbstring=all \ --enable-mbstr-enc-trans \ --enable-mbregex \ --disable-ipv6 \ --enable-libgcc \ --with-openssl=shared,${OPENSSL_DIR} \ --with-openssl-dir=${OPENSSL_DIR} \ --with-zlib=shared,${ZLIB_DIR} \ --with-zlib-dir=${ZLIB_DIR} \ --with-ldap=shared,${OPENLDAP_DIR} \ --with-libxml-dir=${XML2_DIR} \ --with-custom-odbc=${DATADIRECT_DIR} \ --enable-simplexml \ --enable-bcmath \ --enable-calendar=shared \ --enable-ctype \ --enable-tokenizer \ --enable-session \ --with-ldap=${OPENLDAP_DIR} \ --with-curl=${CURL_DIR} \ --with-mysql=${MYSQL_DIR} \ --with-mysqli=${MYSQL_DIR}/bin/mysql_config \ --enable-ftp \ --with-jpeg-dir=${JPEG_DIR} \ --with-png-dir=${PNG_DIR} \ --with-gd=shared \ --enable-gd-native-ttf \ --with-freetype-dir=${FREETYPE_DIR} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Compile - libxml2
Hi Benjamin, You really need to read the response more carefully. Benjamin Dupuis wrote: I've opened a bug report on bug.php.net, Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 5.2.5) but developpers say me that's not a bug : I must use XML2_DIR instead of XML_DIR, But when using configure, it say me : use libxml-dir for libxml2 using libxml2-dir is not working, in 5.2.2 and 5.2.4 using libxml-dir is working in 5.2.2 but no 5.2.4 libxml2-dir isn't an existing variable in the configuration script. XML_DIR=/opt/freeware/libxml2/${XML_VERSION} That's what's defined. --with-libxml-dir=${XML2_DIR} \ That's what your using. Where is XML2_DIR coming from? Your path only shows XML_DIR being defined. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Compile - libxml2
DOH ! :/ Thanks ! But why php5.2.2 doesn't cry ?!! (and XML working) Best regards - Message d'origine - De: Rob Richards [EMAIL PROTECTED] Date: Mon, 12 Nov 2007 07:32:26 -0500 Sujet: [PHP] Re: Compile - libxml2 À: Benjamin Dupuis [EMAIL PROTECTED] Cc: PHP-General php-general@lists.php.net Hi Benjamin, You really need to read the response more carefully. Benjamin Dupuis wrote: I've opened a bug report on bug.php.net, Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 5.2.5) but developpers say me that's not a bug : I must use XML2_DIR instead of XML_DIR, But when using configure, it say me : use libxml-dir for libxml2 using libxml2-dir is not working, in 5.2.2 and 5.2.4 using libxml-dir is working in 5.2.2 but no 5.2.4 libxml2-dir isn't an existing variable in the configuration script. XML_DIR=/opt/freeware/libxml2/${XML_VERSION} That's what's defined. --with-libxml-dir=${XML2_DIR} \ That's what your using. Where is XML2_DIR coming from? Your path only shows XML_DIR being defined. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multi dimentional array sort need help
I have the array by the following. i want to sort the array by name and starlevel.plz help me i am troubled for it. Array ( [0] = Array ( [hotelId] = 9415 [provider] = localTgsProvider [name] = Sahara Hotel Casino - DEMO [address] = DEMO - 2535 Las Vegas Boulevard South Las Vegas Nevada 89109 [rooms] = 1720 [street] = DEMO - 2535 Las Vegas Boulevard South [description] = General information: A Vegas original, the Sahara Hotel and Casino hails from the days of the Rat Pack of Dean Martin, Frank Sinatra and Sammy Davis Jr. Dating back to 1952, this venerable, modestly priced institution on the Strip still exudes old school elegance and a little slower pace. The vintage Moroccan theme and architectural touches are still charming, and so is the roller coaster: Speed shoots guests right along the Sahara's marquee at more than 70 miles an hour. The 80,000-square-feet casino offers table games, slots, poker, keno, race and sports book, and low-minimum blackjack. Compact for easy access to all facilities and attractions, the Sahara appeals to guests seeking moderate prices, less noise and slower pace of a different era. Location: The Sahara also sits close to the Fremont Street Experience, an explosion of more than 2 million lights and a 54,000- watt sound system that provides a pulsating light-and- music show created to dazzle. Area: At the Sahara, guests also can drive simulated race cars at the Cyber Speedway and catch the legendary 1950s groups, the Platters, Drifters and Coaters, in the Congo Room. Las Vegas' first true lounge, the Casbar, still presents nightly entertainment from smooth jazz to rock. Recreation: To help guests relax, the Sahara's 5,000-square-foot swimming pool is augmented by a gazebo-covered whirlpool, poolside bar, cabana and a 15-person spa beneath a filigreed wrought-iron dome, perfect for social soaking. The Sahara Hotel Casino is proud to announce our newest show additions! Internationally-known comic magician Amazing Johnathan. Rooms: Guestrooms come equipped with basic amenities and festooned with jewel-colored fabrics. Hungry guests can chose from five restaurants, including the House of Lords, the legendary eatery featuring steak and seafood in a posh ambience of draped fabric, plush booths and jeweled lighting. The NASCAR Café includes ribs, chicken, steaks, pasta and burgers, along with race cars hanging from the ceiling. “THE PLATTERS, Cornell Gunter’s COASTERS and Beary Hobb’s DRIFTERS†return to the stage in the legendary Congo Room with some of the top 20 hits from the ‘50s and ‘60s. ***All rooms must have at least one adult, 21 years of age or older, in order to check in.*** **There is a Maximum 7 night stay year round and a Minimum 2 night stay. No arrivals on Saturdays.*** ***There is also an energy surcharge of $3.00 and a telephone surcharge of $1 per room per night payable by guest to the hotel.*** **Please be advised that name and date changes are not permitted by the hotel over peak dates.** ***Please be advised there are no arrivals on December 30-31, 2006. Reservations are non-refundable for these dates as well.*** [city] = Las Vegas [state] = NV [country] = USA [zip] = 89109 [phone] = 17027372111 [fax] = 0577971181 [mobile] = [adPhone] = [image] = Array ( [0] = http://image1.urlforimages.com/9415/Sahara-Hotel-front.jpg [1] = http://image1.urlforimages.com/9415/Sahara-Hotel-room.jpg [2] = http://image1.urlforimages.com/9415/Sahara-Hotel-roller-coaster.jpg [3] = http://image1.urlforimages.com/9415/Sahara-Rest.jpg [4] = http://image1.urlforimages.com/9415/Sahara-Pool.jpg ) [Amenity] = Array ( [0] = Bar [1] = Business Center [2] = Meeting/Banquet Facilities [3] = Non Smoking Rooms [4] = Restaurant(s) [5] = Room Service [6] = Safe Deposit Box [7] = Laundry/Valet [8] = Swimming Pool [9] = 24-Hour Front Desk [10] = Gift/Sundry Shop [11] = Spa [12] = Ice Machine [13] = Parking [14] = Casino ) [Room] = Array ( [0] = Array ( [name] = Standard [maxGuest] = 4 [Facility] = Array ( [0] = Air Condition [1] =
[PHP] How to query google pagerank from PHP
I found some code in perl at CPAN how to do that in PHP anyone know ? give a clue pls -- View this message in context: http://www.nabble.com/How-to-query-google-pagerank-from-PHP-tf4791385.html#a13706442 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to query google pagerank from PHP
mvh wrote: I found some code in perl at CPAN how to do that in PHP anyone know ? give a clue pls Port the Perl code. Won't be too hard. Where's the Perl code? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Need a hint how to track an error
try firebug for firefox, excellent tool bastien Date: Mon, 12 Nov 2007 13:53:55 +1100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] Need a hint how to track an error Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ R U Ready for Windows Live Messenger Beta 8.5? Try it today! http://entertainment.sympatico.msn.ca/WindowsLiveMessenger
Re: [PHP] How to query google pagerank from PHP
I found it here http://cpan.uwinnipeg.ca/dist/WWW-Google-PageRank Hemanth www.ValueAds.Biz Stut wrote: Port the Perl code. Won't be too hard. Where's the Perl code? -- View this message in context: http://www.nabble.com/How-to-query-google-pagerank-from-PHP-tf4791385.html#a13707254 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Programmers Needed
You are who and where ? Who would want to be hired without knowing if the hirer can compensate the hired. Even Microsoft advertises full page looking for employess (here in India) I dont know where you are. [EMAIL PROTECTED] wrote: I am looking to hire PHP programmers to help me in various projects I have going on. They all involve PHP, MySQL extensive knowledge and JavaScript would be a plus. Please email me if you're interested. Please include references for people you've done jobs for in the past, work history, knowledge of PHP MySQL JavaScript, desired compensation. This opportunity could result in full-time work if we are successful and it's something you're looking for. Please let me know ASAP. Thanks, Ben -- View this message in context: http://www.nabble.com/PHP-Programmers-Needed-tf4789283.html#a13707329 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] web page download question
I'm attempting to scrape a web page to pull out some pertinent info. The URL looks similar to the below. http://www.someserver.com/user-info.xml?user=myusername If I paste the above into my web browser, the page comes up and displays the information. If I try view source, I get an XML document. Not an XHTML document, but a plain XML document with just the data fields (no formatting info). However, if I use PHP fopen() to read this same URL, I get the XHTML file with all the formatting info, etc. So, somehow the web browser (this happens in FireFox and IE7) is showing something other than what I get with the plain fopen(). I'd like to get at the plain XML file with just the data fields as is shown in the browser. Any ideas how to do this? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need a hint how to track an error
Ronald Wiplinger wrote: Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en Why do you guys assume javascript I am disappointed that after switching totally from XP to Ubuntu to suggest me a Windows tool! I installed in a VirtualBox XP again and above tool helped me to find the mistake: Was it not a javascript error that you showed us? ?php echo $S_VALUEp/FONT; } ? form . The tool helped me to find the missing ``'' after /FONT since it showed me no value for the submit buttons. Is there no other tool available that can find such errors? tool webpage error.list Sure, view the source code in firefox and the syntax highlighting would have shown you the problem. Why in the world are you still using the font... tag? Also, learn to close your HTML tags that require a closing tag. What version of HTML are you coding for? bye Ronald -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Programmers Needed
On Nov 12, 2007 10:16 AM, mvh [EMAIL PROTECTED] wrote: You are who and where ? Who would want to be hired without knowing if the hirer can compensate the hired. Even Microsoft advertises full page looking for employess (here in India) I dont know where you are. Perhaps, then, you've never worked on contract jobs, and aren't aware that you're both invited and expected to discuss the fine details with the prospective employer/client. You may have noticed that Microsoft has a bit more money to spend on print ads and the like, as well. So try not to flame the person throwing the party when you're not even fully reading the invitation. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Need a hint how to track an error
My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en Why do you guys assume javascript I am disappointed that after switching totally from XP to Ubuntu to suggest me a Windows tool! I installed in a VirtualBox XP again and above tool helped me to find the mistake: ?php echo $S_VALUEp/FONT; } ? form . The tool helped me to find the missing ``'' after /FONT since it showed me no value for the submit buttons. Is there no other tool available that can find such errors? tool webpage error.list http://validator.w3.org/ _ Peek-a-boo FREE Tricks Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
Re: [PHP] PHP Programmers Needed
It amazes me that you attack in one post then beg for help in another. Neither of which have you followed basic concepts such as: 1. posting your code 2. posting your output 3. describing your problem As for this post, it is common practice for contractors to post they are seeking some contract workers. If you are interested in applying for it, contact the person posting the job. If you aren't, then delete the post. mvh [EMAIL PROTECTED] wrote: You are who and where ? Who would want to be hired without knowing if the hirer can compensate the hired. Even Microsoft advertises full page looking for employess (here in India) I dont know where you are. [EMAIL PROTECTED] wrote: I am looking to hire PHP programmers to help me in various projects I have going on. They all involve PHP, MySQL extensive knowledge and JavaScript would be a plus. Please email me if you're interested. Please include references for people you've done jobs for in the past, work history, knowledge of PHP MySQL JavaScript, desired compensation. This opportunity could result in full-time work if we are successful and it's something you're looking for. Please let me know ASAP. Thanks, Ben -- View this message in context: http://www.nabble.com/PHP-Programmers-Needed-tf4789283.html#a13707329 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] pecl-ssh2 and remote command execution
Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension and I liked the idea of using ssh directly from PHP. However I was not able to figure out, how to close input stream and how to obtain return value. I.e. let's have this code: $stream = ssh2_exec($connection,head -n 4); stream_set_blocking($stream, true); fputs ($stream,line1\nline2\n); while($o=fgets($stream)){ echo $o.'br';} fclose ($stream); The problem is that this one never ends as 'head -n 4' waits for two more lines as it does not know, that I've finished sending data. If I close the stream after sending two lines, then I can not get output (of course :-) ). I've tried sending chr(3), chr(4), chr(0) to indicate end of input but nothing works. I also would like to see what return value command returned but it can be done via adding second command like ' echo $?' Radek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] enhanced_list_box
I am using this function enhanced_list_box. This works fine. Except the return value is None. How is it possible for it to return a proper value. It reads a list from a data base. while $row is valid you do stuff. then when $row is invalid, you return it. But maybe you knew that. To return a proper value?: while($row...[is something valid]){ $lastValidRow = $row; ... } $row is invalid do something with $lastValidRow i.e.: return it _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Scrape?
Hi gang: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Creating ZIP-File with password
Dear PHP-Friends, normaly its my job to find solutions about problems around PHP. Now, i have a problem, that seems to be unsolved in PHP. Actually i create some zip-files and this works fine. $zip = new ZipArchive(); $zip-open(./foo.zip, ZIPARCHIVE::CREATE); $dir = scandir (doc/); foreach($dir as $filename) { if($filename != . || $filename != ..) { $zip-addFile(doc/.$filename, doc/.$filename); } } $zip-close(); Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? Regards Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creating ZIP-File with password
Sebastian Hopfe wrote: Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? You could just use the zip command line utility and the '-P' option. However, the zip password mechanism does not really provide much in terms of protection - if you really need the encryption, I would look elsewhere. (PGP, X509). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape?
tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-related, but at the top of each page in Analytics there's an Export button. Depending on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Programmers Needed
Friends I will not reply to people who are trying to pick a fight. They sent me private mail accusing me of flame This clearly looks like a recruitment advertisement. It is nice if a recruiter gives their credentials first and then ask applicants to send their applications. I never said anything else. I suppose there are people on forums just waiting to pick fights and spread dicord. I will ignore all their further posts. This is a forum to discuss php I asked a question in another post. while asking a question no one needs to qualify asking that question. questions are questions. Also I have given the link to some perl code I found at CPAN. This may be useful to somebody as well as me. I just request these frustated souls vent their feeling elsewhere. FULL STOP completely ignoring them. Hemanth [EMAIL PROTECTED] wrote: I am looking to hire PHP programmers to help me in various projects I have going on. They all involve PHP, MySQL extensive knowledge and JavaScript would be a plus. Please email me if you're interested. Please include references for people you've done jobs for in the past, work history, knowledge of PHP MySQL JavaScript, desired compensation. This opportunity could result in full-time work if we are successful and it's something you're looking for. Please let me know ASAP. Thanks, Ben - Hemanth http://www.ValueAds.co.in http://www.ValueAds.co.in http://www.PaidAds.co.in http://www.PaidAds.co.in Bangalore, India Ph: +919844125556 -- View this message in context: http://www.nabble.com/PHP-Programmers-Needed-tf4789283.html#a13709795 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creating ZIP-File with password
Hmmm... its not possible to use this function, because i can't use the command line. now, i will try to crypt my data bevor i insert them into the zip file. but this needs more performance. i will wait for other comments. I will report my solution. regards Per Jessen [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Sebastian Hopfe wrote: Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? You could just use the zip command line utility and the '-P' option. However, the zip password mechanism does not really provide much in terms of protection - if you really need the encryption, I would look elsewhere. (PGP, X509). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape?
On Nov 12, 2007 12:20 PM, Stut [EMAIL PROTECTED] wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-related, but at the top of each page in Analytics there's an Export button. Depending on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. I would certainly hope not, but the login could be automated using cURL anyway. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape?
Daniel Brown wrote: On Nov 12, 2007 12:20 PM, Stut [EMAIL PROTECTED] wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-related, but at the top of each page in Analytics there's an Export button. Depending on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. I would certainly hope not, but the login could be automated using cURL anyway. One option would be to use the email feature to get it sent to a PHP script on a schedule. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape?
On Nov 12, 2007 12:26 PM, Stut [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Nov 12, 2007 12:20 PM, Stut [EMAIL PROTECTED] wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-related, but at the top of each page in Analytics there's an Export button. Depending on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. I would certainly hope not, but the login could be automated using cURL anyway. One option would be to use the email feature to get it sent to a PHP script on a schedule. -Stut -- http://stut.net/ I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape?
Daniel Brown wrote: On Nov 12, 2007 12:26 PM, Stut [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Nov 12, 2007 12:20 PM, Stut [EMAIL PROTECTED] wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-related, but at the top of each page in Analytics there's an Export button. Depending on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. I would certainly hope not, but the login could be automated using cURL anyway. One option would be to use the email feature to get it sent to a PHP script on a schedule. -Stut -- http://stut.net/ I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. Is there an echo in here? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape?
On Nov 12, 2007 12:32 PM, Stut [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Nov 12, 2007 12:26 PM, Stut [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Nov 12, 2007 12:20 PM, Stut [EMAIL PROTECTED] wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-related, but at the top of each page in Analytics there's an Export button. Depending on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. I would certainly hope not, but the login could be automated using cURL anyway. One option would be to use the email feature to get it sent to a PHP script on a schedule. -Stut -- http://stut.net/ I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. Is there an echo in here? -Stut -- http://stut.net/ Is there an echo in here? -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to query google pagerank from PHP
Understandably you have found the code in perl here, but what PHP code have you written and are you stuck on in transmuting to PHP? Wolf mvh [EMAIL PROTECTED] wrote: I found it here http://cpan.uwinnipeg.ca/dist/WWW-Google-PageRank Hemanth www.ValueAds.Biz Stut wrote: Port the Perl code. Won't be too hard. Where's the Perl code? -- View this message in context: http://www.nabble.com/How-to-query-google-pagerank-from-PHP-tf4791385.html#a13707254 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape?
At 5:26 PM + 11/12/07, Stut wrote: Daniel Brown wrote: On Nov 12, 2007 12:20 PM, Stut [EMAIL PROTECTED] wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-related, but at the top of each page in Analytics there's an Export button. Depending on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. I would certainly hope not, but the login could be automated using cURL anyway. One option would be to use the email feature to get it sent to a PHP script on a schedule. -Stut -Stut: You're always bright, but sometimes you're brilliant. That will work -- thanks. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Which is the best windows IDE for PHP ?
I am using crimson editor for editing now It is the best editor i found. But is it not an IDE. - Hemanth http://www.ValueAds.co.in http://www.ValueAds.co.in http://www.PaidAds.co.in http://www.PaidAds.co.in Bangalore, India Ph: +919844125556 -- View this message in context: http://www.nabble.com/Which-is-the-best-windows-IDE-for-PHP---tf4792629.html#a13710219 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape? (Fetch email)
I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. That's the idea. I can send the email from Google to a specific email address. Now, how can I get php to fetch the email? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
Peter Ford wrote: I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one has no Subversion support and no SSH support for deploying to the server properly. The debugging support worked well on the windows version, but I couldn't get it to work from Linux (with the same web server...) And the look and feel is so crowded and over-complicated. Yuck. Well PDT is the 'commercial' offering from Zend since they hijacked the PHP slot :( PHPEclipse is much tidier and has a longer pedigree. Subversion and SSH are OTHER packages and part of Eclipse not the PHP editor. And the look and feel is fully configurable, but it does take a while to work out how. Quanta+ can do this (mostly) right, although I have had some trouble with debugging. But you can't handle the legacy C++ code with that ;) -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape? (Fetch email)
On Nov 12, 2007 12:46 PM, tedd [EMAIL PROTECTED] wrote: I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. That's the idea. I can send the email from Google to a specific email address. Now, how can I get php to fetch the email? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It doesn't have to fetch the email. /etc/localalises (or equivalent) Add: google-analytics: |/path/to/script.php Then just have mail from that sent to [EMAIL PROTECTED] -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Trigger an action on session timeout - feature request?
Hi, Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a workaround like walking through all my sessions for timeouted ones and destroy them myself. I have searched through the PHP doc and didn't found anything. So probably this is a feature request. Where should I post it? PHP's bug reporting system, unlike many common bug reporting systems, doesn't seem to distinguish between bugs and feature requests. I think this concept of being possible to define something like custom session destructor is obvious and useful enough to be worth implementing to PHP. Thanks for help, Tomas -- No Software Patents! -- Allowing patents over software ideas will seriously affect the Creativity, Productivity and Freedom of all. Link: http://www.nosoftwarepatents.com/ -- Defend your freedom by signing a petition. Link: http://petition.eurolinux.org/index_html?LANG=en -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scrape? (Fetch email)
At 12:53 PM -0500 11/12/07, Daniel Brown wrote: On Nov 12, 2007 12:46 PM, tedd [EMAIL PROTECTED] wrote: I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. That's the idea. I can send the email from Google to a specific email address. Now, how can I get php to fetch the email? Cheers, tedd -- It doesn't have to fetch the email. /etc/localalises (or equivalent) Add: google-analytics: |/path/to/script.php Then just have mail from that sent to [EMAIL PROTECTED] H interesting. Do you mean that I can have an email sent directly to a script? If so, what triggers the script? How does the script capture the email to parse? Do you have an example or reference? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Trigger an action on session timeout - feature request?
You could simply validate the user with session_start(); $tbaged = false; if (isset($_SESSION['user_id'])) { $user = new User($_SESSION['user_id']); $tbaged = true; else { $login = $_REQUEST['screename']; $password = $_REQUEST['pword']; $login = clean($login); $password = clean($pword); $user = checkLogin($login,$pword); if (!is_null($user)) { $tbaged = true; } } if (!$tbaged) { session_destroy(); die(You are not logged in.); } -Original Message- From: Tomas Telensky [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 12:20 PM To: php-general@lists.php.net Subject: [PHP] Trigger an action on session timeout - feature request? Hi, Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a workaround like walking through all my sessions for timeouted ones and destroy them myself. I have searched through the PHP doc and didn't found anything. So probably this is a feature request. Where should I post it? PHP's bug reporting system, unlike many common bug reporting systems, doesn't seem to distinguish between bugs and feature requests. I think this concept of being possible to define something like custom session destructor is obvious and useful enough to be worth implementing to PHP. Thanks for help, Tomas -- No Software Patents! -- Allowing patents over software ideas will seriously affect the Creativity, Productivity and Freedom of all. Link: http://www.nosoftwarepatents.com/ -- Defend your freedom by signing a petition. Link: http://petition.eurolinux.org/index_html?LANG=en -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Programmers Needed
Thanks Daniel and Wolf! I am an entrepreneur who runs a web design/web application development firm and is inundated with work. We are by no means anywhere close to the size Microsoft. I am only posting here as I have been a member of the list since its inception and have found that their are quite a few freelancers looking to make a little extra money or people out of jobs. My intentions were only the best. If you're not interested please take Wolf's advice and delete it. On Nov 12, 2007 7:53 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Nov 12, 2007 10:16 AM, mvh [EMAIL PROTECTED] wrote: You are who and where ? Who would want to be hired without knowing if the hirer can compensate the hired. Even Microsoft advertises full page looking for employess (here in India) I dont know where you are. Perhaps, then, you've never worked on contract jobs, and aren't aware that you're both invited and expected to discuss the fine details with the prospective employer/client. You may have noticed that Microsoft has a bit more money to spend on print ads and the like, as well. So try not to flame the person throwing the party when you're not even fully reading the invitation. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- ** The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments. *
Re: [PHP] Scrape? (Fetch email)
At 12:53 PM -0500 11/12/07, Daniel Brown wrote: On Nov 12, 2007 12:46 PM, tedd [EMAIL PROTECTED] wrote: I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. That's the idea. I can send the email from Google to a specific email address. Now, how can I get php to fetch the email? Cheers, tedd -- It doesn't have to fetch the email. /etc/localalises (or equivalent) Add: google-analytics: |/path/to/script.php Then just have mail from that sent to [EMAIL PROTECTED] H interesting. Do you mean that I can have an email sent directly to a script? If so, what triggers the script? How does the script capture the email to parse? Do you have an example or reference? Cheers, tedd I made one using procmail instead of aliases, but same idea... here is a snippet Jake $buffer = ''; $fp = fopen(php://stdin, r); if ($fp) { while(!feof($fp)) { $buffer .= fgets($fp, 4096); } fclose($fp); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trigger an action on session timeout - feature request?
Hi, this is obvious and is not related to the problem. I meant something completely different - launch an action when PHP timeouts/destroys particular session. Regardless of whether the user accesses the page or not. (E.g. for the need to close some records in database, but that's not important) Tomas You could simply validate the user with session_start(); $tbaged = false; if (isset($_SESSION['user_id'])) { $user = new User($_SESSION['user_id']); $tbaged = true; else { $login = $_REQUEST['screename']; $password = $_REQUEST['pword']; $login = clean($login); $password = clean($pword); $user = checkLogin($login,$pword); if (!is_null($user)) { $tbaged = true; } } if (!$tbaged) { session_destroy(); die(You are not logged in.); } -Original Message- From: Tomas Telensky [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 12:20 PM To: php-general@lists.php.net Subject: [PHP] Trigger an action on session timeout - feature request? Hi, Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a workaround like walking through all my sessions for timeouted ones and destroy them myself. I have searched through the PHP doc and didn't found anything. So probably this is a feature request. Where should I post it? PHP's bug reporting system, unlike many common bug reporting systems, doesn't seem to distinguish between bugs and feature requests. I think this concept of being possible to define something like custom session destructor is obvious and useful enough to be worth implementing to PHP. Thanks for help, Tomas -- No Software Patents! -- Allowing patents over software ideas will seriously affect the Creativity, Productivity and Freedom of all. Link: http://www.nosoftwarepatents.com/ -- Defend your freedom by signing a petition. Link: http://petition.eurolinux.org/index_html?LANG=en -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No Software Patents! -- Allowing patents over software ideas will seriously affect the Creativity, Productivity and Freedom of all. Link: http://www.nosoftwarepatents.com/ -- Defend your freedom by signing a petition. Link: http://petition.eurolinux.org/index_html?LANG=en -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Question about arrays
Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of pieces weigh, The page can be seen here: HTTP://www.raoset.com/weight/ and here is the php code: ?PHP //include 'defaults.php'; include '../../media/debug.php'; $pieceWeight = $_POST['txtWeight']; $pieceWeight = $pieceWeight /100; $Pieces = $_POST['txtPieces']; $weightOfRoute = $Pieces * $pieceWeight; $Route =strtoupper($_POST['txtRoute']); $TextBoxes = 2;//$_GET['txtNumber']; //$Vweight = $pieceWeight * $VtxtPieces; //Begin debugging echo BR; var_dump($_POST); echo BR; var_dump($_GET); echo BR; //End Debugging $myArray = Array(Route = $Route, Pieces = $Pieces);//, Record =$Record); //echo BRmyArray: .$myArray[Route].BR; echo BR; print_arr($myArray); echo BR; //$VtxtRoute = strtoupper($_POST['txtRoute[]']); //$VtxtPieces1 = $_POST['txtPieces1']; //var_dump($Pieces, $weightOfRoute); //echo BRPieces[0]: $PiecesBR; $i = '0'; echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}' input type='submit'/P /form form method='POST' action='index.php' PWeight of 100 pieces: input type='text' size='5' name='txtWeight' value='{$pieceWeight}'/p table tr tdRoute #/td tdPieces per route/td tdWeight of route/td /tr HTML; while($i $TextBoxes) { //$arrRoute = array(txtRoute$i); //echo $arrRoute; echo HTML !--Begin display of text boxes -- tr td input type='text' size='5' name=txtRoute value={$myArray['Route']} /td td input type='text' size='5' name='txtPieces' value={$myArray['Pieces']} /td td {$weightOfRoute}# /td /tr HTML; $i++; } echo HTML /table input type='submit' /form HTML; /* tr td input type='text' size='5' name='txtRoute2' /td td input type='text' size='5' name='txtPieces2' /td td {$weightOfRoute} /td /tr tr td input type='text' size='5' name='txtRoute3' /td td input type='text' size='5' name='txtPieces3' /td td {$weightOfRoute} /td /tr */ ? Obviously I have some debugging stuff listed in there, so that's not the end result that it WILL be :) What I'm having issues with is, it only takes the value of the second text box, it won't process my array. Anyone care to take a quick look? Or tell me other then the php website where to look? I've already looked there and just couldn't come up with anything that makes sense to me... Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Question about arrays
On 11/12/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of pieces weigh, The page can be seen here: HTTP://www.raoset.com/weight/ and here is the php code: ?PHP //include 'defaults.php'; include '../../media/debug.php'; $pieceWeight = $_POST['txtWeight']; $pieceWeight = $pieceWeight /100; $Pieces = $_POST['txtPieces']; $weightOfRoute = $Pieces * $pieceWeight; $Route =strtoupper($_POST['txtRoute']); $TextBoxes = 2;//$_GET['txtNumber']; //$Vweight = $pieceWeight * $VtxtPieces; //Begin debugging echo BR; var_dump($_POST); echo BR; var_dump($_GET); echo BR; //End Debugging $myArray = Array(Route = $Route, Pieces = $Pieces);//, Record =$Record); //echo BRmyArray: .$myArray[Route].BR; echo BR; print_arr($myArray); echo BR; //$VtxtRoute = strtoupper($_POST['txtRoute[]']); //$VtxtPieces1 = $_POST['txtPieces1']; //var_dump($Pieces, $weightOfRoute); //echo BRPieces[0]: $PiecesBR; $i = '0'; echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}' input type='submit'/P /form form method='POST' action='index.php' PWeight of 100 pieces: input type='text' size='5' name='txtWeight' value='{$pieceWeight}'/p table tr tdRoute #/td tdPieces per route/td tdWeight of route/td /tr HTML; while($i $TextBoxes) { //$arrRoute = array(txtRoute$i); //echo $arrRoute; echo HTML !--Begin display of text boxes -- tr td input type='text' size='5' name=txtRoute value={$myArray['Route']} /td td input type='text' size='5' name='txtPieces' value={$myArray['Pieces']} /td td {$weightOfRoute}# /td /tr HTML; $i++; } echo HTML /table input type='submit' /form HTML; /* tr td input type='text' size='5' name='txtRoute2' /td td input type='text' size='5' name='txtPieces2' /td td {$weightOfRoute} /td /tr tr td input type='text' size='5' name='txtRoute3' /td td input type='text' size='5' name='txtPieces3' /td td {$weightOfRoute} /td /tr */ ? Obviously I have some debugging stuff listed in there, so that's not the end result that it WILL be :) What I'm having issues with is, it only takes the value of the second text box, it won't process my array. Anyone care to take a quick look? Or tell me other then the php website where to look? I've already looked there and just couldn't come up with anything that makes sense to me... Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Jason, You've duplicated the names of your text boxes, so the second ones overwrite the first. I'd guess you want to create arrays using input type='text' size='5' name='txtPieces2[]' instead of input type='text' size='5' name='txtPieces2'. hth, -David.
Re: [PHP] Question about arrays
On Nov 12, 2007 3:59 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}' input type='submit'/P /form form method='POST' action='index.php' PWeight of 100 pieces: input type='text' size='5' name='txtWeight' value='{$pieceWeight}'/p table tr tdRoute #/td tdPieces per route/td tdWeight of route/td /tr HTML; Why do you have two FORM attributes doing the same thing, going to the same place here? It will only submit data from within the form you're hitting the button. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trigger an action on session timeout - feature request?
Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a workaround like walking through all my sessions for timeouted ones and destroy them myself. if you want it server side, it would have to be some kind of scheduled job (cron, etc). Most banks have session timeouts using javascript or asp, client side. You do this with php by putting the session timeout duration into javascript, then a settimeout and if browser closed... etc.. the default in php.ini is 24 minutes... u can use this, or use any value.. then have logout.php clean up ?php $timeout = ini_get('session.gc_maxlifetime') * 1000 // convert from seconds to milliseconds for javascript; ? html head script type=text/javascript !-- setTimeout(window.location = 'logout.php',?php echo $timeout?); // -- /script /head body /body /html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Question about arrays
On Nov 12, 2007, at 4:14 PM, Daniel Brown wrote: On Nov 12, 2007 3:59 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}' input type='submit'/P /form form method='POST' action='index.php' PWeight of 100 pieces: input type='text' size='5' name='txtWeight' value='{$pieceWeight}'/p table tr tdRoute #/td tdPieces per route/td tdWeight of route/td /tr HTML; Why do you have two FORM attributes doing the same thing, going to the same place here? It will only submit data from within the form you're hitting the button. The reason for the 2 form elements, was because they need to be able to tell it how many text boxes it needs. Sometimes, it could need 5 rows, sometimes 50... It depends on the particular job. If you know of a better way to do it, Possibly a if/else setup? I'm still at the early stages of thinking in this program. -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Scrape? (Fetch email)
Jake wrote: $buffer = ''; $fp = fopen(php://stdin, r); if ($fp) { while(!feof($fp)) { $buffer .= fgets($fp, 4096); } fclose($fp); } That will get you the data (I think file_get_contents('php://stdin') will also work). Interpreting the mail is a little harder but I think there is a pecl extension for it... yup: http://pecl.php.net/package/mailparse HTHs Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hello, I have a php/apache question
I just recently installed apache 2.0 on my comp with php 5.2.5 aswell. Apache is working and I am trying to get php to be configured into apache as a module, I put the ini file in the load module so it looks like this: #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule ssl_module modules/mod_ssl.so LoadModule php5_module c:/php/php5apache2.dll AddType application/x-httpd-php .php PHPIniDir C:/php The problem is that when I test php in the web browser nothing comes up, I put a test.php notepad file in the document root with a ?php phpinfo(); ? function in it and nothing comes up. Also when I restart apache I get this message: apache is running a threaded mpm, but your php module is not compiled to be threadsafe. You need to recompile php. preconfiguration failed. Any suggestions would be helpful, thank you for your time. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP access of FileMaker data
Can someone please point me to some PHP code or documentation for accessing FileMaker Pro tables with PHP? So far googling Zend and world-wide hasn't found me what I'm seeking. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP access of FileMaker data
On Nov 12, 2007 5:58 PM, Paul Novitski [EMAIL PROTECTED] wrote: Can someone please point me to some PHP code or documentation for accessing FileMaker Pro tables with PHP? So far googling Zend and world-wide hasn't found me what I'm seeking. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Back in 2004 I had a project that was to be a hybrid of PHP and FileMaker data, and I came across the perfect fit: FX.php by Chris Hansen. You can download the full source here: http://iviking.org/FX.php/ It had a mailing list of its own back then, too, which I was active on, but I'm no longer subscribed, and not even sure if it's still there. Either way, you'll find people like my friend, Gjermund Thorsen, still supporting the community on the script today, so you won't have to go it alone. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] multi dimentional array sort need help
Jamesas wrote: I have the array by the following. i want to sort the array by name and starlevel.plz help me i am troubled for it. If this is coming from a database it would be easier to get the database to do the sorting instead of trying to do it in php. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Printing within functions
Hi. I thought of this when I read the emails about using functions or includes... What are your thoughts about *printing* things from within functions? For example: ?php function printSomething () { echo Something about nothing. ; echo Another something.; } function something () { $text = Something about nothing. ; $text .= Another something.; return $text; } ? html ... p?php printSomething (); ?/p p?php echo something (); ?/p ... /html Obviously, these are over-simplified functions, but you get the point. Nonetheless, do you tend to print things within functions or pass the results back and then print them? I understand it may depend on the current context, but which way do you lean and is one way or the other considered *better practice*? Thanks, ~Philip
[PHP] Fwd: Returned mail: User unknown
Can an admin or mod please force an unsubscribe on [EMAIL PROTECTED]? I've been getting bounces all day, and I'm sure I'm not the only one. Every message I send to the list gives me one of these. Either that or we can just make them exceed their ISP mail cap :D ? $to = [EMAIL PROTECTED]; $headers = From: postoffice [EMAIL PROTECTED]\r\n; $headers .= X-Mailer: postoffice.(null)\r\n; while(1) { mail($to,Stamp: .time(),Hello. Goodbye!,$headers); } ? -- Forwarded message -- From: postoffice Date: 12 Nov 2007 15:25:01 -0800 Subject: Returned mail: User unknown To: Daniel Brown [EMAIL PROTECTED] The original message was received at 2007-11-12 15:21:41 -0800 from postoffice.(null) [10.0.0.1] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] -Transcript of session follows - ... while talking to postoffice.(null).: RCPT To:[EMAIL PROTECTED] 550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED] 550 [EMAIL PROTECTED]... User unknown Final-Recipient: RFC822; [EMAIL PROTECTED] Action: failed Status: 5.1.1 Remote-MTA: DNS; postoffice.(null) Diagnostic-Code: SMTP;550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED] Last-Attempt-Date: 2007-11-12 15:21:41 -0800 -- Forwarded message -- From: Daniel Brown [EMAIL PROTECTED] To: Paul Novitski [EMAIL PROTECTED] Date: Mon, 12 Nov 2007 18:04:58 -0500 Subject: Re: [PHP] PHP access of FileMaker data On Nov 12, 2007 5:58 PM, Paul Novitski [EMAIL PROTECTED] wrote: Can someone please point me to some PHP code or documentation for accessing FileMaker Pro tables with PHP? So far googling Zend and world-wide hasn't found me what I'm seeking. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Back in 2004 I had a project that was to be a hybrid of PHP and FileMaker data, and I came across the perfect fit: FX.php by Chris Hansen. You can download the full source here: http://iviking.org/FX.php/ It had a mailing list of its own back then, too, which I was active on, but I'm no longer subscribed, and not even sure if it's still there. Either way, you'll find people like my friend, Gjermund Thorsen, still supporting the community on the script today, so you won't have to go it alone. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Local vs Master Configure values
At 6:38 PM -0600 11/9/07, David Giragosian wrote: On 11/9/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On Nov 9, 2007 5:01 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Nov 9, 2007 4:24 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm confronting a safe_mode problem and have a question. My PHP Info states that safe_mode is ON for local and OFF for master -- what does that mean? o i forgot about this part. the global column depicts values in php.ini. the local column indicates the value has been overridden in one of the various allowed locations. i.e. httpd.conf .htaccess ini_set() if its on for local and off for master; most likely it is being enabled in http.conf or a .htaccess file. at least thats what i would imagine based on the locations that are allowed to override it as stated in the manual. -nathan safe_mode 's changeability is described as PHP_INI_SYSTEM, so the option can be set in php.ini or httpd.conf only. Constant Value Meaning PHP_INI_USER 1 Entry can be set in user scripts PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf PHP_INI_ALL 7 Entry can be set anywhere David Thanks to all. I realize now that I can't change safe_mode unless I have access to the php.ini or httpd.conf files. Considering this is problem is on a virtual host, that stops me -- I give up. The only question that remains for me is what's the difference between Local and Master Configure values in php_info? Why two? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing within functions
Obviously, these are over-simplified functions, but you get the point. Nonetheless, do you tend to print things within functions or pass the results back and then print them? I understand it may depend on the current context, but which way do you lean and is one way or the other considered *better practice*? I'd say 98% of the time I return a value back so I can verify the result. You could verify the result within the function, but that would cause the function to become less portable, and most of the time I use the same function in more than one place, or try to. Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Fwd: Returned mail: User unknown
PLEASE I have like 50 from it so far. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:31 PM To: php-general List Subject: [PHP] Fwd: Returned mail: User unknown Can an admin or mod please force an unsubscribe on [EMAIL PROTECTED]? I've been getting bounces all day, and I'm sure I'm not the only one. Every message I send to the list gives me one of these. Either that or we can just make them exceed their ISP mail cap :D ? $to = [EMAIL PROTECTED]; $headers = From: postoffice [EMAIL PROTECTED]\r\n; $headers .= X-Mailer: postoffice.(null)\r\n; while(1) { mail($to,Stamp: .time(),Hello. Goodbye!,$headers); } ? -- Forwarded message -- From: postoffice Date: 12 Nov 2007 15:25:01 -0800 Subject: Returned mail: User unknown To: Daniel Brown [EMAIL PROTECTED] The original message was received at 2007-11-12 15:21:41 -0800 from postoffice.(null) [10.0.0.1] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] -Transcript of session follows - ... while talking to postoffice.(null).: RCPT To:[EMAIL PROTECTED] 550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED] 550 [EMAIL PROTECTED]... User unknown Final-Recipient: RFC822; [EMAIL PROTECTED] Action: failed Status: 5.1.1 Remote-MTA: DNS; postoffice.(null) Diagnostic-Code: SMTP;550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED] Last-Attempt-Date: 2007-11-12 15:21:41 -0800 -- Forwarded message -- From: Daniel Brown [EMAIL PROTECTED] To: Paul Novitski [EMAIL PROTECTED] Date: Mon, 12 Nov 2007 18:04:58 -0500 Subject: Re: [PHP] PHP access of FileMaker data On Nov 12, 2007 5:58 PM, Paul Novitski [EMAIL PROTECTED] wrote: Can someone please point me to some PHP code or documentation for accessing FileMaker Pro tables with PHP? So far googling Zend and world-wide hasn't found me what I'm seeking. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Back in 2004 I had a project that was to be a hybrid of PHP and FileMaker data, and I came across the perfect fit: FX.php by Chris Hansen. You can download the full source here: http://iviking.org/FX.php/ It had a mailing list of its own back then, too, which I was active on, but I'm no longer subscribed, and not even sure if it's still there. Either way, you'll find people like my friend, Gjermund Thorsen, still supporting the community on the script today, so you won't have to go it alone. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Local vs Master Configure values
The only question that remains for me is what's the difference between Local and Master Configure values in php_info? Why two? The 'master' value is straight from php.ini or the httpd.conf settings (eg httpd.conf sets the open_basedir restrictions). The 'local' value is after .htaccess changes and/or local script changes (eg changing memory_limit with an ini_set). -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] web page download question
David Calkins wrote: I'm attempting to scrape a web page to pull out some pertinent info. The URL looks similar to the below. http://www.someserver.com/user-info.xml?user=myusername If I paste the above into my web browser, the page comes up and displays the information. If I try view source, I get an XML document. Not an XHTML document, but a plain XML document with just the data fields (no formatting info). However, if I use PHP fopen() to read this same URL, I get the XHTML file with all the formatting info, etc. So, somehow the web browser (this happens in FireFox and IE7) is showing something other than what I get with the plain fopen(). I'd like to get at the plain XML file with just the data fields as is shown in the browser. Ask the owner of the website. They may have some sort of browser detection in there to show different things to search engines vs ie/firefox. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] web page download question
Its a big company. They provide the page to help people look up the info, but I don't think I could expect support from them on it. I was thinking it was some standard sort of thing, like maybe the way you issue the HTTP request or some way of decoding an alternate document from the source, etc. Also, IE is rendering the page graphically. i.e. when you view the page in IE (or FireFox for that matter) it shows up with all the graphics and formatting. But when you do view source, all you get is the plain XML. Not XHTML with CSS references or something like that, just plain, raw XML with the relevent fields and their data. So the page IE is rendering does not match what it shows you when you do view source. So somehow, there are 2 documents and I'm just missing how to retrieve the other one. I don't think its a browser detection thing since IE shows both. The graphically rendered, formatted page, and the raw data XML. On Nov 12, 2007 8:23 PM, Chris [EMAIL PROTECTED] wrote: David Calkins wrote: I'm attempting to scrape a web page to pull out some pertinent info. The URL looks similar to the below. http://www.someserver.com/user-info.xml?user=myusername If I paste the above into my web browser, the page comes up and displays the information. If I try view source, I get an XML document. Not an XHTML document, but a plain XML document with just the data fields (no formatting info). However, if I use PHP fopen() to read this same URL, I get the XHTML file with all the formatting info, etc. So, somehow the web browser (this happens in FireFox and IE7) is showing something other than what I get with the plain fopen(). I'd like to get at the plain XML file with just the data fields as is shown in the browser. Ask the owner of the website. They may have some sort of browser detection in there to show different things to search engines vs ie/firefox. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pecl-ssh2 and remote command execution
Radek Hladik wrote: Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension and I liked the idea of using ssh directly from PHP. However I was not able to figure out, how to close input stream and how to obtain return value. I.e. let's have this code: $stream = ssh2_exec($connection,head -n 4); stream_set_blocking($stream, true); fputs ($stream,line1\nline2\n); while($o=fgets($stream)){ echo $o.'br';} fclose ($stream); The problem is that this one never ends as 'head -n 4' waits for two more lines as it does not know, that I've finished sending data. If I close the stream after sending two lines, then I can not get output (of course :-) ). I've tried sending chr(3), chr(4), chr(0) to indicate end of input but nothing works. head will sit there waiting forever until you send another 2 lines - try it in your ssh session. Send 4 lines: line 1\n line 2\n \n \n and you'll get what you want. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hello, I have a php/apache question
Josh McDowell wrote: I just recently installed apache 2.0 on my comp with php 5.2.5 aswell. Apache is working and I am trying to get php to be configured into apache as a module, I put the ini file in the load module so it looks like this: #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule ssl_module modules/mod_ssl.so LoadModule php5_module c:/php/php5apache2.dll That seems like a strange mix, .so files are for *nix machines and .dll files are for windows. Is this on a windows machine or a *nix box? (Maybe the default config for apache + windows has the .so lines in there, I don't have apache on my windows machine so I can't look at it). apache is running a threaded mpm, but your php module is not compiled to be threadsafe. There were a few hits on google for this phrase, any useful results? -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] web page download question
David Calkins wrote: Its a big company. They provide the page to help people look up the info, but I don't think I could expect support from them on it. I was thinking it was some standard sort of thing, like maybe the way you issue the HTTP request or some way of decoding an alternate document from the source, etc. Also, IE is rendering the page graphically. i.e. when you view the page in IE (or FireFox for that matter) it shows up with all the graphics and formatting. But when you do view source, all you get is the plain XML. Not XHTML with CSS references or something like that, just plain, raw XML with the relevent fields and their data. So the page IE is rendering does not match what it shows you when you do view source. So somehow, there are 2 documents and I'm just missing how to retrieve the other one. I don't think its a browser detection thing since IE shows both. The graphically rendered, formatted page, and the raw data XML. Is there a DTD at the top? -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pecl-ssh2 and remote command execution
Chris napsal(a): Radek Hladik wrote: Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension and I liked the idea of using ssh directly from PHP. However I was not able to figure out, how to close input stream and how to obtain return value. I.e. let's have this code: $stream = ssh2_exec($connection,head -n 4); stream_set_blocking($stream, true); fputs ($stream,line1\nline2\n); while($o=fgets($stream)){ echo $o.'br';} fclose ($stream); The problem is that this one never ends as 'head -n 4' waits for two more lines as it does not know, that I've finished sending data. If I close the stream after sending two lines, then I can not get output (of course :-) ). I've tried sending chr(3), chr(4), chr(0) to indicate end of input but nothing works. head will sit there waiting forever until you send another 2 lines - try it in your ssh session. Send 4 lines: line 1\n line 2\n \n \n and you'll get what you want. Thanks for your reply. I know that head will wait till it receives 4 lines but it should also end when its input stream gets closed. That's why I've choosed head for my example. If I use proc_open on local head then I can selectively close its input and still get its output. In real use I will use commands which need input to be closed like sed, cat, etc For simplicity imagine this example: (I know this is stupid, but it's just an example :-) ) $stream = ssh2_exec($connection,tac); How can I signal to tac that input is over? In shell I would hit ctrl+d (chr(4)) Radek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Printing within functions
Philip Thompson napsal(a): Hi. I thought of this when I read the emails about using functions or includes... What are your thoughts about *printing* things from within functions? For example: ?php function printSomething () { echo Something about nothing. ; echo Another something.; } function something () { $text = Something about nothing. ; $text .= Another something.; return $text; } ? html ... p?php printSomething (); ?/p p?php echo something (); ?/p ... /html Obviously, these are over-simplified functions, but you get the point. Nonetheless, do you tend to print things within functions or pass the results back and then print them? I understand it may depend on the current context, but which way do you lean and is one way or the other considered *better practice*? Thanks, ~Philip It is generally better to use result returning functions instead of direct printing. You can do more things with data in some $result variable than with data waiting to be outputted in some buffer. At least you can change your mind and call function from other function. You do not need to distinguish between functions printing results and calculating something. Let's say you have function to create HTML page. It sounds like this function could print directly to the input. But imagine you need to include this whole page in some other page in some HTML element. The second (and more important) difference is that you can output data in other order than they have been generated and you can even discard some of them. Lets say you are generating tree-like something into HTML table.: +-+ | ABC | | +---+ +---+ | | | AB | | | | | |+-+ +-+| | | | | ||A| |B|| | C | | | |+-+ +-+| | | | | +---+ +---+ | +-+ You have function to generate leaf cell (A,B,C) and function to combine two cells into one (A+B=AB). In this case you need to generate cells A,B and their contents combined into cell AB. And the same with AB+C. This would be very difficult with direct printing. And my personal experience is that when I start with something really simple, just to test something and I am lazy and use echo(), then almost every time code gets bigger and I end up with replacing echo() for $result .= :-) Radek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] web page download question
http://www.catavitch.com The Script I have written actually does that for predefined websites. The content is LIVE pull directly from the website listed. MOST important thing to remember GET PERMISSION to scrape as you call it. I can store the data if I want or dish it up in the example. I can even display the entire website. I do not use an fopen(); Some may suggest a wget(); I will disagree strongly. Why waste the space with stored files. Try curl. -Original Message- From: David Calkins [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 9:40 AM To: php-general@lists.php.net Subject: [PHP] web page download question I'm attempting to scrape a web page to pull out some pertinent info. The URL looks similar to the below. http://www.someserver.com/user-info.xml?user=myusername If I paste the above into my web browser, the page comes up and displays the information. If I try view source, I get an XML document. Not an XHTML document, but a plain XML document with just the data fields (no formatting info). However, if I use PHP fopen() to read this same URL, I get the XHTML file with all the formatting info, etc. So, somehow the web browser (this happens in FireFox and IE7) is showing something other than what I get with the plain fopen(). I'd like to get at the plain XML file with just the data fields as is shown in the browser. Any ideas how to do this? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] multi dimentional array sort need help
I am read from XML feed chris smith-9 wrote: Jamesas wrote: I have the array by the following. i want to sort the array by name and starlevel.plz help me i am troubled for it. If this is coming from a database it would be easier to get the database to do the sorting instead of trying to do it in php. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- View this message in context: http://www.nabble.com/multi-dimentional-array-sort-need-help-tf4791126.html#a13719298 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Which is the best windows IDE for PHP ?
on windows Andrew O.Shadoura wrote: Use vi/vim/gvim if you are familiar with vi/vim keybindings, or pn2 if not :) Both are quite enough to write programs efficiently in almost any language. - Hemanth http://www.ValueAds.co.in http://www.ValueAds.co.in http://www.PaidAds.co.in http://www.PaidAds.co.in Bangalore, India Ph: +919844125556 -- View this message in context: http://www.nabble.com/Which-is-the-best-windows-IDE-for-PHP---tf4792629.html#a13719996 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Which is the best windows IDE for PHP ?
mvh wrote: on windows Why not? http://www.vim.org/download.php#pc -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Which is the best windows IDE for PHP ?
mvh wrote: I am using crimson editor for editing now It is the best editor i found. But is it not an IDE. Use vi/vim/gvim if you are familiar with vi/vim keybindings, or pn2 if not :) Both are quite enough to write programs efficiently in almost any language. -- WBR, Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session problem on PHP/Debian
Dear all, I have a problem with my PHP session on Debian Etch: When PHP create a session file sess_XXX it create this file without right: ~# ls -l /var/lib/php5/session/sess_* | more -- 1 www-data www-data 0 2007-11-13 06:49 /var/lib/php5/session/sess_0001b27b2df59844e4719476b1dd192c -- 1 www-data www-data 0 2007-11-13 07:28 /var/lib/php5/session/sess_00f5b9449e2e7d16dadddca59e4c12b8 -- 1 www-data www-data 23 2007-11-13 08:09 /var/lib/php5/session/sess_00f800967047af7e1cb6cccee6e37087 etc ... So PHP cannot verify my session (erro 13, access denied) and it create a lot of session files (686 at my last check). I'm on Debian Stable with PHP 5.2.0 and apache 2 An idea how to solve this problem ? Guillaume
Re: [PHP] Which is the best windows IDE for PHP ?
TextPad is a great code editor for Windows. http://www.textpad.com/ On Nov 13, 2007 12:10 AM, Andrew O. Shadoura [EMAIL PROTECTED] wrote: mvh wrote: I am using crimson editor for editing now It is the best editor i found. But is it not an IDE. Use vi/vim/gvim if you are familiar with vi/vim keybindings, or pn2 if not :) Both are quite enough to write programs efficiently in almost any language. -- WBR, Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Question about arrays
Jason Pruim wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of pieces weigh, The page can be seen here: HTTP://www.raoset.com/weight/ and here is the php code: Obviously I have some debugging stuff listed in there, so that's not the end result that it WILL be :) What I'm having issues with is, it only takes the value of the second text box, it won't process my array. Anyone care to take a quick look? Or tell me other then the php website where to look? I've already looked there and just couldn't come up with anything that makes sense to me... Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] What is your expected results? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fwd: Returned mail: User unknown
[EMAIL PROTECTED] wrote: PLEASE I have like 50 from it so far. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:31 PM To: php-general List Subject: [PHP] Fwd: Returned mail: User unknown Can an admin or mod please force an unsubscribe on [EMAIL PROTECTED]? I've been getting bounces all day, and I'm sure I'm not the only one. Every message I send to the list gives me one of these. Either that or we can just make them exceed their ISP mail cap :D ? $to = [EMAIL PROTECTED]; $headers = From: postoffice [EMAIL PROTECTED]\r\n; $headers .= X-Mailer: postoffice.(null)\r\n; while(1) { mail($to,Stamp: .time(),Hello. Goodbye!,$headers); } ? -- Forwarded message -- From: postoffice Date: 12 Nov 2007 15:25:01 -0800 Subject: Returned mail: User unknown To: Daniel Brown [EMAIL PROTECTED] The original message was received at 2007-11-12 15:21:41 -0800 from postoffice.(null) [10.0.0.1] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] -Transcript of session follows - ... while talking to postoffice.(null).: RCPT To:[EMAIL PROTECTED] 550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED] 550 [EMAIL PROTECTED]... User unknown Final-Recipient: RFC822; [EMAIL PROTECTED] Action: failed Status: 5.1.1 Remote-MTA: DNS; postoffice.(null) Diagnostic-Code: SMTP;550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED] Last-Attempt-Date: 2007-11-12 15:21:41 -0800 -- Forwarded message -- From: Daniel Brown [EMAIL PROTECTED] To: Paul Novitski [EMAIL PROTECTED] Date: Mon, 12 Nov 2007 18:04:58 -0500 Subject: Re: [PHP] PHP access of FileMaker data On Nov 12, 2007 5:58 PM, Paul Novitski [EMAIL PROTECTED] wrote: Can someone please point me to some PHP code or documentation for accessing FileMaker Pro tables with PHP? So far googling Zend and world-wide hasn't found me what I'm seeking. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Back in 2004 I had a project that was to be a hybrid of PHP and FileMaker data, and I came across the perfect fit: FX.php by Chris Hansen. You can download the full source here: http://iviking.org/FX.php/ It had a mailing list of its own back then, too, which I was active on, but I'm no longer subscribed, and not even sure if it's still there. Either way, you'll find people like my friend, Gjermund Thorsen, still supporting the community on the script today, so you won't have to go it alone. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php That is funny, I have not received one bounce message. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem retrieving $_POST values
Hi all: I'm having problems retrieving an array value that should be in a $_POST setting. In fact, I'm having trouble with the code hanging with no warnings or errors whatsoever, so I've got no clue why it's not working. Working code: if(isset($_POST[mls])) { if(strlen(trim($_POST[mls])) 0) { $query = mls= . $_POST[mls]; } } Non-working code: if(isset($_POST['city_arr'])) { // This space intentionally left blank. } The only thing I know that is different is that mls is a single value and that city_arr is an array. I have tried expressing it as city_arr[] with no success. Does anyone have an example of how to reference the $_POST value when said value is an array? I can't seem to find a sample of this anywhere in the manual. While I'm on the subject, how can I get a php page to tell me where a syntax error exists if one does instead of just giving me a blank page? Is there some (free g) way to test a php script outside of a web page? Thanks! Jon
Re: [PHP] Problem retrieving $_POST values
Jon Westcot wrote: Hi all: I'm having problems retrieving an array value that should be in a $_POST setting. In fact, I'm having trouble with the code hanging with no warnings or errors whatsoever, so I've got no clue why it's not working. Working code: if(isset($_POST[mls])) { if(strlen(trim($_POST[mls])) 0) { $query = mls= . $_POST[mls]; } } Non-working code: if(isset($_POST['city_arr'])) { // This space intentionally left blank. } The only thing I know that is different is that mls is a single value and that city_arr is an array. I have tried expressing it as city_arr[] with no success. Does anyone have an example of how to reference the $_POST value when said value is an array? I can't seem to find a sample of this anywhere in the manual. Exactly as you have there. print_r($_POST); will show you everything. How are you creating the field in your form? Is there some (free g) way to test a php script outside of a web page? cmd line you can do: php -l /path/to/file.php -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php