RE: [PHP] Turck MMcache - still continuing or dead?
That's not strictly true. Open source projects do sometimes die if nobody steps up to bat when the original developer decides not to continue it - SourceForge has many projects like this. In this particular instance mmCache is not dead (yet). The original developer has moved to work with Zend and is no longer able to work on mmCache. If you read the forums located here: http://sourceforge.net/forum/?group_id=69426 you will see that there is much discussion on this topic. At this moment it looks like some people have said they will help with the continuing development, so there is hope for it yet. It is a fantastic cache and deserves to continue. Ade -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: 31 January 2004 05:54 To: Binay Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Turck MMcache - still continuing or dead? Hi, This topic has also been discussed in the past. Open source projects never die. When the original developer moves away what generally happens is that someone else takes his place. Binay wrote: Hi all, I am planning to use Turck MMcache in my production environment and hence searching in the archives for its response and efficiency. It seems people who've used it are quite happy but suddenly I saw a post saying Turck MMcache is dead i.e its no longer supported by the person who originally developed it. I don know the fact/reality and in dilemma whether to use it in my production server or not?? What do u guys suggest? Thanks Binay -- Raditha Dissanayake. -- -- http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- 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] Please help me with this. (Retriving info from mySQL database and then put it in combo box)
Hi all.. I have in my database the fields :CourseTitle, Language1, Language2, Language3, Language4, Language5, Language6...Etc.. Now what I want to make is : By using an ActiveX Control I want to retrive the values for these fields from the database.. so for example there are many rows there(In the database).. : MS Word XP EnglishFrench Arabic MS PowerPoint XPChinese French Arabic.Etc MS Access XPChinese JapaneseEnglish.Etc I want to retrive these rows and put them in two combo boxes (CourseTitle and CourseLanguage).. the CourseTitle combo box contains the CourseTitle values from the database. For example : MS Word XP, MS PowerPoint XP, MS Access XP...Etc and the CourseLanguage combo box contains the CourseLanguage values from the database for every CourseTitle. For example : MS Word XP has Englsih,French and Arabic languages.. so if the user chose MS Word XP then the CourseLanguage will show the languages for that Course.. I hope you got my meaning.. So what I want is to import from the database then split these info into items inside the Combo box.. Best Regards..
Re: [PHP] Turck MMcache - still continuing or dead?
Hi Adrian I looked at the discussion goin on located at sourceforge. But then i m still not able to make up my mind whether to use it or not in my production server. What do u suggest? Is there any problem with the current version of MMcache? Please suggest me. Thanks Binay - Original Message - From: Adrian Teasdale [EMAIL PROTECTED] To: 'Raditha Dissanayake' [EMAIL PROTECTED]; 'Binay' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 31, 2004 12:36 PM Subject: RE: [PHP] Turck MMcache - still continuing or dead? That's not strictly true. Open source projects do sometimes die if nobody steps up to bat when the original developer decides not to continue it - SourceForge has many projects like this. In this particular instance mmCache is not dead (yet). The original developer has moved to work with Zend and is no longer able to work on mmCache. If you read the forums located here: http://sourceforge.net/forum/?group_id=69426 you will see that there is much discussion on this topic. At this moment it looks like some people have said they will help with the continuing development, so there is hope for it yet. It is a fantastic cache and deserves to continue. Ade -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: 31 January 2004 05:54 To: Binay Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Turck MMcache - still continuing or dead? Hi, This topic has also been discussed in the past. Open source projects never die. When the original developer moves away what generally happens is that someone else takes his place. Binay wrote: Hi all, I am planning to use Turck MMcache in my production environment and hence searching in the archives for its response and efficiency. It seems people who've used it are quite happy but suddenly I saw a post saying Turck MMcache is dead i.e its no longer supported by the person who originally developed it. I don know the fact/reality and in dilemma whether to use it in my production server or not?? What do u guys suggest? Thanks Binay -- Raditha Dissanayake. -- -- http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- 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] Turck MMcache - still continuing or dead?
On Saturday 31 January 2004 13:57, Binay wrote: So u mean i can go ahead with MMcache?? Why not? There's nothing to stop you. The code still works, even though development has been (hopefully) temporarily suspended. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* I live the way I type; fast, with a lot of mistakes. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Logging on to a web based application
On Saturday 31 January 2004 13:10, Robert Sossomon wrote: Yuck!! Indeed. Please trim your posts! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Odets, where is thy sting? -- George S. Kaufman */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: array block
On Saturday 31 January 2004 11:48, Shawn McKenzie wrote: You would need to give an example of what you mean by change dynamically, because if you can't predict the key indexes then how can you know which ones to use in your anchor tag? foreach ($arr as $key = $value) { echo Key: $key; Value: $valuebr\n; } -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* If your attack is going really well, it's an ambush -- Murphy's Military Laws n47 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Turck MMcache - still continuing or dead?
Hi Adrian I looked at the discussion goin on located at sourceforge. But then i m still not able to make up my mind whether to use it or not in my production server. What do u suggest? Is there any problem with the current version of MMcache? Please suggest me. Thanks Binay As far as I can tell there are no problems using it (at the moment) on a production server. We use it on ours with great benefits. The issue is whether the project continues and the best way to ensure it does, is ultimately to get involved - this is an open source project after all! :) Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Turck MMcache - still continuing or dead?
Hi True that there are countless thousands of projets at sourceforge that can be called dead. But these are mostly projects that never had many downloads even at the peak. or the platforms they ran on are no longer popular etc. Thankfully the same cannot be said of MMCache. Adrian Teasdale wrote: That's not strictly true. Open source projects do sometimes die if nobody steps up to bat when the original developer decides not to continue it - SourceForge has many projects like this. In this particular instance mmCache is not dead (yet). The original developer has moved to work with Zend and is no longer able to work on mmCache. If you read the forums located here: http://sourceforge.net/forum/?group_id=69426 you will see that there is much discussion on this topic. At this moment it looks like some people have said they will help with the continuing development, so there is hope for it yet. It is a fantastic cache and deserves to continue. Ade -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: 31 January 2004 05:54 To: Binay Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Turck MMcache - still continuing or dead? Hi, This topic has also been discussed in the past. Open source projects never die. When the original developer moves away what -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please help me with this. (Retriving info from mySQL database and then put it in combo box)
Hello This is a PHP list not an activex list. Radwan Aladdin wrote: Hi all.. I have in my database the fields :CourseTitle, Language1, Language2, Language3, Language4, Language5, Language6...Etc.. Now what I want to make is : By using an ActiveX Control I want to retrive the values for these fields from the database.. so for example there are many rows there(In the database).. : MS Word XP EnglishFrench Arabic MS PowerPoint XPChinese French Arabic.Etc MS Access XPChinese JapaneseEnglish.Etc I want to retrive these rows and put them in two combo boxes (CourseTitle and CourseLanguage).. the CourseTitle combo box contains the CourseTitle values from the database. For example : MS Word XP, MS PowerPoint XP, MS Access XP...Etc and the CourseLanguage combo box contains the CourseLanguage values from the database for every CourseTitle. For example : MS Word XP has Englsih,French and Arabic languages.. so if the user chose MS Word XP then the CourseLanguage will show the languages for that Course.. I hope you got my meaning.. So what I want is to import from the database then split these info into items inside the Combo box.. Best Regards.. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Turck MMcache - still continuing or dead?
Thanks alottt Finally have decided to go with MMcache only. Thanks all for clearing my doubts once again Binay - Original Message - From: Adrian Teasdale [EMAIL PROTECTED] To: 'Binay' [EMAIL PROTECTED]; 'Raditha Dissanayake' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 31, 2004 2:20 PM Subject: RE: [PHP] Turck MMcache - still continuing or dead? Hi Adrian I looked at the discussion goin on located at sourceforge. But then i m still not able to make up my mind whether to use it or not in my production server. What do u suggest? Is there any problem with the current version of MMcache? Please suggest me. Thanks Binay As far as I can tell there are no problems using it (at the moment) on a production server. We use it on ours with great benefits. The issue is whether the project continues and the best way to ensure it does, is ultimately to get involved - this is an open source project after all! :) Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Create a new directory on server.
Hi all, is there in PHP a function that create a new directory on server? Regards, Frank www.automationsoft.biz
Re: [PHP] Create a new directory on server.
[EMAIL PROTECTED] wrote: is there in PHP a function that create a new directory on server? RTFM - http://php.net/mkdir -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Create a new directory on server.
[EMAIL PROTECTED] wrote: Hi all, is there in PHP a function that create a new directory on server? Regards, Frank www.automationsoft.biz Don't send your messages high priority. They are not high-priority. -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] parsing variables inside a variable?
Yes when I checked out the manual page for eval() it did occur to me that it did open up significant potential for abuse. As it happens I am passing user supplied values into these variables, but I validate all my input anyway to prevent people from modifying my queries etc.. I have observed that PHP doesn't seem to be very naturally defensive but I guess no Server Side scripting language is, except maybe JSP. Cheers, James -- www.jholt.co.uk : affordable business website solutions www.htpshareware.com : software for the disorganized You don't needs eyes to see, you need vision - Maxi Jazz Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 30 January 2004 12:35, jimbo wrote: Great - thanks v. much Mike. I don't know why there was no mention of eval() in the section of the manual on Variable Parsing. Possibly because they didn't want to get into the security issues involved. It sounds like you're ok there, as you only intend putting very controlled values into the database. The problem comes if you're potentially eval()-ing user-supplied values that have been insufficiently validated. Just suppose, for example, that it was possible for a user to somehow get a value such as 'system(rm /etc/passwds)' inserted into the database in a field that you then eval()... Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Turck MMcache - still continuing or dead?
I'm jumping in kinda late, and I have been using it on two small production site, and countless small projects. While I do not use the full array of its features, even the base features make it a great product. Never had any problems -Original Message- From: Binay [mailto:[EMAIL PROTECTED] Sent: Saturday, January 31, 2004 4:42 AM To: [EMAIL PROTECTED]; 'Raditha Dissanayake' Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Turck MMcache - still continuing or dead? Thanks alottt Finally have decided to go with MMcache only. Thanks all for clearing my doubts once again Binay - Original Message - From: Adrian Teasdale [EMAIL PROTECTED] To: 'Binay' [EMAIL PROTECTED]; 'Raditha Dissanayake' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 31, 2004 2:20 PM Subject: RE: [PHP] Turck MMcache - still continuing or dead? Hi Adrian I looked at the discussion goin on located at sourceforge. But then i m still not able to make up my mind whether to use it or not in my production server. What do u suggest? Is there any problem with the current version of MMcache? Please suggest me. Thanks Binay As far as I can tell there are no problems using it (at the moment) on a production server. We use it on ours with great benefits. The issue is whether the project continues and the best way to ensure it does, is ultimately to get involved - this is an open source project after all! :) Ade -- 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] Create a new directory on server.
[EMAIL PROTECTED] wrote: Hi all, is there in PHP a function that create a new directory on server? Regards, Frank www.automationsoft.biz Wow, who would have thought that one could find the answer to a php question in the php manual... http://us2.php.net/manual/en/function.mkdir.php -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: array block
On Fri, 2004-01-30 at 22:48, Shawn McKenzie wrote: You would need to give an example of what you mean by change dynamically, because if you can't predict the key indexes then how can you know which ones to use in your anchor tag? say this: $menu = array ( 'link1' = array( 'url' = 'foo', 'title' = 'bar' ), 'link2' = array( 'url' = 'foo', 'title' = 'bar' ) ); were to dynamically change to this: $menu = array ( 'link1' = array( 'url' = 'foo', 'title' = 'bar' 'style' = 'dolor' ), 'link2' = array( 'url' = 'foo', 'title' = 'bar' 'style' = 'amet' ) ); I'm stretching here, have no practical use for it, and can think of much better ways to handle it but am still curious. Obviously you need to traverse the inner array which is not an issue, but I get stumped with trying to format it as in the previous examples. -- BrianGnuPG - KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: pgp.mit.edu == gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC GnuPG: http://gnupg.org http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC Linux Registered User #339825 at http://counter.li.org signature.asc Description: This is a digitally signed message part
RE: [PHP] Re: array block
If you have an array like this (change the url to href): $menu = array ( 'link1' = array( 'url' = 'foo', 'title' = 'bar' 'style' = 'dolor' ), 'link2' = array( 'url' = 'foo', 'title' = 'bar' 'style' = 'amet' ) ); Then something like this, or the general idea should work: $menu = array ( 'link1' = array( 'href' = 'foo', 'title' = 'bar', 'style' = 'dolor' ), 'link2' = array( 'href' = 'foo', 'title' = 'bar', 'style' = 'amet' ) ); foreach ($menu as $array) { $tag = a; foreach ($array as $k = $v) { $tag .= $k=\$v\; } $tag .= $menu/a\n; echo $tag; } There are better ways to do it I'm sure, but this is just following the previous example. -Shawn -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED] Sent: Saturday, January 31, 2004 8:56 AM To: Shawn McKenzie Cc: PHP Lists Subject: Re: [PHP] Re: array block On Fri, 2004-01-30 at 22:48, Shawn McKenzie wrote: You would need to give an example of what you mean by change dynamically, because if you can't predict the key indexes then how can you know which ones to use in your anchor tag? say this: $menu = array ( 'link1' = array( 'url' = 'foo', 'title' = 'bar' ), 'link2' = array( 'url' = 'foo', 'title' = 'bar' ) ); were to dynamically change to this: $menu = array ( 'link1' = array( 'url' = 'foo', 'title' = 'bar' 'style' = 'dolor' ), 'link2' = array( 'url' = 'foo', 'title' = 'bar' 'style' = 'amet' ) ); I'm stretching here, have no practical use for it, and can think of much better ways to handle it but am still curious. Obviously you need to traverse the inner array which is not an issue, but I get stumped with trying to format it as in the previous examples. -- BrianGnuPG - KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: pgp.mit.edu == gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC GnuPG: http://gnupg.org http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC Linux Registered User #339825 at http://counter.li.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do you guys do this?
users uploading two identically named files at the same time (not all /that/ unlikely), and you are using a database table to track Really? You don't think it's that uncommon? Please give an example as I can't think of any. Not like that's saying much. :) I'd say that any time you have an application written for some specific industry or audience, there's a good chance people will be uploading assets with similar names -- we did one for an automotive company's design department, and there were a lot of instances of people posting many images named headlights.jpg, for example. The application was visual, the frontend was flash, and they were more interested in the image than the filename. I used microtime() to differentiate them, but in retrospect it should have been a no-brainer to use the database primary id to help differentiate these, since the DB already did all the heavy lifting involved in ensuring uniqueness. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: exec cURL to pass custom MIME headers
Hello, On 01/30/2004 05:31 PM, Kristopher Spencer-Yates wrote: Normally I wouldn't do this but the cURL list seems to be in severe hibernation, ie. no activity. I'm in a bit of a jam w/ this and so here goes How do I get cURL to pass headers properly? It is ignoring my -H headers and sending its own default or whatever set of headers. One example, it submits as x-www-urlencoded-form or whatever but I want it to just send -H my headers!. Can anyone point me in the right direction? I know I probably just need to change something simple here.. see below: ? $mime_headers=POST /AUTHORIZE HTTP/1.0\nMIME-Version: 1.0\nContent-type: application/X1; $xml_content={some XML - use your imagination here}; exec(/usr/local/bin/curl -m 120 -H \$mime_headers\ -d \$xml_content\ $merchant_URL:$merchant_PORT -L, $return_message_array, $return_number); ? You do not need to call cURL external program to send an HTTP request. You can use fsockopen connections. You may want to try this HTTP client class. It actually uses curl extension but only for secure connections (SSL/HTTPS). For normal HTTP connections it uses fsockopen. It can send POST requests including those tha need to send XML data like SOAP requests. So you can do what you want with this class: http://www.phpclasses.org/httpclient -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ MetaL - XML based meta-programming language http://www.meta-language.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] formated text after Submit in MySQL/PHP
Hello, I have a page where users can enter in information about themselves... I want it to maintain its format instead of all running together, that is, when they enter a space the space is maintained via MySQL and displayed in their webpage (instead of having to ask them to type P) is this possible? thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do you guys do this?
On Sat, 2004-01-31 at 12:57, Michal Migurski wrote: users uploading two identically named files at the same time (not all /that/ unlikely), and you are using a database table to track Really? You don't think it's that uncommon? Please give an example as I can't think of any. Not like that's saying much. :) I used microtime() to differentiate them, but in retrospect it should have been a no-brainer to use the database primary id to help differentiate these, since the DB already did all the heavy lifting involved in ensuring uniqueness. Even though it seems incredibly unlikely, isn't is safer to just not worry about it and use unique ids instead? Why take the risk when you can use an autonumber from a database or md5(uniqid(rand(), true)), or even: time() . md5(uniqid(rand(), true)) if you want to be really paranoid? -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do you guys do this?
Hey, Nice solution, I think i'll use it. Thanks. -Ryan On 1/31/2004 8:56:02 PM, [EMAIL PROTECTED] wrote: Ryan A wrote: Hey all, I needed to make a simple upload script so users could upload their images but had a small extra requirment, after searching google, hotscripts and all the other usual places and downloading code, i realized its better to write the whole damn thing myself, so i did. Now that the little history lesson is over.I have run into a problem which i am sure you guys must have too, when you take the uploaded pic of the user...how do you save it? I dont mean saving onto disk, i can do that, i mean the name of the file...I am having all the pics upload to one common directory (member_pics) so what do you suggest I name the pictures? eg: username.jpg? first_last_name.jpg? random_number_username.jpg? etc etc (for this example i wrote only jpg, i will be having png and gif too) The reason I didnt want to use the user's username as his pic name is coz then if someone wanted to break into his account they already know the username and they could try to bruteforce the password... if i use first and last name...there is a _small_ possibility of 2 members -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 31 Jan 2004 20:07:11 -0000 Issue 2563
php-general Digest 31 Jan 2004 20:07:11 - Issue 2563 Topics (messages 176448 through 176468): Re: Turck MMcache - still continuing or dead? 176448 by: Binay 176449 by: Jason Wong 176452 by: Adrian Teasdale 176453 by: Raditha Dissanayake 176455 by: Binay 176460 by: Dan McCullough Re: Logging on to a web based application 176450 by: Jason Wong Re: array block 176451 by: Jason Wong 176462 by: Brian V Bonini 176463 by: Shawn McKenzie Re: Please help me with this. (Retriving info from mySQL database and then put it in combo box) 176454 by: Raditha Dissanayake Create a new directory on server. 176456 by: francesco.automationsoft.biz 176457 by: Stuart 176458 by: Burhan Khalid 176461 by: John Nichel Re: parsing variables inside a variable? 176459 by: jimbo Re: How do you guys do this? 176464 by: Michal Migurski 176467 by: Adam Bregenzer 176468 by: Ryan A Re: exec cURL to pass custom MIME headers 176465 by: Manuel Lemos formated text after Submit in MySQL/PHP 176466 by: Matt Hedges Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Hi Adrian I looked at the discussion goin on located at sourceforge. But then i m still not able to make up my mind whether to use it or not in my production server. What do u suggest? Is there any problem with the current version of MMcache? Please suggest me. Thanks Binay - Original Message - From: Adrian Teasdale [EMAIL PROTECTED] To: 'Raditha Dissanayake' [EMAIL PROTECTED]; 'Binay' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 31, 2004 12:36 PM Subject: RE: [PHP] Turck MMcache - still continuing or dead? That's not strictly true. Open source projects do sometimes die if nobody steps up to bat when the original developer decides not to continue it - SourceForge has many projects like this. In this particular instance mmCache is not dead (yet). The original developer has moved to work with Zend and is no longer able to work on mmCache. If you read the forums located here: http://sourceforge.net/forum/?group_id=69426 you will see that there is much discussion on this topic. At this moment it looks like some people have said they will help with the continuing development, so there is hope for it yet. It is a fantastic cache and deserves to continue. Ade -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: 31 January 2004 05:54 To: Binay Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Turck MMcache - still continuing or dead? Hi, This topic has also been discussed in the past. Open source projects never die. When the original developer moves away what generally happens is that someone else takes his place. Binay wrote: Hi all, I am planning to use Turck MMcache in my production environment and hence searching in the archives for its response and efficiency. It seems people who've used it are quite happy but suddenly I saw a post saying Turck MMcache is dead i.e its no longer supported by the person who originally developed it. I don know the fact/reality and in dilemma whether to use it in my production server or not?? What do u guys suggest? Thanks Binay -- Raditha Dissanayake. -- -- http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- ---BeginMessage--- On Saturday 31 January 2004 13:57, Binay wrote: So u mean i can go ahead with MMcache?? Why not? There's nothing to stop you. The code still works, even though development has been (hopefully) temporarily suspended. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* I live the way I type; fast, with a lot of mistakes. */ ---End Message--- ---BeginMessage--- Hi Adrian I looked at the discussion goin on located at sourceforge. But then i m still not able to make up my mind whether to use it or not in my production server. What do u suggest? Is there any problem with the current version of MMcache? Please
[PHP] Perl script using Inline-octave doesn't run.
Hello all, I'm trying start a perl script from PHP but I'm not getting success. This script is calling the Inline-octave module (see below an example) to do some numeric calculus. The script is started but it doesn't finish. I think that the process is being killed when the Inline-octave module is called. Any ideas to solve this problem? Thanks in advance, Paulo R. Lagrotta Perl Script # #!/usr/bin/perl use strict; use Test; BEGIN { plan tests =1; } use Inline Octave = q{ function x=jnk1(u); x=u+1; endfunction }; my $v= jnk1(3)-disp(); chomp ($v); ok( $v, 4 ); print $v\n; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] formated text after Submit in MySQL/PHP
Matt Hedges wrote: Hello, I have a page where users can enter in information about themselves... I want it to maintain its format instead of all running together, that is, when they enter a space the space is maintained via MySQL and displayed in their webpage (instead of having to ask them to type P) is this possible? thanks, Matt Yes. See http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an swers.html -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Apache
Hi friends of PHP, I am new to PHP and just created a code. I tried it out on a php enabled site and it worked, oh joy! I then installed apache 2.0.48. All was good. I then downloaded and installed php 4.3.4.exe, the auto install version. I chose apache in the bullet menu thing but when it installed it said i have to configure a file as it failed to work. I uploaded some PHP files to the htdocs, and loaded it via http://localhost/file.php. The file exists and it loaded, but wasnt reading the PHP script? It was like when you just open the file in internet explorer. I am using inetrnet explorer 6. Help me, i am running XP Home Edition! Thanks Ashley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Apache
Hi Ashley, I think you didn't told Apache to parse PHP. You have to add the following lines into the httpd.conf: | LoadFile C:/www/apache/bin/php4ts.dll | LoadModule php4_module C:/www/apache/bin/php4apache2.dll | AddType application/x-httpd-php .php .php4 .php3 .phtml (without |, replace the Paths Filenames) If you don't want to configure everything yourself take a preconfigured package - like WAMPP from http://www.apachefriends.org/index-en.html It comes with Apache 2, PHP, MySQL, Perl, ... Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] More info on MikeRoweSoft.com...
(on MikeRoweSoft.com)... In case you didn't know, Mike isn't an only child. He has a brother and a sister, and his brother's name is Mac. Mac is 24, but when he was 19, he started a media consulting company. Guess who he recieved a letter from. Actually, Macromedia was very nice about it. Really, Mike should have known that Microsoft wouldn't be as nice as Macromedia, but lets just hope that his little sister, Mika, is smarter. Alex King -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Simple script but confusion with comparing strings
Hi, Just fooling around with fwrite and fread when i seem to have hit a wall. Basically, what i am trying to do is, make an md5 hash of a number, write that number to a file. A bit later read the hash from that file and compare it to a number, if its 1, then print 1 , if 2 print 2... I have tried 2 ways of doing this, with an if and with strcmp, its reading and writing perfectly...only not comparingheres my code ( and yes, i got most of it from the manual) : ?php $type=$_GET['type']; if($type4) { $filename = '/home/secure/public_html/testing/test.txt'; $somecontent = strtoupper(md5($type)); if (is_writable($filename)) { if (!$handle = fopen($filename, 'wb')) { echo Cannot open file ($filename); exit; } // Write $somecontent to our opened file. if (!fwrite($handle, $somecontent)) { echo Cannot write to file ($filename); exit; } echo Success, wrote ($somecontent) to file ($filename); fclose($handle); } else { echo The file $filename is not writable;} } else if($type==4){ $filename = /home/secure/public_html/testing/test.txt; $handle = fopen($filename, rb); $contents = fread($handle, filesize($filename)); fclose($handle); /* * All the above is working...the problem part is bleow * **/ if(strcmp($contents,md5(1))==0) {echo Yes, its 1br;} else if(strcmp($contents,md5(2))==0) {echo Yes, its 2br;} else if(strcmp($contents,md5(3))==0) {echo Yes, its 3br;} else {echo file is blank;} /*if($contents==md5(1)) {echo Yes, its 1br;} else if($contents==md5(2)) {echo Yes, its 2br;} else if($contents==md5(3)) {echo Yes, its 3br;} else {echo file is blank;}*/ echo $contents; } Both the above ways to compare the hash is failingwhat am i doing wrong? Thanks, -Ryan ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: More info on MikeRoweSoft.com...
Alex King wrote: (on MikeRoweSoft.com)... In case you didn't know, Mike isn't an only child. He has a brother and a sister, and his brother's name is Mac. Mac is 24, but when he was 19, he started a media consulting company. Guess who he recieved a letter from. Actually, Macromedia was very nice about it. Really, Mike should have known that Microsoft wouldn't be as nice as Macromedia, but lets just hope that his little sister, Mika, is smarter. Alex King So do you think he'll name his son PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Son of Script halts inside imap_fetchstructure
Hi - I posted this last week. It got one promising response, then fell by the wayside. I'm trying this again: I'm running across a strange situation in which a script I'm running on a hosting company's server as a web page (no shell access available) is dying inside imap_fetchstructure when the message has an attachment. Of course, when I run it on my machine at home, it works fine :( . The hosting company is running PHP 4.3.4 and Apache/1.3.27 My home machine is running PHP 4.1.2 and Apache/1.3.23 I suspect the hosting company has something misconfigured, but since they're not likely to admit to it, I'm hoping there's a workaround I could put in my script. Other configuration info: Both machines show: IMAP c-Client Version 2001 One possibly interesting difference in the configurations, though. Hosting company: --with-imap=/usr/local/4admin/src/imap-2002.RC10 My machine: --with-imap=shared (OK, obviously I'm grasping at straws here) Both machines' IMAP configurations support SSL. Mine also supports Kerberos for some reason. Thanks. Any help would be appreciated. Thanks. - Mike. __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do you guys do this?
I used microtime() to differentiate them, but in retrospect it should have been a no-brainer to use the database primary id to help differentiate these, since the DB already did all the heavy lifting involved in ensuring uniqueness. Even though it seems incredibly unlikely, isn't is safer to just not worry about it and use unique ids instead? Why take the risk when you can use an autonumber from a database or md5(uniqid(rand(), true)), or even: time() . md5(uniqid(rand(), true)) if you want to be really paranoid? According to the docs, uniqid() relies on microtime() anyway, so it works out to almost the same thing. You could just as well make a call to the return value of the mktemp program, as well. Regardless, the important thing is that you generate uniqueness /somewhere/ - if you're using a DB, you get uniqueness for free! :) - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] formated text after Submit in MySQL/PHP
Can someone help me with the following? Preferably someone other than the wise ass below? thanks matt Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Hedges wrote: Hello, I have a page where users can enter in information about themselves... I want it to maintain its format instead of all running together, that is, when they enter a space the space is maintained via MySQL and displayed in their webpage (instead of having to ask them to type P) is this possible? thanks, Matt Yes. See http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an swers.html -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] formated text after Submit in MySQL/PHP
Matt Hedges wrote: Can someone help me with the following? Preferably someone other than the wise ass below? Certainly. Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Hedges wrote: Hello, I have a page where users can enter in information about themselves... I want it to maintain its format instead of all running together, that is, when they enter a space the space is maintained via MySQL and displayed in their webpage (instead of having to ask them to type P) is this possible? Yes. And one piece of advice, when asking for help don't call the people you are asking names. It generally doesn't work. Unless you're going to pay us in which case you can call me whatever you want!! -- Stuart Wise Ass in Training (Loathed though I am to help someone with your attitude, you may find your answer in the PHP manual. Try http://php.net/nl2br. But to reinforce the point, making sure you ask the right questions in the right way will make your experience with this group a lot more pleasant.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Simple script but confusion with comparing strings
Ryan A wrote: $somecontent = strtoupper(md5($type)); compared to... if(strcmp($contents,md5(1))==0) Comparing uppercase to lowercase (md5 generates a lowercase string). Either remove the strtoupper when first generated, strtoupper the md5 result in the comparison or use strcasecmp instead of strcmp. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] formated text after Submit in MySQL/PHP
Matt Hedges wrote: Can someone help me with the following? Preferably someone other than the wise ass below? Of course... thanks matt Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Hedges wrote: Hello, I have a page where users can enter in information about themselves... I want it to maintain its format instead of all running together, that is, when they enter a space the space is maintained via MySQL and displayed in their webpage (instead of having to ask them to type P) is this possible? thanks, Matt Yes. See http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an swers.html You could try this mirror in case the other didn't work. http://www.bigredspark.com/questions-with-yes-or-no-answers.html -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Act as a Server
Alright, I'm just looking for two answers: If it can be done and how? I don't want code though, that's up to me to figure out. I'm about make a script, somewhat like a mailing list, where users can contact each other through a web based system or by email. My question is, can I get PHP to somehow act as the server where all the emails come in? What I means is like if I were to send an email to [EMAIL PROTECTED], how could I get PHP to pick the email up and distribute it out like a mailing list? Would this require the configuration file to be changed or what? Any help here would be appreciated. I don't think this has been done before, or else I would have read their code and seen how they did it. Thanks, Stephen Craton http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not working with Apache
I am running Apache 1.3.29 and PHP 4.3.3. I installed apache first and got it to work. Then, I install the php installer and and copied the windows binary files. I followed the instruction to run as a module and I even uninstalled the php files and tried to run PHP as just a CGI binary, both methods failured. I created a test php script called hello.php and the web page was blank when I tried to access it. I could view the code... Any ideas? I am running WIN 2K server sp4. Thanks in adavnce - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Re: [PHP] Act as a Server
But Stephen, there are all sorts of mailing list managers why reinvent the wheel? NO doubt it could be done, whether it's worth doing is another question. Miles At 07:42 PM 1/31/2004 -0500, Stephen Craton wrote: Alright, I'm just looking for two answers: If it can be done and how? I don't want code though, that's up to me to figure out. I'm about make a script, somewhat like a mailing list, where users can contact each other through a web based system or by email. My question is, can I get PHP to somehow act as the server where all the emails come in? What I means is like if I were to send an email to [EMAIL PROTECTED], how could I get PHP to pick the email up and distribute it out like a mailing list? Would this require the configuration file to be changed or what? Any help here would be appreciated. I don't think this has been done before, or else I would have read their code and seen how they did it. Thanks, Stephen Craton http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Act as a Server
Ofcorse it can be done... Wouldn't be worth it though, and it would be slooow as f I think... ... I really don't think it would be worth it accutually... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Stephen Craton [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Alright, I'm just looking for two answers: If it can be done and how? I don't want code though, that's up to me to figure out. I'm about make a script, somewhat like a mailing list, where users can contact each other through a web based system or by email. My question is, can I get PHP to somehow act as the server where all the emails come in? What I means is like if I were to send an email to [EMAIL PROTECTED], how could I get PHP to pick the email up and distribute it out like a mailing list? Would this require the configuration file to be changed or what? Any help here would be appreciated. I don't think this has been done before, or else I would have read their code and seen how they did it. Thanks, Stephen Craton http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Act as a Server
Well, what point is a mailing list if you have to go onto a website to reply to something? That'd be more or less a forum... Thanks, Stephen Craton http://www.melchior.us - -Original Message- - From: DvDmanDT [mailto:[EMAIL PROTECTED] - Sent: Saturday, January 31, 2004 8:30 PM - To: [EMAIL PROTECTED] - Subject: [PHP] Re: Act as a Server - - Ofcorse it can be done... Wouldn't be worth it though, and it would be - slooow as f I think... - - ... I really don't think it would be worth it accutually... - - -- - // DvDmanDT - MSN: dvdmandt¤hotmail.com - Mail: dvdmandt¤telia.com - Stephen Craton [EMAIL PROTECTED] skrev i meddelandet - news:[EMAIL PROTECTED] - Alright, I'm just looking for two answers: If it can be done and how? I - don't want code though, that's up to me to figure out. - - - - I'm about make a script, somewhat like a mailing list, where users can - contact each other through a web based system or by email. My question - is, - can I get PHP to somehow act as the server where all the emails come in? - What I means is like if I were to send an email to [EMAIL PROTECTED], how - could - I - get PHP to pick the email up and distribute it out like a mailing list? - Would this require the configuration file to be changed or what? - - - - Any help here would be appreciated. I don't think this has been done - before, - or else I would have read their code and seen how they did it. - - - - Thanks, - - Stephen Craton - - http://www.melchior.us - - - - - - -- - 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] mail list/outbound email
Looking for suggestions/thoughts/comments about mail list/outbound email/newsletters. I just bought some software to help my wife's clients send outbound email campaigns (opt-in/opt-out) not spam. There have been several issues right off the hop. Can anyone think of components that can be used with php scripts to handle outbound email like those of responsys and other big boys? dan mccullough sr. engineer url: heathermccullough.com http://www.heathermccullough.com/ tf: 866.298.3991 w: 603.444.9808 There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity comes brilliantly disguised as bad news. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Simple script but confusion with comparing strings (SOLVED)
Hey, Thanks, it worked! -Ryan On 2/1/2004 1:13:32 AM, Stuart ([EMAIL PROTECTED]) wrote: Ryan A wrote: $somecontent = strtoupper(md5($type)); compared to... if(strcmp($contents,md5(1))==0) Comparing uppercase to lowercase (md5 generates a lowercase string). Either remove the strtoupper when first generated, strtoupper the md5 result in the comparison or use strcasecmp instead of strcmp. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Act as a Server
Stephen Craton wrote: Well, what point is a mailing list if you have to go onto a website to reply to something? That'd be more or less a forum... Why would you have to go onto a site to reply when using a mailing list manager? Hell, a lot of hosting providers set you up with Majordomo when you have a domain hosted thru them. I can understand the desire to do it yourself, but this would be a major (if not impractical) project in php. Look here... http://directory.google.com/Top/Computers/Software/Internet/Servers/Mail/List_Management/ -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Create a new directory on server.
[EMAIL PROTECTED] wrote: is there in PHP a function that create a new directory on server This is a serious case of needing to RTFM. www.php.net/mkdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 3 variables not passing to function!!!????
Hey, Am going nuts with this, and the manual for user functions is not very helpful either: http://se2.php.net/manual/en/functions.php#functions.user-defined What i am doing is really simple, am trying to mail myself 3 variables from a include file. I am getting everything except the 3 variables($admin,$site,$lic), heres my function: *** include_once('PRO-Config.php'); echo $admin; // This was a test to see if I am getting the value from the include..I am. function sendEmail() { $DOC_ROOT= $_SERVER['DOCUMENT_ROOT']; $SCRIPT_NAME= $_SERVER['SCRIPT_FILENAME']; $PATH_TRANS= $_SERVER['PATH_TRANSLATED']; $rand_emails=[EMAIL PROTECTED]; $the_email=[EMAIL PROTECTED]; $the_subject=Test function; $headers=From: .$rand_emails.\n.Return-Path: .$rand_emails.\n.Reply-To: .$rand_emails.\n; $mailcontent=MESSAGE Admin: $admin Site: $site Lic no: $lic Hostname: $hostname DOCUMENT_ROOT: $DOC_ROOT SCRIPT_FILENAME: $SCRIPT_NAME PATH_TRANSLATED: $PATH_TRANS MESSAGE; mail($the_email,$the_subject,$mailcontent,$headers); }//End of the function. ** I get an email...but these 3 values are not passed: Admin: $admin Site: $site Lic no: $lic What am I doing wrong? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 3 variables not passing to function!!!????
Ryan A wrote: I am getting everything except the 3 variables($admin,$site,$lic), heres my function: *** include_once('PRO-Config.php'); echo $admin; // This was a test to see if I am getting the value from the include..I am. function sendEmail() { [snip] Admin: $admin Site: $site Lic no: $lic variable scope, variable scope, variable scope. $admin does not exist inside the function unless you pass it or make it global. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] 3 variables not passing to function!!!????
try setting them global as they are outside the function global $admin,$site,$lic etc .. -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Sunday, February 01, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: [PHP] 3 variables not passing to function!!! Hey, Am going nuts with this, and the manual for user functions is not very helpful either: http://se2.php.net/manual/en/functions.php#functions.user-defined What i am doing is really simple, am trying to mail myself 3 variables from a include file. I am getting everything except the 3 variables($admin,$site,$lic), heres my function: *** include_once('PRO-Config.php'); echo $admin; // This was a test to see if I am getting the value from the include..I am. function sendEmail() { $DOC_ROOT= $_SERVER['DOCUMENT_ROOT']; $SCRIPT_NAME= $_SERVER['SCRIPT_FILENAME']; $PATH_TRANS= $_SERVER['PATH_TRANSLATED']; $rand_emails=[EMAIL PROTECTED]; $the_email=[EMAIL PROTECTED]; $the_subject=Test function; $headers=From: .$rand_emails.\n.Return-Path: .$rand_emails.\n.Reply-To: .$rand_emails.\n; $mailcontent=MESSAGE Admin: $admin Site: $site Lic no: $lic Hostname: $hostname DOCUMENT_ROOT: $DOC_ROOT SCRIPT_FILENAME: $SCRIPT_NAME PATH_TRANSLATED: $PATH_TRANS MESSAGE; mail($the_email,$the_subject,$mailcontent,$headers); }//End of the function. ** I get an email...but these 3 values are not passed: Admin: $admin Site: $site Lic no: $lic What am I doing wrong? Thanks, -Ryan -- 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] 3 variables not passing to function!!!????
On Sunday 01 February 2004 11:06, Ryan A wrote: Am going nuts with this, and the manual for user functions is not very helpful either: http://se2.php.net/manual/en/functions.php#functions.user-defined manual Variables Variable scope -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Am I ranting? I hope so. My ranting gets raves. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 3 variables not passing to function!!!????
Oh crap, variable scope:-(( thanks again. -Ryan On 2/2/2004 4:17:40 AM, [EMAIL PROTECTED] wrote: Ryan A wrote: I am getting everything except the 3 variables($admin,$site,$lic), heres my function: *** include_once('PRO-Config.php'); echo $admin; // This was a test to see if I am getting the value from the include..I am. function sendEmail() { [snip] Admin: $admin Site: $site Lic no: $lic -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working with Apache
Yes sounds like you have not read the installation guide. Mark Mark wrote: I am running Apache 1.3.29 and PHP 4.3.3. I installed apache first and got it to work. Then, I install the php installer and and copied the windows binary files. I followed the instruction to run as a module and I even uninstalled the php files and tried to run PHP as just a CGI binary, both methods failured. I created a test php script called hello.php and the web page was blank when I tried to access it. I could view the code... Any ideas? I am running WIN 2K server sp4. Thanks in adavnce - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] search.php
I found this script. I would like to modify it so it searches in not just the current directory, but also any other subdirectories. There are maybe better scripts out there, but I like this one for its simplicity. Can anyone lend a hand please? John ?php $counter=1; $not_found=0; $which_one=.; // use a . to search in this directory, or type in the folder name $link = www.glquebec.org; // this is your base url //$search_for=Search for something here!!!; // comment this whole line out if you are using a form to search $search_for=nice word; $directory = opendir($which_one); while($file = readdir( $directory)){$file_ar[] = $file;} foreach( $file_ar as $file ) { $type= strrchr($file,'.'); $name=$which_one; $name.=/; $name.=$file; $file_name=fopen($name,r); $bleh =; #if ($type==.php || $type==.txt || $type==.html) #if ($type==.htm || $type==.txt || $type==.html) if ($type==.htm || $type==.html) { while ((!feof($file_name))) { $bleh .= fgets($file_name , 2); } $bleh = strtolower($bleh); $bleh = stripslashes($bleh); $bleh = str_replace(br, , $bleh); if (stristr($bleh,$search_for)) { echo $counter .) a href=$link.$name..$link.$name./abr; echo \...; $bingo = strstr($bleh, $search_for); $bingo = explode ( , $bingo); echo b$bingo[0]/b; for ($x=1;$x15;$x++) echo $bingo[$x] ; echo ...\brBr; $counter++; $not_found=2; } else{} } fclose($file_name); } if ($not_found==0) { echo Sorry... $search_for was not found!!!Br a href=javascript:history.go(-1)Search Again/a; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] search.php
John, since you're looking to modify this script and not build your own or search for another, here's some tips on how one might go about doing this. 1) set $which_one to the directory you want to search. 2) create a recursive funtion (many on php.net) to get all subdirectories under it and build an array with their paths as the elements. 3) now, take that arrary and add a foreach before the line $directory = opendir($which_one); replacing $which_one with your foreach array element. This is the *easy* way that I can think to do this - just do it for each subdir in the array. It probably is far from the most elegant way, but offers the least amount of real editing/manipulation. I welcome any/all flaming for my suggestion :) -M -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Sunday, February 01, 2004 12:09 AM To: [EMAIL PROTECTED] Cc: John Taylor-Johnston Subject: [PHP] search.php I found this script. I would like to modify it so it searches in not just the current directory, but also any other subdirectories. There are maybe better scripts out there, but I like this one for its simplicity. Can anyone lend a hand please? John ?php $counter=1; $not_found=0; $which_one=.; // use a . to search in this directory, or type in the folder name $link = www.glquebec.org; // this is your base url //$search_for=Search for something here!!!; // comment this whole line out if you are using a form to search $search_for=nice word; $directory = opendir($which_one); while($file = readdir( $directory)){$file_ar[] = $file;} foreach( $file_ar as $file ) { $type= strrchr($file,'.'); $name=$which_one; $name.=/; $name.=$file; $file_name=fopen($name,r); $bleh =; #if ($type==.php || $type==.txt || $type==.html) #if ($type==.htm || $type==.txt || $type==.html) if ($type==.htm || $type==.html) { while ((!feof($file_name))) { $bleh .= fgets($file_name , 2); } $bleh = strtolower($bleh); $bleh = stripslashes($bleh); $bleh = str_replace(br, , $bleh); if (stristr($bleh,$search_for)) { echo $counter .) a href=$link.$name..$link.$name./abr; echo \...; $bingo = strstr($bleh, $search_for); $bingo = explode ( , $bingo); echo b$bingo[0]/b; for ($x=1;$x15;$x++) echo $bingo[$x] ; echo ...\brBr; $counter++; $not_found=2; } else{} } fclose($file_name); } if ($not_found==0) { echo Sorry... $search_for was not found!!!Br a href=javascript:history.go(-1)Search Again/a; } ? -- 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] search.php
Mike, :) Could you show me how, or an example. This is why I went searching for one. I haven't the slighest where to start, but am willing to learn. I have toyed with $which_one, but it does not recurse sub-directories. Thanks, John John, since you're looking to modify this script and not build your own or search for another, here's some tips on how one might go about doing this. 1) set $which_one to the directory you want to search. 2) create a recursive funtion (many on php.net) to get all subdirectories under it and build an array with their paths as the elements. 3) now, take that arrary and add a foreach before the line $directory = opendir($which_one); replacing $which_one with your foreach array element. This is the *easy* way that I can think to do this - just do it for each subdir in the array. It probably is far from the most elegant way, but offers the least amount of real editing/manipulation. I welcome any/all flaming for my suggestion :) -M -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Sunday, February 01, 2004 12:09 AM To: [EMAIL PROTECTED] Cc: John Taylor-Johnston Subject: [PHP] search.php I found this script. I would like to modify it so it searches in not just the current directory, but also any other subdirectories. There are maybe better scripts out there, but I like this one for its simplicity. Can anyone lend a hand please? John ?php $counter=1; $not_found=0; $which_one=.; // use a . to search in this directory, or type in the folder name $link = www.glquebec.org; // this is your base url //$search_for=Search for something here!!!; // comment this whole line out if you are using a form to search $search_for=nice word; $directory = opendir($which_one); while($file = readdir( $directory)){$file_ar[] = $file;} foreach( $file_ar as $file ) { $type= strrchr($file,'.'); $name=$which_one; $name.=/; $name.=$file; $file_name=fopen($name,r); $bleh =; #if ($type==.php || $type==.txt || $type==.html) #if ($type==.htm || $type==.txt || $type==.html) if ($type==.htm || $type==.html) { while ((!feof($file_name))) { $bleh .= fgets($file_name , 2); } $bleh = strtolower($bleh); $bleh = stripslashes($bleh); $bleh = str_replace(br, , $bleh); if (stristr($bleh,$search_for)) { echo $counter .) a href=$link.$name..$link.$name./abr; echo \...; $bingo = strstr($bleh, $search_for); $bingo = explode ( , $bingo); echo b$bingo[0]/b; for ($x=1;$x15;$x++) echo $bingo[$x] ; echo ...\brBr; $counter++; $not_found=2; } else{} } fclose($file_name); } if ($not_found==0) { echo Sorry... $search_for was not found!!!Br a href=javascript:history.go(-1)Search Again/a; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php