[PHP] Full versus relative URLs

2009-02-16 Thread Paul M Foster
Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include the relative path to the file (relative to the doc root), like: /graphics/my_portrait.gif Or you can include the full URL,

Re: [PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-16 Thread Jochem Maas
Shawn McKenzie schreef: Shawn McKenzie wrote: ... Not tested: no shit. function time_sort($a, $b) { if (strtotime($a) == strtotime($b)) { return 0; } return (strtotime($a) strtotime($b) ? -1 : 1; } usort($time, time_sort); Well, I just thought, since the

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Per Jessen
Paul M Foster wrote: Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include the relative path to the file (relative to the doc root), like: /graphics/my_portrait.gif Or

[PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Edmund Hertle
Hey, my problem is that I send an e-mail with an attachment (pdf file). I get the filename out of a mysql table. While using echo or downloading the file, the filename is showed as expected but as an attachment it is not properly encoded: Should be: PC-Beschaffung 2008 (nur für Lehre) Will be:

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Dotan Cohen
My casual observation seems to indicate that the former will load faster than the latter. But has anyone done any benchmarking on it? Did you clear the cache between tests? That could explain the speed difference. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
2009/2/16 Paul M Foster pa...@quillandmouse.com: I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode the url segments (alfa/bravo/charlie/delta). It determines that the controller is alfa, the method is bravo, and

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Richard Heyes
Hi, my problem is that I send an e-mail with an attachment (pdf file). I get the filename out of a mysql table. While using echo or downloading the file, the filename is showed as expected but as an attachment it is not properly encoded: Should be: PC-Beschaffung 2008 (nur für Lehre) Will

Re: [PHP] Apache odd behavior

2009-02-16 Thread Michael A. Peters
Paul M Foster wrote: I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta Why would you want to do such a thing? If you want parameters in the filename without using get, use mod_rewrite and explode the page name - and use a delimiter or than a / - IE use an

[PHP] XSLTProcessor help

2009-02-16 Thread Tom Sparks
help, when I include xsl:apply-templates/ the XSLTProcessor only strips the XML tags and outputs the text see result --cut here result-- html headmeta http-equiv=Content-Type content=text/html; charset=UTF-8/head bodypre Hyalearl, 100-ton Sulieman-Class Scout/Courier

Re: [PHP] Back to Basics - Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread German Geek
Brilliant. Someone who understood my intentions :) It's not only a good exercise but also useful. Once done in PHP and various JS frameworks, we could port it to other languages. Would suggest to support as many as we can because they all have pros and cons. PHP first tho :) . Maybe just good old

Re: [PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-16 Thread German Geek
Remember we have copy-on-write in PHP. Beat this :P : ?php $timeArray = array(/* your string time data */); function timeStamps($ar) { $stamps = array(); foreach ($ar as $timeString) { $stamps[strtotime($timeString)] = $timeString; } return $stamps; } function sortTime($ar) {

Re: [PHP] Full versus relative URLs

2009-02-16 Thread German Geek
Should be the same as the dns request is cached and a request needs to be made anyway. You could argue that relative URLs are less secure, but i cannot really see why. Well i guess someone can easier steal your source but it doesnt get much harder with absolute URLs. Tim-Hinnerk Heuer

[PHP] Re: XSLTProcessor help

2009-02-16 Thread Colin Guthrie
'Twas brillig, and Tom Sparks at 16/02/09 10:49 did gyre and gimble: help, when I include xsl:apply-templates/ the XSLTProcessor only strips the XML tags and outputs the text see result --cut here vehicle.xsl- ?xml version=1.0 ? xsl:stylesheet version=1.0

Re: [PHP] Apache odd behavior

2009-02-16 Thread German Geek
Symfony uses exactly this method for pretty urls. Check it out. Maybe it has everything you want :). Have a look at symfony's .htaccess rewrite rules at least. You have a few possibilities here: You can make ur own rewrite for urls that contain index.php or rewrite

Re: [PHP] Back to Basics - Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Jason Pruim
On Feb 16, 2009, at 6:11 AM, German Geek wrote: Brilliant. Someone who understood my intentions :) It's not only a good exercise but also useful. Once done in PHP and various JS frameworks, we could port it to other languages. Would suggest to support as many as we can because they all

[PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Colin Guthrie
'Twas brillig, and Michael A. Peters at 16/02/09 00:10 did gyre and gimble: Colin Guthrie wrote: 'Twas brillig, and German Geek at 15/02/09 22:32 did gyre and gimble: Please enlighten me why it is so expensive? Is it maybe just the hassle of setting it up? The whole thing is about trust.

Re: [PHP] Back to Basics - Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread German Geek
yes there are situations like that but then it could just submit the form (which would happen anyway) and check the plaintext password like normally if the other mechanism fails. If people have js turned on it would simply increase security a little. The crucial part is just the sending of the

Re: [PHP] Re: Sorting times (SOLVED in half the time, hey tedd get your new and improved variant here)

2009-02-16 Thread Jochem Maas
German Geek schreef: Remember we have copy-on-write in PHP. Beat this :P : for speed it's way faster, slight issue though, it won't give the expected output for arrays that contain the same value more than once. not difficult to fix that, below a new version of the test script with both your

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread German Geek
well httpus seems like a good idea though. Thats the kind of response i was hoping for. :-) Maybe browsers would implement that idea in the future. I like that idea a lot actually. I mean when you login to your linux server the first time with openssh, you also have to accept the certificate. In

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Edmund Hertle
2009/2/16 Richard Heyes rich...@php.net Hi, my problem is that I send an e-mail with an attachment (pdf file). I get the filename out of a mysql table. While using echo or downloading the file, the filename is showed as expected but as an attachment it is not properly encoded:

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Michael A. Peters
German Geek wrote: well httpus seems like a good idea though. Thats the kind of response i was hoping for. :-) Maybe browsers would implement that idea in the future. I like that idea a lot actually. I mean when you login to your linux server the first time with openssh, you also have to accept

Re: [PHP] Back to Basics - Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Michael A. Peters
Rene Veerman wrote: Just for this case, where authentication of the server isn't an issue, and things like deployment cost are, i'd like to propose that we on this list look again at securing login/pass through onewayHash functions, in an otherwise non-ssl environment. i hate to be a

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Per Jessen
Edmund Hertle wrote: my problem is that I send an e-mail with an attachment (pdf file). I get the filename out of a mysql table. While using echo or downloading the file, the filename is showed as expected but as an attachment it is not properly encoded: Should be: PC-Beschaffung 2008 (nur

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Per Jessen
Colin Guthrie wrote: Yeah the cheap CA's are IMO actually a problem. I (personally) think we should have a new system for this scenario: http:// = totally insecure https:// = secure and to a reasonable degree of trust (e.g. no $12.00 certs!) httpus:// = secure but no aspect of trust.

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Carl-Fredrik Gustafsson
Per Jessen schrieb: Edmund Hertle wrote: my problem is that I send an e-mail with an attachment (pdf file). I get the filename out of a mysql table. While using echo or downloading the file, the filename is showed as expected but as an attachment it is not properly encoded: Should be:

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Per Jessen
Carl-Fredrik Gustafsson wrote: To me it looks like he only wants the spaces and special-chars in the filename to be readable again. Yep, I think so too. Spaces are no problem, but 8-bit characters need to be encoded. /Per -- Per Jessen, Zürich (1.2°C) -- PHP General Mailing List

[PHP] Online Part Time Job Available

2009-02-16 Thread Richmal Whitehead
Hi, Our online market research organization starts recruiting self-motivated and reliable individuals willing to take part in well-paying research conducted by leading international businesses. Your opinion as a consumer is important for the success and profitability of many business ventures.

Re: [PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-16 Thread tedd
At 9:56 AM +0100 2/16/09, Jochem Maas wrote: for any reasonable number of items my tests show tedd's version pisses on McKenzies from a great height (note that I actually optimized Mckenzies variant by halfing the number of calls to strtotime()). ROTFLOL. -- I seldom say that! From a great

Re: [PHP] ?php=

2009-02-16 Thread Richard Heyes
... Sorry, should've mentioned, I'm talking about PHP6. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reverse IP lookup

2009-02-16 Thread tedd
At 9:17 PM -0500 2/15/09, Andrew Ballard wrote: You mean like this one? http://www.yougetsignal.com/tools/web-sites-on-web-server/ I don't know how reliable or up-to-date it is. Now that's something I would like to know how it works. Anyone have any ideas as to how that works? Cheers,

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Richard Heyes
I'm already using pear Mail_Mime. [Ducks and runs off] -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reverse IP lookup

2009-02-16 Thread Robert Cummings
On Mon, 2009-02-16 at 10:11 -0500, tedd wrote: At 9:17 PM -0500 2/15/09, Andrew Ballard wrote: You mean like this one? http://www.yougetsignal.com/tools/web-sites-on-web-server/ I don't know how reliable or up-to-date it is. Now that's something I would like to know how it works.

Re: [PHP] Reverse IP lookup

2009-02-16 Thread Eric Butera
On Sun, Feb 15, 2009 at 9:17 PM, Andrew Ballard aball...@gmail.com wrote: On Sun, Feb 15, 2009 at 1:22 PM, דניאל דנון danondan...@gmail.com wrote: Hello, Is there anyway to get a list of sitess that are on a specific IP? I looked, But I couldn't find anything. I tried to make some with

Re: [PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-16 Thread Shawn McKenzie
tedd wrote: At 9:56 AM +0100 2/16/09, Jochem Maas wrote: for any reasonable number of items my tests show tedd's version pisses on McKenzies from a great height (note that I actually optimized Mckenzies variant by halfing the number of calls to strtotime()). ROTFLOL. -- I seldom say

[PHP] Re: Reverse IP lookup

2009-02-16 Thread Jonesy
On Mon, 16 Feb 2009 10:26:17 -0500, Robert Cummings wrote: On Mon, 2009-02-16 at 10:11 -0500, tedd wrote: At 9:17 PM -0500 2/15/09, Andrew Ballard wrote: You mean like this one? http://www.yougetsignal.com/tools/web-sites-on-web-server/ I don't know how reliable or up-to-date it is.

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Lewis Wright
This may be a little more accurate: http://www.domaintools.com/reverse-ip/ But I think you have to pay if you want to use it a lot. 2009/2/16 Jonesy gm...@jonz.net: On Mon, 16 Feb 2009 10:26:17 -0500, Robert Cummings wrote: On Mon, 2009-02-16 at 10:11 -0500, tedd wrote: At 9:17 PM -0500

[PHP] Advice wanted

2009-02-16 Thread Payne
Hi, I am wanting to ask some advice on project I have in mind, but I am having problems finding examples. What I am working on is a set of tools that creates reports based on actions. I have the reports working good, but what I advice on is this. I like to create a page that shows a

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Andrew Ballard
On Mon, Feb 16, 2009 at 10:51 AM, Lewis Wright lewiswri...@gmail.comwrote: This may be a little more accurate: http://www.domaintools.com/reverse-ip/ But I think you have to pay if you want to use it a lot. I was going to post that one, but you have to pay to subscribe if you want more than

Re: [PHP] Online Part Time Job Available

2009-02-16 Thread Marc
Richmal Whitehead schrieb: Hi, Our online market research organization starts recruiting self-motivated and reliable individuals willing to take part in well-paying research conducted by leading international businesses. Your opinion as a consumer is important for the success and profitability

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Per Jessen
Lewis Wright wrote: This may be a little more accurate: http://www.domaintools.com/reverse-ip/ Yep, than one was a lot better than yougetsignal. /Per -- Per Jessen, Zürich (0.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reverse IP lookup

2009-02-16 Thread tedd
At 10:26 AM -0500 2/16/09, Robert Cummings wrote: On Mon, 2009-02-16 at 10:11 -0500, tedd wrote: At 9:17 PM -0500 2/15/09, Andrew Ballard wrote: You mean like this one? http://www.yougetsignal.com/tools/web-sites-on-web-server/ I don't know how reliable or up-to-date it is. Now

Re: [PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-16 Thread tedd
At 9:45 AM -0600 2/16/09, Shawn McKenzie wrote: tedd wrote: At 9:56 AM +0100 2/16/09, Jochem Maas wrote: for any reasonable number of items my tests show tedd's version pisses on McKenzies from a great height (note that I actually optimized Mckenzies variant by halfing the number of calls

[PHP] Re: Reverse IP lookup

2009-02-16 Thread Jonesy
On Mon, 16 Feb 2009 15:47:19 + (UTC), Jonesy wrote: On Mon, 16 Feb 2009 10:26:17 -0500, Robert Cummings wrote: On Mon, 2009-02-16 at 10:11 -0500, tedd wrote: At 9:17 PM -0500 2/15/09, Andrew Ballard wrote: You mean like this one?

[PHP] Re: ***SPAM*** Re[2]: help J0B.

2009-02-16 Thread Larry Wickkiser
I'm out of the office until February 18th, 2009. I'll respond to you when I return. If you need assistance before then, contact adrie...@airporter.com, or l...@airporter.com. Thanks, Larry On Feb 16, 2009, at 6:40 AM, php-general@lists.php.net wrote: -- PHP General Mailing List

Re: [PHP] Reverse IP lookup

2009-02-16 Thread Thodoris
Hello, Is there anyway to get a list of sitess that are on a specific IP? I looked, But I couldn't find anything. I tried to make some with dns_get_record and gethostbyaddr, but couldn't make anything Thank Daniel Well actually you can't basically because of the way the Name Service

[PHP] Zend Guard/Optimizer alternatives?

2009-02-16 Thread Brian Dunning
Is there a cheaper alternative to Guard/Optimizer? I have a single small PHP file that is part of a larger solution I sell, and I want it to be protected - and it has to be a runtime so it will run on anyone's standard PHP server. Zend's $600 was a little bit of sticker shock. Any

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Thodoris
Hello list. Recently we had some serious discussion on local boards. I prefer calling PHP as Web Framework of C and C++ if you had a time for this fruitless discussion. Please send your opinions. Regards Sancar I think that you can't assume that PHP is a C framework for the web,

Re: [PHP] Apache odd behavior

2009-02-16 Thread Thodoris
I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode the url segments (alfa/bravo/charlie/delta). It determines that the controller is alfa, the method is bravo, and converts charlie and delta to $_GET['charlie'] =

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Thodoris
Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include the relative path to the file (relative to the doc root), like: /graphics/my_portrait.gif Or you can include the full

Re: [PHP] Zend Guard/Optimizer alternatives?

2009-02-16 Thread Brian Dunning
I should mention that I did try the ionCube online encoder, which I think is a great idea... but its runtimes failed to load on both of my test systems, requiring editing of php.ini. That's over the top for my users. I need something that's rock-solid and that will never require my users

Re: [PHP] Zend Guard/Optimizer alternatives?

2009-02-16 Thread Thodoris
I should mention that I did try the ionCube online encoder, which I think is a great idea... but its runtimes failed to load on both of my test systems, requiring editing of php.ini. That's over the top for my users. I need something that's rock-solid and that will never require my users to

Re: [PHP] Apache odd behavior

2009-02-16 Thread Paul M Foster
On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode the url segments (alfa/bravo/charlie/delta). It determines that the controller is alfa, the method is

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Paul M Foster
On Mon, Feb 16, 2009 at 07:39:29PM +0200, Thodoris wrote: Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include the relative path to the file (relative to the doc root),

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Dotan Cohen
Agreed. But here's the real reason, in my case. We develop the pages on an internal server, which has the URL http://pokey/mysite.com. When we move the pages to the live server at mysite.com, all the URLs would have to be rewritten. Ugh. Paul So put it all in one place: ?php include

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Thodoris
On Mon, Feb 16, 2009 at 07:39:29PM +0200, Thodoris wrote: Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include the relative path to the file (relative to the doc root),

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Lewis Wright
I'd personally say that PHP was originally intended to essentially be a framework for the web, but has since evolved in to its own language. It's just my opinion though... 2009/2/16 Thodoris t...@kinetix.gr: Hello list. Recently we had some serious discussion on local boards. I prefer

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Thodoris
I'd personally say that PHP was originally intended to essentially be a framework for the web, but has since evolved in to its own language. It's just my opinion though... Well you can see that some basic facts from PHP history can prove you wrong:

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Paul M Foster
On Mon, Feb 16, 2009 at 08:09:51PM +0200, Dotan Cohen wrote: Agreed. But here's the real reason, in my case. We develop the pages on an internal server, which has the URL http://pokey/mysite.com. When we move the pages to the live server at mysite.com, all the URLs would have to be

Re: [PHP] Reverse IP lookup

2009-02-16 Thread Steve Holmes
On Sun, Feb 15, 2009 at 9:17 PM, Andrew Ballard aball...@gmail.com wrote: On Sun, Feb 15, 2009 at 1:22 PM, דניאל דנון danondan...@gmail.com wrote: Hello, Is there anyway to get a list of sitess that are on a specific IP? I looked, But I couldn't find anything. I tried to make some

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Dotan Cohen
So put it all in one place: ?php include path.inc; printa href=\$path/dir/file.php\; ? Full URLs don't break when users save the pages to disk. That would be fine if the pages weren't being crafted in Dreamweaver, where inserting links like that is a pain. For that you'd have to ask

[PHP] inset data to multiple tables

2009-02-16 Thread PJ
I am trying to find a solution to enter data from a web page to several tables in the same database; actually, I have 9 tables bus several are basically id fields for foreign keys. So far, I have found: use mysql_insert_id() - the examples and directions are incomprehensible (to me, anyway) use

[PHP] Re: ?php=

2009-02-16 Thread Colin Guthrie
'Twas brillig, and Richard Heyes at 16/02/09 15:04 did gyre and gimble: ... Sorry, should've mentioned, I'm talking about PHP6. Not heard about it but I'd like it. Short tags are evil but the ?= thing is pretty handy so having a ?php= option would suit me quite nicely. Col -- Colin

Re: [PHP] Re: ?php=

2009-02-16 Thread Eric Butera
On Mon, Feb 16, 2009 at 2:58 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Richard Heyes at 16/02/09 15:04 did gyre and gimble: Those reply lines are funny. =) -- http://www.voom.me | EFnet: #voom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Colin Guthrie
'Twas brillig, and Per Jessen at 16/02/09 13:49 did gyre and gimble: Colin Guthrie wrote: Yeah the cheap CA's are IMO actually a problem. I (personally) think we should have a new system for this scenario: http:// = totally insecure https:// = secure and to a reasonable degree of trust (e.g.

[PHP] Re: ?php=

2009-02-16 Thread Colin Guthrie
'Twas brillig, and Eric Butera at 16/02/09 20:01 did gyre and gimble: On Mon, Feb 16, 2009 at 2:58 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Richard Heyes at 16/02/09 15:04 did gyre and gimble: Those reply lines are funny. =) Can't take credit as I saw someone else

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Michael A. Peters
Colin Guthrie wrote: 'Twas brillig, and Per Jessen at 16/02/09 13:49 did gyre and gimble: Colin Guthrie wrote: Colin, I think you're mixing apples and oranges here - http(s) was never meant to provide any indication of trust. Besides, how do you suggest we distinguish between CAs with no

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Ashley Sheridan
On Mon, 2009-02-16 at 20:19 +0200, Thodoris wrote: On Mon, Feb 16, 2009 at 07:39:29PM +0200, Thodoris wrote: Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Brian Dunning
And an equally important question: How do you prevent your servers from showing up in searches like this? On Feb 16, 2009, at 7:51 AM, Lewis Wright wrote: This may be a little more accurate: http://www.domaintools.com/reverse-ip/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: inset data to multiple tables

2009-02-16 Thread Colin Guthrie
'Twas brillig, and PJ at 16/02/09 19:57 did gyre and gimble: Questions: 1. Do we really need the statements - $result1 = mysql_query($sql1, $db); ? Why? What purpose do they serve? These statements send your SQL to the server. Without them you are just assigning and SQL command to a

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Dotan Cohen
I know it's been said before, but beware of relying on this value just for the sole purpose of deciding where things are located, as without a bit of error checking on it, it can be used for injection attacks and what-not, although, sadly, I forget the exact post recently that had the link

RE: [PHP] Re: ?php=

2009-02-16 Thread Hans Zaunere
Sorry, should've mentioned, I'm talking about PHP6. Not heard about it but I'd like it. Short tags are evil but the ?= thing is pretty handy so having a ?php= option would suit me quite nicely. Agree - while the short tags can be annoying, we need some way to shorthand string output and I

Re: [PHP] Full versus relative URLs

2009-02-16 Thread German Geek
Tim-Hinnerk Heuer http://www.ihostnz.com Mike Ditka - If God had wanted man to play soccer, he wouldn't have given us arms. 2009/2/17 Paul M Foster pa...@quillandmouse.com On Mon, Feb 16, 2009 at 07:39:29PM +0200, Thodoris wrote: Here's a question related to my last post. When specifying

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
2009/2/16 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode the url segments (alfa/bravo/charlie/delta). It determines

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Stuart
2009/2/16 Thodoris t...@kinetix.gr: In addition to this there is an API for C that can be used to code web applications and it is known as CGI (it is provided by many languages) CGI is a protocol not an API and has no specific connection to C. -Stuart -- http://stut.net/ -- PHP General

Re: [PHP] Apache odd behavior

2009-02-16 Thread Ashley Sheridan
On Mon, 2009-02-16 at 20:34 +, Stuart wrote: 2009/2/16 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread German Geek
I thought its an interface as in Common Gateway Interface. :-P You are right it isn't a specific connection to C. CGI can basically be used with any language. A protocol to me is something like TCP/IP or http etc. Like a language between a network of nodes. Tim-Hinnerk Heuer

Re: [PHP] Online Part Time Job Available

2009-02-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 17:12 +0200, Marc wrote: Richmal Whitehead schrieb: Hi, Our online market research organization starts recruiting self-motivated and reliable individuals willing to take part in well-paying research conducted by leading international businesses. Your opinion as a

RE: [PHP] Re: ?php=

2009-02-16 Thread Mike Roberts
Please folks, honor my request and remove me from the list. Yes I signed up intentionally, and yes I tried (3 times) to de-list myself but I still get the emails. You guys seem like nice folks, so I don't want to lodge a complaint somewhere... I just one somebody to take responsibility and

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Stuart
2009/2/16 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 07:39:29PM +0200, Thodoris wrote: Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include the

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Lewis Wright
I don't think you can unfortunately. 2009/2/16 Brian Dunning br...@briandunning.com: And an equally important question: How do you prevent your servers from showing up in searches like this? On Feb 16, 2009, at 7:51 AM, Lewis Wright wrote: This may be a little more accurate:

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Stuart
2009/2/16 German Geek geek...@gmail.com: I thought its an interface as in Common Gateway Interface. :-P You are right it isn't a specific connection to C. CGI can basically be used with any language. A protocol to me is something like TCP/IP or http etc. Like a language between a network of

Re: [PHP] Advice wanted

2009-02-16 Thread Ashley Sheridan
On Mon, 2009-02-16 at 10:53 -0500, Payne wrote: Hi, I am wanting to ask some advice on project I have in mind, but I am having problems finding examples. What I am working on is a set of tools that creates reports based on actions. I have the reports working good, but what I advice on is

Re: [PHP] Re: ?php=

2009-02-16 Thread Stuart
2009/2/16 Mike Roberts mrobe...@jobscss.com: Please folks, honor my request and remove me from the list. Yes I signed up intentionally, and yes I tried (3 times) to de-list myself but I still get the emails. You guys seem like nice folks, so I don't want to lodge a complaint somewhere... I

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Ashley Sheridan
On Mon, 2009-02-16 at 20:49 +, Lewis Wright wrote: I don't think you can unfortunately. 2009/2/16 Brian Dunning br...@briandunning.com: And an equally important question: How do you prevent your servers from showing up in searches like this? On Feb 16, 2009, at 7:51 AM, Lewis

Re: [PHP] Online Part Time Job Available

2009-02-16 Thread Al
Ashley Sheridan wrote: On Tue, 2008-09-16 at 17:12 +0200, Marc wrote: Richmal Whitehead schrieb: Hi, Our online market research organization starts recruiting self-motivated and reliable individuals willing to take part in well-paying research conducted by leading international businesses.

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
2009/2/16 Ashley Sheridan a...@ashleysheridan.co.uk: On Mon, 2009-02-16 at 20:34 +, Stuart wrote: 2009/2/16 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote: I'm submitting a url like this:

RE: [PHP] Online Part Time Job Available

2009-02-16 Thread Boyd, Todd M.
-Original Message- From: Al [mailto:n...@ridersite.org] Sent: Monday, February 16, 2009 3:00 PM To: php-general@lists.php.net Subject: Re: [PHP] Online Part Time Job Available Please excuse us if this email is unwanted for you and we have disturbed you in some way, but this is a

Re: [PHP] Re: inset data to multiple tables

2009-02-16 Thread PJ
Hell, I feel about as dumb as can be. I just goth things straight and it seems to work just fine... Here is where my problem was... $sql1 = INSERT INTO books ( title, sub_title, descr, comment, bk_cover, publish_date, ISBN, language ) VALUES

[PHP] Re: E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Manuel Lemos
Hello, on 02/16/2009 06:19 AM Edmund Hertle said the following: my problem is that I send an e-mail with an attachment (pdf file). I get the filename out of a mysql table. While using echo or downloading the file, the filename is showed as expected but as an attachment it is not properly

Re: [PHP] Re: inset data to multiple tables

2009-02-16 Thread Chris
PJ wrote: Hell, I feel about as dumb as can be. I just goth things straight and it seems to work just fine... Here is where my problem was... $sql1 = INSERT INTO books ( title, sub_title, descr, comment, bk_cover, publish_date, ISBN, language )

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Jim Lucas
Lewis Wright wrote: This may be a little more accurate: http://www.domaintools.com/reverse-ip/ But I think you have to pay if you want to use it a lot. 2009/2/16 Jonesy gm...@jonz.net: On Mon, 16 Feb 2009 10:26:17 -0500, Robert Cummings wrote: On Mon, 2009-02-16 at 10:11 -0500, tedd

[PHP] Re: ?php=

2009-02-16 Thread tedd
At 7:58 PM + 2/16/09, Colin Guthrie wrote: 'Twas brillig, and Richard Heyes at 16/02/09 15:04 did gyre and gimble: ... Sorry, should've mentioned, I'm talking about PHP6. Not heard about it but I'd like it. Short tags are evil but the ?= thing is pretty handy so having a ?php= option

Re: [PHP] Re: ?php=

2009-02-16 Thread Eric Butera
On Mon, Feb 16, 2009 at 6:32 PM, tedd tedd.sperl...@gmail.com wrote: At 7:58 PM + 2/16/09, Colin Guthrie wrote: 'Twas brillig, and Richard Heyes at 16/02/09 15:04 did gyre and gimble: ... Sorry, should've mentioned, I'm talking about PHP6. Not heard about it but I'd like it. Short

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread tedd
At 12:22 PM -0800 2/16/09, Brian Dunning wrote: And an equally important question: How do you prevent your servers from showing up in searches like this? If I was selling hosting services, I might be concerned with clients knowing how many web sites I piled on each other. For example, it

[PHP] Why is this secure?

2009-02-16 Thread Sean DeNigris
Hi all! The following code seems like it should be open to session fixation attacks, but is not. Why?! This is the beginning of the private page... ?php session_start(); if (!isset($_SESSION['user'])) { header(Location: http://[address of login page]?requestedpage=[token for this page]);

Re: [PHP] Why is this secure?

2009-02-16 Thread Ashley Sheridan
On Mon, 2009-02-16 at 13:49 -0500, Sean DeNigris wrote: Hi all! The following code seems like it should be open to session fixation attacks, but is not. Why?! This is the beginning of the private page... ?php session_start(); if (!isset($_SESSION['user'])) { header(Location:

Re: [PHP] Why is this secure?

2009-02-16 Thread Sean DeNigris
lol, neither. It was from a site I had coded. I read an article about session fixation and it seemed vulnerable based on what I read, but when I tested it, it didn't seem to be and I wasn't sure why. What made you think that? - Sean On Feb 16, 2009, at 8:16 PM, Ashley Sheridan wrote: On

[PHP] Files redirect - using PHP and .htaccess

2009-02-16 Thread Martin Zvarík
Hi, there are two choices (example): 1) file_redirect.php?src=file/root.jpg --- shows an image 2) .htaccess --- if is requested file/root.jpg than redirect to xyzfile/root.jpg In both cases I can restrict the access to some files only. If we talk about PHP, the file/image.jpg can be

[PHP] Re: Files redirect - using PHP and .htaccess

2009-02-16 Thread Martin Zvarík
Martin Zvarík napsal(a): Hi, there are two choices (example): 1) file_redirect.php?src=file/root.jpg --- shows an image 2) .htaccess --- if is requested file/root.jpg than redirect to xyzfile/root.jpg In both cases I can restrict the access to some files only. If we talk about PHP, the

Re: [PHP] Re: XSLTProcessor help

2009-02-16 Thread Tom Sparks
same result cut here--- htmlheadmeta http-equiv=Content-Type content=text/html; charset=UTF-8/headbodypre Hyalearl, 100-ton Sulieman-Class Scout/Courier 2008 03 10 All rights reserved 2008 Onno Meyer n...@none.com 10 Traveller 1.0 /pre/body/html

  1   2   >