Re: [PHP] Re: hello
Daniel Brown wrote: In any case, as Nate R. mentioned, Linux is just as susceptible to viruses, worms, and other malware. My belief is that it's not so much an attack on an Evil Empire[TM] of software, but that, if BeOS or RISC were the single-most popular operating systems in the world, Windows wouldn't get the misguided attention it gets. Hey all, From my reading I get the impression that the above statement, "Linux is just as susceptible to viruses, worms, and other malware", is inaccurate. Here are some links to good articles written by far more qualified individuals than myself. http://nnucomputerwhiz.com/linux-virus.html http://linuxmafia.com/~rick/faq/index.php?page=virus#virus3 Full disclosure: I run Ubuntu Linux for workstations, FreeBSD Unix for servers, and have a Mac running OS X for testing Safari, and use Windows only for testing IE and specific Windows software. I much prefer a well set up *Nix system to Windows any day. Skip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] First steps towards unix and php
Hey Frank, My vote is for Ubuntu Linux, and the easiest way to get a PHP development environment going is by installing XAMPP. http://www.ramanean.com/installing-xampp-on-ubuntu/ Keep in mind that XAMPP is not a production environment install, but good for development and educational purposes. If you have other questions feel free to email me directly. Skip Frank Stanovcak wrote: I've been a microshaft punk for some time now, and am just getting ready to try to step over to unix on one of my own boxes. Does anyone have any suggestions on which flavor would be a good idea to start with? I'm looking mostly for compatibility with php, mysql, and other web based programming languages. Thanks in advance! Frank -- === Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hello
Hey Daniel, It seems that most of your points of disagreement stem from the potential for poor system administration by homo sapiens (and other primates who might have access to a console), but I still think that from a pure design and implementation perspective, *nix systems are more secure for the reasons the articles point out. Certainly any system can suffer reduced security through laziness or poor administration. I mean, how many amateur system administrators respond to "I have a permissions problem" with "chmod 777 *"? But do you not think the permissions issues with who can run what on *nix versus XP makes it more secure? Daniel Brown wrote: I certainly wish there were more like you! If only that woman who lives down the block would give me the opportunity to make her say that... *sigh*. -- === Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hello
Hey, Well, I find the points that *nix by default restricts users to their own executables and Windows allows anyone to run any program (has this changed with Vista? I don't follow MS too closely) to be a major reason by default, as installed, *nix systems are more secure. I would also bet that as/if MS loses it's monopoly on the desktop the type of vulgar, socially dysfunctional people who should be viscously beat that write malware will begin to focus on *nix systems and it will become an issue for us cool people as well. Incidentally, I think building their OS on FreeBSD was about the smartest thing the Apple/Mac people ever did. Skip Robert Cummings wrote: On Thu, 2009-01-08 at 13:43 -0500, Daniel Brown wrote: On Thu, Jan 8, 2009 at 13:41, Robert Cummings wrote: On Thu, 2009-01-08 at 13:31 -0500, Daniel Brown wrote: On Thu, Jan 8, 2009 at 13:24, Robert Cummings wrote: "Just as susceptible"?? Please refer me to some resources where I can verify this statement. http://marc.info/?t=10016019247&r=1&w=2 Meaning, "read the rest of the thread and send shortbread recipes to your friend, Dan, instead of just reading the first couple of messages and determining that you know the context of the entire conversation." ;-P I've been reading the entire thread. As for the shortbread recipe... my wife says she can't find it... but as a consolation here's a tasty alternative shortbread recipe we really like: http://www.interjinn.com/download/recipe.shortbread_melts.png Cheers, Rob. -- === Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hello
You could also fill all empty space in the case with a polyurethane sealing compound for added security, and then bury it in the back yard. Dang, I could make big bucks as a security consultant! I'm adding this to my resume! Skip c...@l-i-e.com wrote: Fact is if you want to be secure just disconnect you're machine from the internet, remove cd/dvd/floppy drives and unplug the keyboard. You forgot to cut the internal USB cables. :-) -- === Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hello
Nathan Rixham wrote: if it's a computer thats on, with an os, a keyboard and a network card connected to the internet it's insecure. Well of course. That's like saying if it's alive it's dying. But the question was are *nix systems more secure than Windows, and I think even Daniel agrees that "out of the box" installs *nix systems are inherently more secure because of the way they handle users and permissions to executables. Daniel seemed, and he can correct me if I'm wrong, that more vulnerabilities are introduced via the human factor until any system can be rendered at risk. -- === Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hello
Ashley Sheridan wrote: think about it for a minute; an OS can either be secure (0 vulnerabilities) or insecure (1 or more vulnerabilities); as all OS's have 1 or more vulnerabilities they are all equally insecure; because they are all insecure. What you are saying, in real world terms, not your Binaryland, is that if OS A has 2 vulnerabilities that not many people now about, and OS B has a whole slew of the posted all over the web that they are both equally insecure. Or, for another analogy, you're saying that because all cars can either be sitting still or moving then they are all equally fast. -- === Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: First steps towards unix and php
Ross McKay wrote: You should also check out editors and IDEs - STFW for previous posts made to this and other groups. Then pick Geany ;) Hey Ross & all, I used Kate on Ubuntu for a code editor. I just read through a bit about Geany (was not familiar with it), but don't see too much more it would do for me than Kate. What are some of your favorite features of Geany I should be aware of? -- ======= Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hello
Nathan Rixham wrote: Or, for another analogy, you're saying that because all cars can either be sitting still or moving then they are all equally fast. no, more like your car has a window missing, another car has no locks, and mine has no door; which is the most insecure? The one parked in a bad neighborhood. -- === Skip Evans Big Sky Penguin, LLC 503 S Baldwin Street Madison, Wisconsin 53703 608.250.2720 http://bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FirePHP -- pretty cool
Hey all, I'm sure many of you use Firebug in Firefox for help debugging, and some of you also no doubt know about FirePHP, the PHP class that let's you write logs to the Firebug console. In case you don't know about it, Joe Bob Briggs says, "Check it out." I just installed and it's pretty cool. http://www.firephp.org/ Very easy install and set up: you basically include on PHP file and you're off to the races. I wrote a quick wrapper function that takes a string and outputs it to the Firebug console and am finding it pretty helpful. I think it's especially useful if you write a lot of AJAX calls that don't allow easy output of debug statements. Would like to hear other opinions of this little tool. -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, Wisconsin 53703 608-250-2720 http://bigskypenguin.com "Those of you who believe in telekinetics, raise my hand." -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FirePHP -- pretty cool
Hey Nitsan & all, I haven't been through it all, I just installed the plug in and download the file to include and started using it. I would imagine you have to use their log function to get any output, but it seems like the kind of thing that could be left in the code without any ill-affect. I wrote a wrapper in my global functions file, and I suppose if I wanted to turn it off I'd just have that function return at the top. So far I'm finding it useful and easy enough to use. If you don't want to change your code I would imagine something like xdebug would be the next step. Skip Nitsan Bin-Nun wrote: I'm using FireBug 24/7/365 and I also knew FirePHP before but I never tried it or had any experience with it that I can share. There are any other options and functions that FirePHP gives which not require you to involve changing your code? Nitsan On Sun, Jan 11, 2009 at 6:46 PM, Skip Evans <mailto:s...@bigskypenguin.com>> wrote: Hey all, I'm sure many of you use Firebug in Firefox for help debugging, and some of you also no doubt know about FirePHP, the PHP class that let's you write logs to the Firebug console. In case you don't know about it, Joe Bob Briggs says, "Check it out." I just installed and it's pretty cool. http://www.firephp.org/ Very easy install and set up: you basically include on PHP file and you're off to the races. I wrote a quick wrapper function that takes a string and outputs it to the Firebug console and am finding it pretty helpful. I think it's especially useful if you write a lot of AJAX calls that don't allow easy output of debug statements. Would like to hear other opinions of this little tool. -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, Wisconsin 53703 608-250-2720 http://bigskypenguin.com "Those of you who believe in telekinetics, raise my hand." -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- == Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, Wisconsin 53703 608-250-2720 http://bigskypenguin.com "Those of you who believe in telekinetics, raise my hand." -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend (or other) Framework...where to start?
John Corry wrote: For the new-to-frameworks, is there a better/easier framework to use that will streamline the development process from the beginning? I've been using my own I developed from the ground up for the past couple years, but have recently looked at cakePHP and I think it might be good for some new to frameworks. Drupal is awfully popular, but I've only glanced at it and get the impression there's a bit of a steep learning curve. I'd be very interest to hear what others think of both of these. -- ====== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, Wisconsin 53703 608-250-2720 http://bigskypenguin.com "Those of you who believe in telekinetics, raise my hand." -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
Wow, Tony, do you think in the future you could try to express yourself with just a bit more civility and in a less condescending tone? Nathan expressed some thoughts he had, politely, and when out of his way to come across in a non-critical and non-confrontational manner. Tony Marston wrote: Absolute rubbish! There's just no need to insult other list members like this. Frankly, it's this kind of treatment that make these lists less productive than they could be. It intimidates less experienced programmers from asking good questions, lest they get treated the way Nathan was. And isn't helping out less experienced coders one of the reasons this list exists? And it also makes others less inclined to participate, or drop off the list entirely. It's NOT just so we can blast each other and show off our highly dubiously assumed superiority. With all the frustrations we put up with in our daily lives, I would hope a list like this, especially since we are among colleagues, could be a place we could at least cautiously expect to be treated with respect. -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
I will be brief. Tony is a dick. Peace & Love, Skip Tony Marston wrote: "Skip Evans" wrote in message news:49723137.2010...@bigskypenguin.com... Wow, Tony, do you think in the future you could try to express yourself with just a bit more civility and in a less condescending tone? Nathan expressed some thoughts he had, politely, and when out of his way to come across in a non-critical and non-confrontational manner. Tony Marston wrote: Absolute rubbish! There's just no need to insult other list members like this. Saying that someone's ideas are absolute rubbish is not an insult. Calling him a moron would be, but I did not. Frankly, it's this kind of treatment that make these lists less productive than they could be. And you think that his ideas for changing PHP to suit his particular programming style would be productive? I think not. It intimidates less experienced programmers from asking good questions, What makes you think that he is an inexperienced programmer? What makes you think that these are good questions? He is saying that he doesn't like the way that PHP works and wants it changed to suit his personal needs. lest they get treated the way Nathan was. And isn't helping out less experienced coders one of the reasons this list exists? And it also makes others less inclined to participate, or drop off the list entirely. If it stops feeble minded people from filling this forum with useless requests then surely that's a good thing? Personally I'm sick and tired from reading posts such as this which say "I'm used to language X, and my feeble brain cannot cope with the differences, so why can't PHP be changed to behave like language X?" It's NOT just so we can blast each other and show off our highly dubiously assumed superiority. With all the frustrations we put up with in our daily lives, I would hope a list like this, especially since we are among colleagues, could be a place we could at least cautiously expect to be treated with respect. Then the OP should respect PHP for what it is, and not request changes that would make it unusable for 99.999% of the millions of programmers who have already written millions of programs with it. PHP is successful because of the way it works, and changing the way it works, as suggested by the OP, would not make it more successful. On the contrary, I think that it would PHuck it up completely. But that's just my opinion. -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Project management systems
Hey all (except Tony), I've been using dotProject for a few years now and have been quite happy with it, and have written my own invoicing module, and a few other mods for the way I track hours for subcontractors, etc. But it has trouble with MySQL 5 and from the Googling I've done it doesn't seem likely it will be fixed soon. Besides, I've hacked my install up quite a bit and if I were to upgrade there'd trouble 'a foot, ya'll. I'm considering switching to something else, and the start of a new year would be a good time since my subs have all been given their 10-99s so I can start fresh. Suggestions for a PHP based PM system? I'd like to be able to make mods so PHP is the logical choice since it's the language I know best, and as Tony will tell you, it's perfect and doesn't need no feeble minded Java guys trying to improve it. Basic requirements are time tracking for multiple coders, generating invoices per project based on start and end date (I bill the 15th and last day of each month). Gee, I guess that's the basics. Thoughts, opinions, corrections to grammar? -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
You're right, and as soon as you apologize to Nathan for calling him feeble minded (and promise to adjust your attitude) I will apologize to you. I also think it would be a good idea for you to address the rest of the list and assure everyone you will try to be more polite in the future. Skip PS. And then adopt an abandoned puppy. Tony Marston wrote: "Skip Evans" wrote in message news:49733d18.6080...@bigskypenguin.com... I will be brief. Tony is a dick. To quote your own words: "There's just no need to insult other list members like this." -- ======== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Project management systems
Hey Pfffster & all, D'oh! Should have gone there first. Found this one that looks interesting. IT Project Guide- Project Management http://sourceforge.net/projects/itpgpm/ Web based Client and Team project management tool. Utilizes PHP, MySQL and JQuery. Has Company, Project, Task, Forum and Files modules and associated Gantt charts. Based on dotProject and Web2Project. Reduced complexity with the focus on ease of use. I'll download it and give it a spin. Hope this baby handles good in town. Skip Phpster wrote: There are a number on sourceforge.net that are worth looking at Bastien Sent from my iPod -- ======== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Project management systems
Hey Nathan and all, (even Tony, kisses big T!) I decided, rather quickly, on this one. http://itprojectguide.org/ It's dotProject based with apparent upgrades to work with MySQL 5 and jQuery so that it has some nice AJAX functionality where dP would keep you waiting on whole page refreshes. The developer is very responsive to the minor issues I've had, so I'm going to probably keep it and import my custom modules from dP into it. Skip Nathan Rixham wrote: Skip Evans wrote: Hey all (except Tony), treat others how you want them to treat you *passes all his biscuits* - yet lol. I've been using dotProject for a few years now and have been quite happy with it, and have written my own invoicing module, and a few other mods for the way I track hours for subcontractors, etc. condolences But it has trouble with MySQL 5 and from the Googling I've done it doesn't seem likely it will be fixed soon. Besides, I've hacked my install up quite a bit and if I were to upgrade there'd trouble 'a foot, ya'll. maybe you'd be best fixing it yourself OR not upgrading to mysql 5? I'm considering switching to something else, and the start of a new year would be a good time since my subs have all been given their 10-99s so I can start fresh. really.. good luck and please let me know what you choose Suggestions for a PHP based PM system? I'd like to be able to make mods so PHP is the logical choice since it's the language I know best, and as Tony will tell you, it's perfect and doesn't need no feeble minded Java guys trying to improve it. . Basic requirements are time tracking for multiple coders, generating invoices per project based on start and end date (I bill the 15th and last day of each month). Gee, I guess that's the basics. Thoughts, opinions, corrections to grammar? not every ones cup of tea but rally agile development [http://www.rallydev.com/] if you don't do anything else with this link please watch this: http://www.rallydev.com/5601_Rally_15.html than consider what you want from a project management system. in all honesty though, no I can't - none seem to fit the bill completly and in every place I've ever worked, and personally, picking a good project management system has always been a major stumbling block / problem -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connection error on URI
Hey all, I'm working on someone else's code that tries to read an XML transaction from a remote server with the following code. $url="http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=".$user_sass; // $url = urlencode($url); $xml_response = file_get_contents($url, true); But this transaction times out and returns an empty transaction, even with the call to urlencode, which I tried as a quick fix. If I paste the identical transaction into a browser it works fine. Any suggestions would be greatly appreciated. Peace, Love & Curly Fries, Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Connection error on URI
Here's the output with the call to error_reporting(255); in place. Calling Sassnet... Warning: file_get_contents(http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=59) [function.file-get-contents]: failed to open stream: Connection timed out in /usr/sites/sassnet.com/members/www/url_test.php on line 6 I think the issue is not programming, but might be that the target server is not accepting requests from calling server. Skip Jan G.B. wrote: 2009/1/28 Skip Evans : Hey all, $url="http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=".$user_sass; $xml_response = file_get_contents($url, true); But this transaction times out and returns an empty transaction, even with the call to urlencode, which I tried as a quick fix. If I paste the identical transaction into a browser it works fine. Please call error_reporting(255); before your http-request starts, then post the error message you get. bye -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] frameworks
Nitsan Bin-Nun wrote: I usually uses CI, just because it is written in PHP4 and in about 50% of the servers in Israel there is no PHP5 :X I am just curious. Why is PHP 5 so rare there? -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] frameworks
Nitsan Bin-Nun wrote: In Israel most of the servesr run centos I first came across centos a few years back at a client's hosting facility and had never heard of it before, though it seems to have a large install base. I heard it's a free version of Enterprise Redhat??? Not sure, though, didn't follow up. "Give me Debian or give me death!" Nah,not really, I jus' LOVES my FreeBSD... but Linux is cool too, what I run on workstations. -- ======== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Appending query result sets?
Hey, Is it possible to append a result query from one call to mysql_query() to the end of another if the specified fields are identical? Something like that would accomplish ths? $r1 = mysql_query('some sql'); $r2 = mysql_query('some sql'); $r3 = $r1.$r2; I suppose they could be read into an array then output that way, but I was hoping to more easily just append the result sets. Thanks, Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Appending query result sets?
Ashley Sheridan wrote: Can you not take this to the SQL itself, like maybe using some form of join on the query. I've been trying that, and frankly gave up, being whipped into submission and having to admin I'm not an expert DBA, but I hesitated to post the queries lest I be flamed for posting off-topic. -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Appending query result sets?
Oh, yeah, that's fine. I knew I could od it with arrays, but also looked to see if there was any way to just do an append, and I also need to sort them as well, so maybe I better get back to figuring out a join. Skip Ashley Sheridan wrote: On Sun, 2009-02-08 at 12:37 -0600, Skip Evans wrote: Ashley Sheridan wrote: Can you not take this to the SQL itself, like maybe using some form of join on the query. I've been trying that, and frankly gave up, being whipped into submission and having to admin I'm not an expert DBA, but I hesitated to post the queries lest I be flamed for posting off-topic. -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut Well if a join is not an option, what about something like this: $r1 = mysql_query('some sql'); $r2 = mysql_query('some sql'); $results = Array(); while($row = mysql_fetch_array($r1)) { $results[] = $row; } while($row = mysql_fetch_array($r2)) { $results[] = $row; } Ash www.ashleysheridan.co.uk -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Submitting URLs in IE
Hey all, I have an application that uses AJAX to submit a page created in the FCKeditor. It builds a URL and then submits that to the server with a JavaScript call like this: req.open('GET', url, false); In Firefox it works great for just about any size page you could want, but IE just stops on even medium size pages. Is this some kind of limitation in IE that can be increased with a registry setting or something? Any suggestions would be helpful, as I am a bit perplexed. Would using POST rather than get to submit the URL to the server handle more data? -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] AJAX with POST
Hey all, At the risk of being told this is a PHP and not a JS list, but also knowing the discussions on this list, to the benefit of all I believe, very wildly, I'm posting this JS code snippet for some advice. As I posted earlier, my AJAX app that uses a GET to post to the server (and get a response), fails on IE with larger data, so I thought I'd take a shot at writing a POST function, but so far I can get it to get the data back, but the problem is by the time the data has come back the function has already returned null back to the calling function. What I need this function to do is wait for the data to come back and then send it back to caller. Here's the function. Any advice would be greatly appreciated. (The code to get the appropriate object per browser has been omitted.) http.open("POST", url, true); //Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", url.length); http.setRequestHeader("Connection", "close"); http.send(url); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { alert('['+http.responseText+']'); return (http.responseText); } } -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] AJAX with POST
Hey Bastien & all, ...D'oh! Thanks for the catch, yes, I am sending args on the URL. But more to my problem, if I switch to POST will IE be able to submit more data? If so, I can parse the URL down in the function and build a proper post transaction, but my real problem is IE can't submit, apparently, more than 2K through a GET. Do you know if POST can handle more? Thanks tons for your reply! Skip PS. I'd very interested in seeing your set of functions. Phpster wrote: On Apr 4, 2009, at 17:30, Skip Evans wrote: Hey all, At the risk of being told this is a PHP and not a JS list, but also knowing the discussions on this list, to the benefit of all I believe, very wildly, I'm posting this JS code snippet for some advice. As I posted earlier, my AJAX app that uses a GET to post to the server (and get a response), fails on IE with larger data, so I thought I'd take a shot at writing a POST function, but so far I can get it to get the data back, but the problem is by the time the data has come back the function has already returned null back to the calling function. What I need this function to do is wait for the data to come back and then send it back to caller. Here's the function. Any advice would be greatly appreciated. (The code to get the appropriate object per browser has been omitted.) http.open("POST", url, true); //Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", url.length); http.setRequestHeader("Connection", "close"); http.send(url); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { alert('['+http.responseText+']'); return (http.responseText); } } -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Skip, You didn't show the code to build the url variable but I would assume that since you started with a get method you are tacking data onto the end of the URL that is the called Ajax page. I had the same issue at work correcting the VP's mistake of mixing up post and get in his ajax call. The trick is to build the data separately from the URL and pass it. I do an ajax.open(URL) then an Ajax. Send(data) to send just the data. I can post my entire function set if you want. Bastien -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: AJAX with POST
But my function using GET does seem to wait. Granted I cobbled it together from various samples and didn't author it from my own deep understanding of the exact process, but here's the snippet that does the real work. req.open('GET', url, false); req.send(null); if(req.responseText) { if(req.responseText.substring(0,7) == 'debug!!') { alert(req.responseText.substring(7)); } } return(req.responseText); It seems to wait until it has data to return, because it works perfectly. I can send it a URL from another function and get the data back from server to the function as expected. The only part of it I'm unsure of is this: req.send(null); What does that do? As I said, I cobbled this function from examples, got it working, and presto, was off and running. Skip Brad Broerman wrote: Well, as the "A" in Ajax is asynchronous, there's no real way to make it wait. What you would normally do is use a callback: function createXHRObject( ) { if (typeof XMLHttpRequest != "undefined") { return new XMLHttpRequest(); } else if (typeof ActiveXObject != "undefined") { return new ActiveXObject("Microsoft.XMLHTTP"); } else { throw new Error("XMLHttpRequest not supported"); } } function sendAjaxRequest( websvcurl , params, callbackFn ) { var xhrObject = createXHRObject(); xhrObject.open("POST", websvcurl, true); xhrObject.onreadystatechange = function() { if (xhrObject.readyState == 4) { if( xhrObject.responseXML != null ) { callbackFn (xhrObject.responseXML); } } } xhrObject.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhrObject.setRequestHeader("Content-length", params.length); xhrObject.setRequestHeader("Connection", "close"); xhrObject.send(params); } -Original Message- From: Skip Evans [mailto:s...@bigskypenguin.com] Sent: Saturday, April 04, 2009 5:30 PM To: php-general@lists.php.net Subject: AJAX with POST Hey all, At the risk of being told this is a PHP and not a JS list, but also knowing the discussions on this list, to the benefit of all I believe, very wildly, I'm posting this JS code snippet for some advice. As I posted earlier, my AJAX app that uses a GET to post to the server (and get a response), fails on IE with larger data, so I thought I'd take a shot at writing a POST function, but so far I can get it to get the data back, but the problem is by the time the data has come back the function has already returned null back to the calling function. What I need this function to do is wait for the data to come back and then send it back to caller. Here's the function. Any advice would be greatly appreciated. (The code to get the appropriate object per browser has been omitted.) http.open("POST", url, true); //Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", url.length); http.setRequestHeader("Connection", "close"); http.send(url); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { alert('['+http.responseText+']'); return (http.responseText); } } -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] file_get_contents for URLs?
Hey all, I'm doing some maintenance work on an existing system and there is a piece of code that uses file_get_contents() to read data from a URL, which is fine in theory I suppose. But the problem is sometimes the server where that URL lives is not available, and the system hangs indefinitely. Shouldn't this be done with curl, and if so can it be done so that the call will time out and return control back when the server is not available? Any other recommendations? I just came across this code and it's one of the client's biggest complaints. -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] https and Credit Cards
Hey all, I've always put any forms that collect credit card information behind a secure connection, https, figuring that sending that information from the client browser to the server should be secure, but I'm having convincing a client that it is necessary. He instead insists that only the call to the credit card processor's server needs to be secure and of course the processor supplies the connection there. But doesn't also the form need to be secure since you're sending CC information from that form back to the web site's server? That's what I've always assumed. I need some opinions on this, and if I'm right I think the client will defer to a few more votes. -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Expression Engine
Hey all, Anyone have any experience with Expression Engine? I have a new client that wants me to use it to build a site and I must say I am rather underwhelmed. But I happen to be one of those people that believe in developing your own lightweight framework you know yourself inside and out and building upon that for new sites. I find the learning curve, combined with inherent limitations of systems like this to take all the fun out of coding and project development... and make me want to become an insurance salesman. Thoughts on Expression Engine for those of you with exposure to it? Thanks, Skip -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems with HTTPS and maybe an .htaccess???
Hey all, A while back I asked about forms that take credit card info and https. I have always put such forms behind SSL, but a site I have been asked to do maintenance work on did not, and after responses from the list and at my recommendation they installed an SSL and I modified the code to call https when it hits that form, so that part is okay. But now I have a problem implementing this on their development site, which is just a duplicate code base inside a directory public_html/_dev and a domain name dev.sitename.com, instead of sitename.com. The problem is, and I believe it may be the .htaccess file, redirecting the https pages to the live site. In other words, I'm trying to test something on the dev site in the shopping cart, but when I click a button that takes it to the CC form, hence https, although the URL says, https://dev.sitename.com/... I can tell it is actually on the live site because the code that executes is the old code on the live site, not the new code on the development server. I suspect the .htaccess file, which looks thusly... AddHandler application/x-httpd-php5 .php Options +FollowSymLinks IndexIgnore */* # Turn on the RewriteEngine RewriteEngine On # Rules RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php Now I'm no expert at these rewrite rules, and sometimes have to take several Valium, a shot of vodka, and weep for hours after working with them (okay, that was a bit of hyperbole), but it looks like any URL it cannot identify gets routed to index.php, and that is because index.php evaluates and processes URLs like sitename.com/shirts/mens/ ... and so forth. Question is, am I on the right track suspecting the rewrite rule for redirecting the https pages to the live site, and if so, anyone see a fix for this? Again, hyperbole aside, I'm no expert at rewrite rules. Much thanks. Any help, as always, is greatly appreciated. Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with HTTPS and maybe an .htaccess???
Hey all, No, adding * after the period had no affect at all. Still goes to the live site. Any other ideas? I'm stumped, desperate and on the verge of requiring medication. Skip Alex S Kurilo aka Kamazee wrote: RewriteRule . index.php Add an asterisk after the dot: RewriteRule .* index.php -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Software to read/write Excel to CD?
Hey all, I'm inheriting a project that was unsuccessfully off-shored and is now in such bad shape (I've seen the code. It's awful) that they are firing the off-shore company and starting over. One of the things the other company said was possible, and I'm not familiar with... if I understand correctly, is to create a CD with not just an Excel spreadsheet, but software on that CD that when placed in another computer will open the spreadsheet, allow it to be modified and rewritten back to the CD. This is part of the requirements. Does anyone know of such software and its name? Thanks, Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SQL help?
Hey all, I have a SQL requirement I'm not quite sure how to compose. I have two tables, shows, and shows_dates. It's a one to many relationship where there is a single entry in shows and multiple entries in shows_dates that list each date and time for a play production for a run of entries in shows, like I need a query that will read each record in shows, but I only want the first record from shows_dates, the first one sorted by date, so I can display all shows in order of their opening date. Not sure how to grab just the first record from shows_dates though. Hint, anyone? Thanks, Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PCI compliance issue
Hey all, Some may remember my question awhile back about ensuring all CC forms are behind https. I've always put them so, but I've taken over maintenance on a site that did not and have since corrected the problem. Now the client is going for PCI compliance as a requirement by their credit card processor and we have been dealing with issues determined risks by Security Metrics, most which were legit (except one thinking IIS was running on a Linux server!), but this one has me scratching my head. The original programmer created the following in the system's .htaccess file: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php ...which sends any incorrect URL to the home page, correct? But Security Metrics, as part of their test ran two URLs through the system that while both displaying the home page had different things in the header, which they flagged as an issue. Here is there explanation below, but my question is, why is this considered a security risk, and what suggestions might some of you have to correct it? Thanks much! Skip -- The reason why this issue is being flagged is simply that both links should bring you to the same page but if look at the HTTP header response (http://www.ranghart.com/cgi-bin/?D=A) it returns a 403 forbidden even though it still takes you to the main site page, with the other URL (http://www.ranghart.com/cgi-bin/%3fD=A) it is returning a 200 OK when it is the same page as the URL that is returning a 403. You will need to make sure that the pages are responding in the same way to correct this issue. - -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Web friendly file names
Hey all, I have a file uploader module that allows users to upload documents and of course people are using all kinds of file names that are not web friendly. I guess the best solution is to replace any non alphanumeric with maybe '_' the underscore? How does that sound? Unfortunately, after 20+ years of coding I cannot get my brain around regular expressions to any decent level of proficiency, I know sad. I'd like to hear other solutions for this problem, I am thinking of a regexp that replaces special chars with the underscore; sounds pretty robust and globally acceptable? Opinions, witticisms, flames, quotations by famous débutantes? (The last is optional) -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web friendly file names
You mean like this? This would work as a good file name to be on the server and link to? $filename = urlencode($_FILES['myfile']['name']); move_uploaded_file($_FILES['myfile']['tmp_name'], $filename); Think that would do the trick? Skip Eddie Drapkin wrote: Why not just urlencode() the filename? (and suggest people use a URL shortening service and/or provide one) On Wed, Jun 3, 2009 at 12:31 PM, Richard Heyes <mailto:rich...@php.net>> wrote: Hi, > I have a file uploader module that allows users to upload documents and of > course people are using all kinds of file names that are not web friendly. > > I guess the best solution is to replace any non alphanumeric with maybe '_' > the underscore? How does that sound? > > Unfortunately, after 20+ years of coding I cannot get my brain around > regular expressions to any decent level of proficiency, I know sad. > > I'd like to hear other solutions for this problem, I am thinking of a regexp > that replaces special chars with the underscore; sounds pretty robust and > globally acceptable? I replace any non alpha chat with a hyphen, then replace two or more hyphens with one. Simple, but I would also include the date so that naming clashes are less likely (if it's applicable). So you might end up with something similar to this: /product/2009/06/03/24ct-gold-earrings Or if using the date is not applicable, you could get something like this: /product/24ct-gold-earrings -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net <http://www.rgraph.net> - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail <http://www.phpguru.org/rmail>) PHP datagrid: RGrid (www.phpguru.org/rgrid <http://www.phpguru.org/rgrid>) PHP Template: RTemplate (www.phpguru.org/rtemplate <http://www.phpguru.org/rtemplate>) PHP SMTP: http://www.phpguru.org/smtp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web friendly file names
Oh, of course that makes sense, and I suppose the PHP move_uploaded_file() function has no problem with weird and crappy file names? Skip Eddie Drapkin wrote: Well, erm, no. I'd store the filename, etc. as-is in the database, and then link it with urlencode() and you should be able to serve a file called "A non friendly name!" site.com/A%20non%20friendly.. <http://site.com/A%20non%20friendly..>.. and a modern webserver should be fine with that, and even most browsers will allow you to type site.com/A <http://site.com/A> non friendly... without the url escaped characters and it will url escape them in the request. The only issue is that the urlencoded special characters are a lot uglier, which may or may not be a consideration for you. On Wed, Jun 3, 2009 at 12:39 PM, Skip Evans <mailto:s...@bigskypenguin.com>> wrote: -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Automated form generation?
Hey guys & gals & all ships at sea, We've been approached by a central office of a relatively large religious denomination that collects data from their member churches in the form of an 11 page questionnaire with a diverse set of questions ranging from multiple choice, essay type, to financial statements. It's currently all hand filled out and then hand typed in to a MS Access database (shudder...). They want to webify it so I'm wondering if anyone has any recommendations on PHP based form generation tools that would speed up the process of form creation and perhaps even the inserts into MySQL. So far I'm looking at phpFormGenerator here http://phpformgen.sourceforge.net/ But it says "beta" which gives me some small pause, and I'm actively browsing for others. Any experience or advice others have here would be greatly appreciated. Any CMS out there that might have a tool for this that would be quick to install and get up and going? Codeigniter have one, any others??? Much thanks, Skip -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Automated form generation?
Hey all, I've read through the cakePHP docs for a potential project once and thought it looked pretty well put together, and liked it, but didn't get any hands on with it. Sounds promising... ...any other comments on Cake for this solution? Skip Shawn McKenzie wrote: Skip Evans wrote: Hey guys & gals & all ships at sea, We've been approached by a central office of a relatively large religious denomination that collects data from their member churches in the form of an 11 page questionnaire with a diverse set of questions ranging from multiple choice, essay type, to financial statements. It's currently all hand filled out and then hand typed in to a MS Access database (shudder...). They want to webify it so I'm wondering if anyone has any recommendations on PHP based form generation tools that would speed up the process of form creation and perhaps even the inserts into MySQL. So far I'm looking at phpFormGenerator here http://phpformgen.sourceforge.net/ But it says "beta" which gives me some small pause, and I'm actively browsing for others. Any experience or advice others have here would be greatly appreciated. Any CMS out there that might have a tool for this that would be quick to install and get up and going? Codeigniter have one, any others??? Much thanks, Skip My first thought was CakePHP. Setup your database and run the cake bake script and you will get all the forms, create, retrieve, update and delete, as well as the PHP models and controllers to do it. Then you just start customizing. -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cross site scripting
Hey all, You may have seen my earlier message about a current client whose site I've taken over maintenance on that is trying to get PCI Compliance from Security Metrics. I've put all the forms behind https and a couple of other things, but this one I don't know how to solve. I'll read up on cross site scripting, but could someone help me understand what they believe the vulnerability is in their notes below? Thanks, Skip Possible cross site scripting on http://www.ranghart.com/index.php Use the following commands to verify this: wp --inject "http://www.ranghart.com/index.php?action=searchkw=SEARCH%22%3E%3Cscript%3Ealert%28123%29%3C% TCP http/https 4 curl -L "http://www.ranghart.com/index.php?action=searchkw=SEARCH%22%3E%3Cscript%3Ealert%28123%29%3C% grep "123" This website may have other injection related vulnerabilities. -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Cross site scripting
Well, the function filter_input(INPUT_GET, 'kw', FILTER_SANITIZE_ENCODED); ...seemed to take care of the example on the report by Security Metrics. Am I on the right track here, at least? I'm reading pages on 'sanitizing PHP input'. Is that where I should be headed? Skip Shawn McKenzie wrote: Skip Evans wrote: Hey all, You may have seen my earlier message about a current client whose site I've taken over maintenance on that is trying to get PCI Compliance from Security Metrics. I've put all the forms behind https and a couple of other things, but this one I don't know how to solve. I'll read up on cross site scripting, but could someone help me understand what they believe the vulnerability is in their notes below? Thanks, Skip Possible cross site scripting on http://www.ranghart.com/index.php Use the following commands to verify this: wp --inject "http://www.ranghart.com/index.php?action=searchkw=SEARCH%22%3E%3Cscript%3Ealert%28123%29%3C% TCP http/https 4 curl -L "http://www.ranghart.com/index.php?action=searchkw=SEARCH%22%3E%3Cscript%3Ealert%28123%29%3C% grep "123" This website may have other injection related vulnerabilities. Well, their example is not correct, try: http://www.ranghart.com/index.php?action=search&kw=SEARCH%3Cscript%3Ealert%28"Im doing some nasty JavaScipt hacking here!"%29%3B%3C%2Fscript%3E in a browser. This means that you're not validating/sanitizing input. You can't just take the contents of a $_GET, $_POST, etc. (any user input) variable and echo it out. -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PEAR Spreadsheet_Excel_Writer setLocked method
Hey all, Any one use the PEAR Spreadsheet_Excel_Writer package? I need to know how to implement the setLocked method to lock out a cell, but can't figure out how this would be done. Do you add it as a format? But then how is it applied to a cell. It's not documented on the PEAR pages. Any help as always is greatly appreciated. Also, what about making a cell span more than one cell below and above it? I can't find a way to do this either. Thanks, Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] aesthetic beauty in conception, execution
Okay, had to chime in here... Jesus Christ, Vampire Hunter See the trailer here http://www.youtube.com/watch?v=4LRIypcaIX4 Skip Bastien Koert wrote: On Thu, Jun 18, 2009 at 1:34 PM, tedd wrote: At 1:16 PM -0400 6/18/09, Paul M Foster wrote: On Thu, Jun 18, 2009 at 12:39:35PM -0400, PJ wrote: American movies, for the most part and what goes with them, are pollution of the senses. My take, of course. ;-) :-P Clear proof you are insane. The Matrix. Alien. Terminator. Star Wars. Star Trek II: The Wrath of Khan. Cannibal Women in the Avacado Jungle of Death. And don't forget my favorite "Queen of Outer Space" staring Zsa Zsa Gabore and a bunch of her friends -- real camp. 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 Jane Fonda as Barbarella remains a cult classic though ;-P -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] aesthetic beauty in conception, execution
I have to to cite one more, but that is actually quite funny and a fun watch, and not only because my nephew plays the FBI agent who gets his face blown off... ...Blood Car...! The plot is great. In the not too distant future, like next week I think it says in the opening, gas is about $75 per gallon so no one drives, but this lofty vegan guy is working on a system that will run his car on wheat juice or some other harmless plant gunk. But then things spin wildly out of control when he discovers his apparatus actually makes his car run on. BLOOD Pretty funny stuff. Plus it was fun watching my nephew's face get blown off... he can be a little jerk some times. Skip PS. Just kidding about my nephew... he's a cool kid. Paul M Foster wrote: On Thu, Jun 18, 2009 at 01:58:26PM -0500, Skip Evans wrote: Okay, had to chime in here... Jesus Christ, Vampire Hunter See the trailer here http://www.youtube.com/watch?v=4LRIypcaIX4 Ohmygosh! That's a *real* movie! Doubtless in the fine tradition of "The Toxic Avenger", but with an even lower budget. Priceless! ;-} Paul -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PEAR Spreadsheet_Excel_Writer setLocked method
Thodoris wrote: I've used it for some time but never needed to lock a cell. Here is a piece of code that shows how to apply a format to a cell: > Hope it helps. I think that by doing something like this: $format_bold->setLocked(); while creating the format could do the trick but it is not tested. No, this didn't do it. I already have some formats I've created for dollar amounts, right align, etc, and applying the setLocked() method to them had no affect. Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Language translation
Hey all, We got a new project and language translation of content is a major priority. I've googled around and seen lots of options, but I'd like to hear from the list about more real world experiences about what some of you found and what both you as a coder and the client were most satisfied with. Big Hugs, Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] JS alert that links to a file
Okay, I know I've done this before, but now I'm blanking out. I have code that creates a CSV file, and when it's done I want a JS alert to pop up and let them save the file. Isn't this some kind of alert() type call on the JS side??? I know I've done this before and I've been on Google an hour now! -- ======== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Saving server side file to local machine with JS
Sorry, I should have been clearer. When PHP finishes creating the file I need one of the JS alert type windows to appear that says.. "Your file has completed, would you like to save it to your machine?" Like you get when you download a file. If I knew the JS code to do this I perhaps could embed it in the PHP at the end of the function that creates the file??? Is that clearer? Thanks, Skip Paul M Foster wrote: > On Sun, Jul 26, 2009 at 09:55:14PM -0500, Skip Evans wrote: > >> Okay, I know I've done this before, but now I'm blanking out. >> >> I have code that creates a CSV file, and when it's done I want >> a JS alert to pop up and let them save the file. >> >> Isn't this some kind of alert() type call on the JS side??? >> >> I know I've done this before and I've been on Google an hour now! > > Not sure I understand your question, but there is a function called > alert() in javascript. It opens a window with your error message in it. > > I don't know of a way to trigger this from PHP, since PHP is server-side > and Javascript is client-side. You might be able to have javascript scan > for the existence/closing of the file in question and then alert the > user. Or you could have PHP, when the file is complete, launch a new > page which contains the javascript code to alert the user. > > Paul > -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] JS alert that links to a file
LinuxManMikeC wrote: Okay, right, I remember this. But it has to be in it's own file, otherwise you get the 'headers already sent error', right? Is there any way around that? Any way to get it right at the end of where the file is created??? Thanks! Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] JS alert that links to a file
Hey all, With LinuxMan's help I got this working. It was a bit tricky as it's an AJAX environment, but what I did was create a separate page with code similar to what he has below and then call it from the JS side and it works great. Thanks all, and especially LinuxManMikeC for the key! Skip Skip Evans wrote: LinuxManMikeC wrote: Okay, right, I remember this. But it has to be in it's own file, otherwise you get the 'headers already sent error', right? Is there any way around that? Any way to get it right at the end of where the file is created??? Thanks! Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Asterisk anyone?
Hey, I've been asked to write a simple couple of public pages that would let an Asterisk customer modify their account configuration, but the client has no idea how Asterisk stores its data, apparently not in MySQL. Anyone know of any resources for accessing Asterisk from PHP? If anyone has done this can you tell me if I'm on the right track here? http://www.voip-info.org/wiki/view/Asterisk+AGI+php#PHPTipsandExamples -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Asterisk anyone?
Per Jessen wrote: Depends on which data we're talking about. Asterisk is very flexible. For example, the first screen they want people to be able to change data on is: call waiting,do not disturb and then it looks like numbers (forwarding?) unconditional,unavailable,busy I'm trying to figure out now are these values stored in a regular relational database like MySQL. But so far the documentation I see is really all about how to handle calls, not manage customer data. -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Asterisk anyone?
I'm looking at this page now that shows working with the database through socket type stuff, but now the ball is in the client's court what they want to do. Not sure, so I'm just reading up. http://www.voip-info.org/tiki-index.php?page=Web+based+Asterisk+Database+maintenance But thanks all for the pointers. It has been helpful. I've looked up Trixbox, thanks. Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Formatting plain text file
Hey all, Am I brain fading or what? I'm so used to formatting text in tables for HTML display I can't think of how to do it for a plain text file. I just need to create a columned table of names and addresses type stuff... sprintf? -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting plain text file
Jim Lucas wrote: Skip Evans wrote: Hey all, Am I brain fading or what? I'm so used to formatting text in tables for HTML display I can't think of how to do it for a plain text file. I just need to create a columned table of names and addresses type stuff... sprintf? or a little str_pad on each variable... Sure, that will do it. But isn't there some way to construct formatted tables similar to HTML? -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sending email w/ attachments
Hey all, Trying to send emails with attachments, first try at this. And am trying to adapt sample code I found here: http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php Trying this: ($data contains the contents of the file; I've verified this) $hash = md5(date('r', time())); $attachment = chunk_split(base64_encode($data)); $body_attachment = "--PHP-mixed-$hash--\n" . "Content-Type: application/octet-stream; name=\"$filename\"\r\n" . "Content-Transfer-Encoding: base64\n" . "Content-Disposition: attachment\n". $attachment . "\n" . "--PHP-mixed-$hash--\n"; I then append $attachment this to the end of the email body and send it on. I've verified it is reading the file properly, in this test case it is a place text file. But I've tried a PDF and that did not work as well. What happens is the email comes through and shows an attachment paper clip icon in Thunderbird, but when the email is clicked on the icon disappears and the email is empty, even the body is not there and no attachment either. A final question I have is does the content-type value need to change for text files, Word Docs, PDFs, Excel files, etc, or is there one type that can handle any file type? Any help would be great. I'm rather stuck and floundering here. Thanks, Skip -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending email w/ attachments
Bastien Koert wrote: Use PHPMailer or one of the other classes available...makes life so much easier Kick Ass!!! Yes! Wow! Was that a breeze! That class rocks! Thanks tons, Bastien! I have to admit when I first saw your reply I thought, "Oh, man, another class to learn? But I know this is so close to working." I look at the sample and thought, "This looks easy," and had it working in no time. Big thanks again! Attachments were a big deal here and this makes it a breeze, AND it looks like multiple attachments would be no problem? Very cool! Skip -- ==== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP & podcasts
Hey all, I'm doing some maintenance work on a site that features podcasts and some of them work and some of them don't. I've never worked with podcasts before, and while I'm figuring out how they work I was wondering if anyone knew of any good tutorial sites on them and perhaps even programming them in PHP. I've done some Googling but haven't found anything really good. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP & podcasts
The site plays the podcasts with a code snippet like this: classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"; width="410" height="100" id="movie" align=""> value="audioqueue-mini.swf?urls=?>&titles=&delim=$delim ?>: '' ?>"> height="100" name="movie" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer";> Where the $urls variable is a string of URLs. The ones that work all end in .mp3 + some delimiter + another URL that ends in .mp3, etc, etc. However, some show up with no such extension, and in fact no extension of any kind and these don't work. So I suspect that the original programmers code is somehow building URLs that do not in fact connect to the podcast files and that is the main problem. However, having not worked with podcasts before I wasn't absolutely sure this was the problem. The URLs are all supposed to come from the live feeds so I am a bit baffled why some work and some don't. Skip Stut wrote: Skip Evans wrote: I'm doing some maintenance work on a site that features podcasts and some of them work and some of them don't. I've never worked with podcasts before, and while I'm figuring out how they work I was wondering if anyone knew of any good tutorial sites on them and perhaps even programming them in PHP. I've done some Googling but haven't found anything really good. "Programming podcasts" makes no sense. A podcast is a media file that is made available for download. I assume that when you say 'programming them in PHP' you mean developing a site to publicise your podcast. Given that assumption your easiest route is to find a blogging package that supports podcasts. There's a list that will get you started here... http://www.podcastingnews.com/topics/Podcasting_Software.html If you're wanting to do something more custom you first need to understand that there is nothing particularly special about podcasts. They are literally just files that are published on a website. I Googled for info on publishing a podcast and came up with dozens of good tutorials and references. Try harder. If I've misunderstood what you're trying to do, please elaborate. -Stut -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP & podcasts
Yes, Brian, this is all very helpful! Thanks very much! Skip Brian Dunning wrote: Hi Skip - Best is the iTunes Podcast docs: http://www.apple.com/itunes/store/podcaststechspecs.html Use RSS Validator to figure out exactly what's wrong with the ones you have that aren't working: http://feedvalidator.org/ You can take a look at mine for an example. Note that I am using all of the iTunes extensions, which any serious podcaster should do: http://skeptoid.com/podcast.xml In my case I have all the episodes in MySQL and PHP just retrieves them in order and outputs them, formatting according to the RSS spec. Hope this helps... :) On Dec 27, 2006, at 2:46 PM, Skip Evans wrote: Hey all, I'm doing some maintenance work on a site that features podcasts and some of them work and some of them don't. I've never worked with podcasts before, and while I'm figuring out how they work I was wondering if anyone knew of any good tutorial sites on them and perhaps even programming them in PHP. I've done some Googling but haven't found anything really good. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP & podcasts
I think what is going on is that somehow when the code goes to the podcast feeds to get the URLs it's getting the wrong things because they're not even media files, some times they just look like incomplete URLs. When you go to the site itself the streams work fine and result in proper media file URLs. I should dig deeper into the code to see exactly how it's getting the URLs. I think that should probably be next. Skip Stut wrote: Skip Evans wrote: The URLs are all supposed to come from the live feeds so I am a bit baffled why some work and some don't. Are you sure that all the URLs in the feeds are still working? Remember that links go bad. Beyond that it's difficult to help with this specific problem without seeing some code and the XML feeds that the code is using. -Stut -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Chocked
"chocked" ? "chocking" ??? Peter Lauri wrote: I was chocked when I got my additional dedicated server from my server provider. I assumed everyting would have been the same as I ordered the server with same package name etc. The chocking part was that the server had PHP5 and not PHP4. Ok, it is not a hard piece of work to get it working, but one thing stunned me :-) Assuming that I have the following structure: /index.php /classes/first.class.php /classes/second.class.php Index.php: include_once("classes/first.class.php"); first.class.php include_once("second.class.php"); This worked fine, but this time I get an "open dir" error. Is this something that is new to PHP5 for this, or do I just need to config the server to accept this "sloppy" including of files? Best regards, Peter Lauri <http://www.dwsasia.com/> www.dwsasia.com - company web site <http://www.lauri.se/> www.lauri.se - personal web site <http://www.carbonfree.org.uk/> www.carbonfree.org.uk - become Carbon Free -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Chocked
tedd wrote: At 5:22 PM -0800 12/28/06, Paul Novitski wrote: At 12/28/2006 03:51 PM, Skip Evans wrote: "chocked" ? "chocking" ??? RTFM: http://php.net/chocked This link said that the function "chocked" could not be found. Is it anything like being "stoked" about something back in the 80s? Is this like... a reference to ... like Valley Girl? I'm so sheeerrr... Warm regards, Paul Now (along with Skip), I'm really confused. First, Peter said he was "chocked" and I didn't know what to do -- should I call 911, or maybe he was stuck on a hill and couldn't roll down it, or what? Now, Paul says to RTFM and provides a link that doesn't provide anything while others converse with Peter as if they know WTF he's talking about. The new year approachth -- is this a sign of things to come? Has there been another seal broken? tedd -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] What's this image tag for?
Hey all, I'm building a site for a client that is using this system called Linkshare to link to web sites for stores and it's one of those deals where they provide the link code so my client gets credit for sending the person to the store's site. Common enough, but there is one thing about their code I'm a bit confused about. Here is one of their links you put in your code to link to a store: href="http://click.linksynergy.com/fs-bin/click?id=5sJlsTOpnzE&offerid=115126.1505&type=4&subid=0";>alt="Sharper Image" border="0" src="http://www.sharperimagespecials.com/banners/Promos/11_Nov06/fshproplus_1106_125x125.gif";>border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=5sJlsTOpnzE&bids=115126.1505&type=4&subid=0";> You'll notice they provide an image for you to display embedded in the tags, simple enough, but I can't figure out what that second IMG tag is for with the little 1 x 1 image. Since it's outside the actual link, I don't really see what it accomplishes. Anyone with experience with these things, or just any idea why it's there would sure help clear the fog from my brain on this one. Much thanks! -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What's this image tag for?
I thought it would be something like that. So here's another question I'd appreciate thoughts on: If I have ten of these links on a page, linking to ten different stores, should I include one of these IMG links on each link, just as they say to cut and paste? Or should there only be one per page so I don't hit the counter ten times, once for each image. I have examined the ten different IMG URLs for the ones I have pasted onto a page and they are all the same, so they are NOT unique per store image. But rather seem to relate to my client's account itself. Any thoughts, insights would be greatly appreciated. Skip Simon Forster wrote: On 5 Jan 2007, at 14:38, Skip Evans wrote: http://click.linksynergy.com/fs-bin/click? id=5sJlsTOpnzE&offerid=115126.1505&type=4&subid=0">alt="Sharper Image" border="0" src="http:// www.sharperimagespecials.com/banners/Promos/11_Nov06/ fshproplus_1106_125x125.gif">src="http://ad.linksynergy.com/fs-bin/show? id=5sJlsTOpnzE&bids=115126.1505&type=4&subid=0"> You'll notice they provide an image for you to display embedded in the tags, simple enough, but I can't figure out what that second IMG tag is for with the little 1 x 1 image. Since it's outside the actual link, I don't really see what it accomplishes. It's simply a counter. Calls an image off a remote server which increments a counter on that remote server. Allows whoever to track how frequently the code block is shown. HTH Simon Forster ___ LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247 ___ -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What's this image tag for?
Stut wrote: That's really a question for the ad company to answer according to their policy. You'll probably an answer in their instructions somewhere. We can't give you an authoritative answer on a specific company's policy. Good point. I finally was able to track down their contact info and will fire off a message. Thanks. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OT - web based project management tool
I use dotProject, and what I like most about it is it is quite easy to modify and enhance. For example, it uses a PDF library (name escapes me at the moment) and in 2 hours I wrote a quite nice invoicing module for it. I know, I think there is already one out there, but I like to add my own features and stuff, and was also very curious to see just how easy dP was to modify/enhance, and I found it quite easy. Just my two bits. Skip Jochem Maas wrote: Peter Lauri wrote: Hi, What project management tool do you use for your project? Is dotProject (www.dotproject.org <http://www.dotproject.org/> ) only alternative? I don't understand the second part of your question and I don't see that dotproject.org is even a tool for project management. (It might be my temporary blindness that's to blame :-) 2 project management tools I've used are: sourceforge http://www.vasoftware.com/sourceforge/ trachttp://trac.edgewall.org/ and for code control - CVS or SVN, both the above [can] integrate CVS and SVN. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]
Hey all, When you say it lets you run it off a CD does that mean the CD is totally self contained, as in you can pop it into any machine, sans web server DB, etc, and it runs just peachy? Skip Ryan A wrote: Hey all! This is a bit OT as its not really php programming, but it does involve PHP and MySql etc so The company I work for has decided to use the software from outsite-in.com, for those of you who dont know (and i'm guessing a lot of you dont, as I kinda just found out about it myself) their software allows you to run php+mysql etc on a CD/DVD. Just curious to know if anybody has had any experience with their software? I have tried their free demo's and it looks pretty good. Note: Others on this list have in the past advised me on how to do this using different methods, but my company wants to go with this... needless to say I am in NO way connected to outsite-in.com and i have *nothing* to gain if you visit their site, buy anything from them, shoot them, kiss them or whatever. :) Thanks! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Everyone is raving about the all-new Yahoo! Mail beta. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Updating episode info on podcasts?
Hey boys & girls, I'm doing some maintenance work on a site that allows members to keep a personal library of podcasts. One thing the site does it every time the personal list of casts is viewed, it goes out and gets the most current episode information for each cast in the user's list, but this slows the display of the page down quite a bit, not too bad for 6 or 8 casts, but if the user's start adding many more than that it gets noticably slower. My idea is a cron job that runs in the background that checks to see when the last time a cast was updated with episode data, and if a preconfigured amount of time has lapsed, it reads the XML file and udpates the DB. Having never dealt with podcasts before, I'm feeling a bit like I'm flying blind, so the issues I'm wondering about are: 1) Some podcasts are updated weekly, others daily, etc, so updating a weekly podcast every few hours would be overkill. 2) Reading the XML file from the source feed is time consuming. If the site ends up with thousands of casts, this could pretty much kill the cron job. I'm wondering if anyone on the list has dealt with this kind of thing and what kind of strategies were employed. Any suggestions would be greatly appreciated. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]
Sweet! So what recommendations would any of you make for a, say, CD linux distro that one could burn with my own PHP app, so someone could boot it up in a machine and see my PHP/MySQL web app run right there on their machine? This is something for which I've had a nagging need a while now. Anyone do this with a few of the different distros out there and have some experience and wisdom to lend? Mucho thanky, Spanky! Skip Ryan A wrote: Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, When you say it lets you run it off a CD does that mean the CD is totally self contained, as in you can pop it into any machine, sans web server DB, etc, and it runs just peachy? Skip Yep, thats what its supposed to do... -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hello
I think David is going to need to install something like PostNuke that comes with a polls module or something like that. But David's suggestion is a good one... how much PHP/MySQL experience do you have? Skip David Giragosian wrote: On 1/13/07, John Meyer <[EMAIL PROTECTED]> wrote: Edward wrote: > How do I create a php document so that people in my nonprofit can vote > on issues online through the organization's website? > > Thanks, > > Edward > Start with PHP, add MySQL or your database of choice, mix and prepare. Serves 500+. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Edward, Maybe start by telling the group your level of experience with PHP, MySQL, (Javascript), ... Just a thought. David -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Podcast XML files
Hey all, I've been working on this site dealing with Podcasts, something I haven't worked on before, but I am slowing getting the feel for how this works. One of the first bugs I needed to deal with was the fact that probably 40% of the podcasts put in the in the database and then streamed through the flash player did not work. What I found was that the actual sound file, typically mp3, would reside in one of three of the XML fields: guid, link or enclosure. Once I interrogated all three fields for the actual sound file and placed that in the variable for the player they all worked. 1) Is this a viable solution to this problem? 2) Would it be proper to examine these fields for any XML file given to the parser, and if no valid sound file is found (taking into consideration the many valid sound formats) to tell the user it is not a valid podcast? Newbie to podcasts... must drink carbonated beverage to refresh... tired... brain. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Splitting long text
Hey all, I have a requirement to take a large amount of text, a story submitted to a competition, and split into displayable chunks of 600 words each. I'd like some feedback on the best way to this. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Debugging itpc
Hey all, I'm working on a site that allows users to build libraries of podcasts, and one of the calls to a PHP file is itpc, not http. Hence I don't have the ability to echo data for debugging, and I also don't have write access to any dirs to fopen and fwrite data. Any suggestions for other ways to debug this script file? -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Debugging itpc
Hey Robert, Oh, of course. Heck, I was already trying to fwrite to a file so that should have occurred me... ...if I hadn't done all that acid in the 60s, and I was only FIVE in the 60s! Thanks for clearing the fog. Skip Robert Cummings wrote: On Wed, 2007-01-24 at 14:07 -0500, Robert Cummings wrote: On Wed, 2007-01-24 at 12:01 -0700, Skip Evans wrote: Hey all, I'm working on a site that allows users to build libraries of podcasts, and one of the calls to a PHP file is itpc, not http. Hence I don't have the ability to echo data for debugging, and I also don't have write access to any dirs to fopen and fwrite data. Any suggestions for other ways to debug this script file? It's slow, but it works... mail() You can also just pump messages to a database table :) Cheers, Rob. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP & Flash
Hey all, We have a new project that will require pretty robust communication between Flash and PHP, and I've begun Googling and came across Actionscript here: http://www.adobe.com/devnet/flash/articles/flashmx_php.html I wonder if anyone knows anything about running actionscript on LinuxFfirfox machines. My install of Firefox on Debian/Fluxbox runs Flash okay, but not the sample app on this page. The page above had a zip file that may need to be downloaded to your Windows machine, but my Windows machine ran it fine. Anyone have any experience with PHP/Actionscript on Linux? Thanks! -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP & Flash
Jochem Maas wrote: Anyone have any experience with PHP/Actionscript on Linux? wtf? Oh my God. What am I thinking? Please folks, I am really not this stupid. It has been too, too long a day. Yes, I just need to upgrade Flash on this workstation. Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Calling iTunes from a browser
Hey all, I'm trying to call I tunes from a PHP script. If I call the URL right from the browser the player opens up fine and starts downloading the podcats. But if I put this in the code the browser says "Page Cannot be Displayed" and stops. header("location: itpc://fiql.com/~podlist/superfeeds/superfeed27.xml"); What is the correct way to do this? Thanks! -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML error in browser
Hey all, I have getting the following error page in the browser when trying to redirect to an iTunes XML file to open the player. === Cannot view XML input using style sheet. Please correct the error and then click the Refreshbutton, or try again later. -- XML document must have a top level element. Error processing resource ' http://www.fiql.com/~podlist/get_podlist.php?id=27'. === And here is the code: header('Content-Type: text/xml; charset=UTF-8'); require_once "db_connect.php"; require_once "db_manage.php"; // SEE skip evans -- 1/29/07 -- check if superfeed XML file is due to be rebuilt. // if so, rebuild the file and pass the new file on to iTumes. Check_XML_file($id); @readfile("itpc://www.fiql.com/~podlist/superfeeds/superfeed$id.xml"); === No style sheet gets read in, and there is no echo or print statements outputting anything to the browser until the readfile() call. Any suggestions would be greatly appreciated. By the way, I used the post at the bottom of this forum for the hint on using readfile(). http://www.pmachine.com/forums/viewthread/37591/ -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML error in browser
Hey all, First, any apology. I had put in a filter to place all my list messages into a folder, and did not see Richard Lynch's reply to my earlier post about getting the iTunes player to open up inside PHP. I can see from what he said that my problem below is probably caused by the browser thinking it is getting HTML or something sneaking in front of the XML here? I'm not sure how to go about solving that, so if I am correct any suggestions building upon Richard's post would help. I think I'm trying to solve the problem Richard alluded to with the header call that sets up XML, but perhaps that is coming to late? Skip Skip Evans wrote: Hey all, I have getting the following error page in the browser when trying to redirect to an iTunes XML file to open the player. === Cannot view XML input using style sheet. Please correct the error and then click the Refreshbutton, or try again later. -- XML document must have a top level element. Error processing resource ' http://www.fiql.com/~podlist/get_podlist.php?id=27'. === And here is the code: header('Content-Type: text/xml; charset=UTF-8'); require_once "db_connect.php"; require_once "db_manage.php"; // SEE skip evans -- 1/29/07 -- check if superfeed XML file is due to be rebuilt. // if so, rebuild the file and pass the new file on to iTumes. Check_XML_file($id); @readfile("itpc://www.fiql.com/~podlist/superfeeds/superfeed$id.xml"); === No style sheet gets read in, and there is no echo or print statements outputting anything to the browser until the readfile() call. Any suggestions would be greatly appreciated. By the way, I used the post at the bottom of this forum for the hint on using readfile(). http://www.pmachine.com/forums/viewthread/37591/ -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help wtih a query?
Hey all, I have the following query: $sql="SELECT count(*) AS count,votes.storyID,stories.title,stories.storyID as sID,stories.approved, stories.story,stories.userID, fname, lname FROM `bsp_story_votes` as votes, bsp_story_stories AS stories, users AS usr WHERE votes.storyID=stories.storyID AND stories.userID=usr.id AND stories.contestID=$contestID GROUP BY votes.storyID ORDER BY stories.approved,count DESC, sID ASC LIMIT $b_recno,$recs"; How would this need to be changed so that it would return rows for the members of the bsp_story_stories table that do not have records in the bsp_story_votes table? Is that what the left/right joins do??? Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Need desperate help with query
Okay, so SQL questions shouldn't come to the list, but I am in dire need of some assistance that uses a LEFT JOIN and must also get a count of records in the RIGHT table, plus group by that count and order by it. If anyone can help out with this and would be willing to email me off list to take a look at it the good karma and appreciation would rain down upon you in such multitudes as to... as to... as... to... I've run out of hyperbole. Help!!!!! -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Recommend PHP & Flash 8 book?
Hey all, We're going to be developing some PHP and Flash 8 applications and was wondering what books or online tutorials people might recommend. I've Googled a few online resources but nothing terribly complete yet. Any resources that have become favorites would be greatly appreciated. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP4 to PHP5 issue
Hey all, I installed a new FreeBSD 6.0 server here in the office with PHP5. I moved over several sites we developed under PHP4, and all of those seem to be functioning perfectly, but I am getting an error on to sites, on PostNuke based and our dotProject system. Both errors are the same, and here is the one from dotProject: Fatal error: Call to a member function Execute() on a non-object in /usr/home/dotproject/public_html/classes/query.class.php on line 589 And the code: $this->_query_id = $db->Execute($q); Where $q is a pretty typical SQL statement. What I'm wondering if there is an easy way to convert $q to an object type rather than a string to satisfy Execute? Or some other straightforward fix? Thanks! Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP4 to PHP5 issue
Jochem Maas wrote: the problem is not with $q but with $db. $db is not an object, why that is so I don't know - more bug hunting for you I'm afraid. Woops! I sure read that one wrong. Thanks, I will dig deeper. Does anyone have any experience running dotProject under PHP5? Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP4 to PHP5 issue
Tim wrote: Yes, our company used it for three months before dumping it regarding PHP5 incompatibility and some other "mistakes".. I ended up having to fix/hack too many things (sessions doing weird things, broken forum, translations all messed up, user roles not working quite right, admin system funked) it wasn't worth my time, we developed a more specialized app for project management internally. Well, I hate to use this kind of language on the list, but I feel I must say that sucks. But I want to thank you Tim for saving me all kinds of time trying to get dP going on PHP5. We still have the old server, of course, running right underneath the new rack jobbies, and I can use it for now to run dP for us. Unfortunately, we're quite wedded to it for project management, having modified and customized it extensively to suit our needs. Hate to use the box, though, just for dP since I had it slated to be converted to a pretty sweet workstation. Oh well, if life were perfect we'd... we'd... heck, we'd have a lot more fun. Thanks again, Tim. Any more experiences with dP and PHP5 are appreciated, although Tim seems to have pretty well nailed it. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache asks to save php file?
Hey all, Just did a new install on FreeBSD 6.0 of Apache 2, PHP4 and MySQL, but the browser asks to save a PHP file rather than execute it. I do have the following in httpd.conf, however. LoadModule php4_module libexec/apache2/libphp4.so DirectoryIndex index.php index.html index.htm index.html.var AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Now I'm wondering if somehow PHP4 got compiled without the Apache module selected? Does that sound accurate? I did check it off when the compile began however. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache asks to save php file?
Nothing in the log file. Did restart the web server, and yes, I'm compiling this myself. The log file is actually not being touched. I think it failed to compile the apache module on the last attempt (it stopped before because I was not subscribed to a paypal module I tried to include), so I need to somehow get back to where it will ask me to compile the Apache module, but doing make deinstall clean does not do it. Skip Robert Cummings wrote: On Tue, 2007-02-06 at 16:15 -0700, Skip Evans wrote: Hey all, Just did a new install on FreeBSD 6.0 of Apache 2, PHP4 and MySQL, but the browser asks to save a PHP file rather than execute it. I do have the following in httpd.conf, however. LoadModule php4_module libexec/apache2/libphp4.so DirectoryIndex index.php index.html index.htm index.html.var AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Now I'm wondering if somehow PHP4 got compiled without the Apache module selected? Does that sound accurate? I did check it off when the compile began however. Anything in your apache logs? Did you restart the webserver? Did you compile yourself? Cheers, Rob. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache asks to save php file?
Yes, the file name and path are correct. Apache will give an error upon restart if they are not. Chris wrote: Skip Evans wrote: Hey all, Just did a new install on FreeBSD 6.0 of Apache 2, PHP4 and MySQL, but the browser asks to save a PHP file rather than execute it. I do have the following in httpd.conf, however. LoadModule php4_module libexec/apache2/libphp4.so Is that the right path to the file? Does that file exist? What permissions are on it? -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache asks to save php file?
Even do the deinstall I get this: ===> Checking if misc/php4-calendar already installed ===> php4-calendar-4.4.4_1 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of misc/php4-calendar without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Agggh How do I clean up the hold install completely? Skip Robert Cummings wrote: On Tue, 2007-02-06 at 15:59 -0800, Greg Maruszeczka wrote: On Tue, 06 Feb 2007 16:42:03 -0700 Skip Evans <[EMAIL PROTECTED]> wrote: Nothing in the log file. Did restart the web server, and yes, I'm compiling this myself. The log file is actually not being touched. I think it failed to compile the apache module on the last attempt (it stopped before because I was not subscribed to a paypal module I tried to include), so I need to somehow get back to where it will ask me to compile the Apache module, but doing make deinstall clean does not do it. delete /var/db/ports/php*/options and 'make install clean' again. I always cleanup with: shell> rm config.cache shell> make clean Cheers, Rob. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP4 extensions not loading
Hey all, I installed a new server with PHP5, but then had to revert to PHP4 (attempted anyway) on a FreeBSD 6.0 install. I have PHP4 compiled, both the main BSD port of lang/php4 and all of the extensions individually. However, the extensions, including basic ones like MySQL are not getting loaded. I have an identical server that is working fine that was built some time ago, and the only difference I can see is that the working server as options file listed in /var/db/ports/php4-extensions The server that is not working had a smaller file in /var/db/ports/php4 That did not list the additional extensions I compiled individually. The output of phpinfo() can be seen on each server at bigskypenguin.com/info.php (working) venomouspenguin.com/info.php (not working) You can see that the venomouspenguin.com server the extensions are not showing up, but I am certain they are compiled and installed, because the make (s) tell me so. What I need to do is get Apache looking at a /var/db/ports/php4-extensions directory, which I did create with the options file listing all the extensions I built individually. Can someone tell me how this can be done? How I can tell Apache to load the extensions in that directory? It is way too late, I am way too exhausted and going to bed. Thanks so much for any help. I've been tracking this down a bit chunk of the day and my brain is now total guacamole. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Getting mysql_query results into an array
Hey all, I read on php.net about resources, the type returned from mysql_query(), and was trying locate the best way to get the result set back from a query into an array. Is simply looping through the result set with mysql_fetch_assoc() the common way to do this? As great as PHP is with arrays I was wondering if there is some simply, more efficient way, but as yet have not located one. Thanks, Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Getting mysql_query results into an array
Richard Lynch wrote: The most efficient way is "Don't do that." :-) Simply loop through the results and do whatever you want to do with them, and don't put them into an array at all. This makes perfect sense. However, I am currently writing an abstraction layer for a project that will later be ported from MySQL to another database (and I haven't even been told what that database will be, but probably MS SQL Server), so I was thinking if some sort of "helper functions" might be useful, but I think simple wrappers are probably the way to go. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES path on client's machine?
Hey all, I get the feeling from not finding an argument for the path on the client's machine for the complete path of a file in $_FILES that it might not be available for security reasons? The reason I am interested in this is to restore the value of a input type='file' field in a form if the user has to return to the form for validation reasons. I'd like to restore the full value so the user does not have to browse the file again. Is there a way to do this? I thought perhaps there might be a $_FILES['image']['path'] value or something. Thanks! -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Monitoring download, detecting completion?
Hey all, I have a need to monitor a download from the server to the client's machine. I'm not familiar with any mechanisms for doing so. If anyone has any hints to point me towards I'll get a' researching. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IE not uploading files
Hey all, I have the following code uploading and image to a directory from a form, and it works great on FireFox, but not IE 6.0. Does anyone have an suggestions? Thanks, Skip // get the image directory. list($mats_img_path)=bsp_DB_row_fields("SELECT mats_img_path FROM bsp_configuration"); // move the uploaded file from the temp dir to permanent directory. move_uploaded_file($_FILES['image']['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/$mats_img_path/".$image); -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Limited text fields on phpMyAdmin?
Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type 'TEXT' and put about a paragraph or two into each field, but seemed to have run up against a limit there. I'm pretty surprised that phpMyAdmin would have that kind of a limit there, and have checked out the data for any funkiness that might prevent it from displaying, but when they select that table to edit a record it displays only the top like describing the table and then stops. Has anyone experienced anything like this with phpMyAdmin? They are running 2.5.7. I know they should upgrade and I keep telling them that, but they are one these "if it ain't broke don't fix it " outfits and have been using the same install for a couple of years, and are pretty set in their ways. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php