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

2009-02-17 Thread Per Jessen
Martin Zvarík wrote: AHA, from what I've just read, the .htaccess is server-side, so the client won't know the real directory. Can somebody confirm? Unless you do an external redirect, confirmed. /Per -- Per Jessen, Zürich (0.6°C) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Why is this secure?

2009-02-17 Thread Ashley Sheridan
On Mon, 2009-02-16 at 20:23 -0500, Sean DeNigris wrote: 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? -

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

2009-02-17 Thread Per Jessen
Colin Guthrie wrote: I appreciate that https doesn't provide trust by default, but ultimately that's how Joe Bloggs public has been told to deal with it look for the padlock etc. etc. to be sure that your session is secure blah blah. Yeah. Which is probably because all of the intricacies

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

2009-02-17 Thread Manuel Lemos
on 02/17/2009 03:44 AM Edmund Hertle said the following: 2009/2/16 Richard Heyes rich...@php.net 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) Can

Re: [PHP] Re: Simple Search Logic Issue...

2009-02-17 Thread David Robley
Bastien Koert wrote: [snip] For example LIKE 'c' will only match a field that contains just 'c' LIKE '%c' will match a field starting with 'c' and containing any number of characters [/snip] Cheers -- David Robley Make like a banana and split. Today is Sweetmorn, the 46th day of

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

2009-02-17 Thread Richard Heyes
The *other* white meat? Sorry, no idea what that means. -- 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] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Paul Scott
On Tue, 2009-02-17 at 10:30 +, Richard Heyes wrote: The *other* white meat? Sorry, no idea what that means. Cats are the other white meat. Sorry have flu, may be delirious -- Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] Apache odd behavior

2009-02-17 Thread Michael A. Peters
Paul M Foster wrote: On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: FWIW, I've been doing computers since before the CP/M days (pre-pre-DOS), so I do know the difference between absolute and relative paths. I'm a little doubtful about the browser specifying things like the URLs

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

2009-02-17 Thread Thodoris
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 I stand corrected on

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

2009-02-17 Thread Thodoris
I didn't mention that it was a C specific framework, I just said IMO it was similar to a framework for the web. It's an opinion so I can't be wrong. In my opinion earlier versions of PHP *could* (not should but could) be described as a framework in essence, however I wouldn't say that anymore

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

2009-02-17 Thread Jochem Maas
Shawn McKenzie schreef: 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.

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

2009-02-17 Thread Paul Scott
On Tue, 2009-02-17 at 10:19 +, Richard Heyes wrote: There's no reason not to use it - it works for a good many people. And a few cats too. The *other* white meat? -- Paul All Email originating from UWC is covered by disclaimer

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

2009-02-17 Thread Richard Heyes
Can someone explain to me why pear mail_mime is not a good idea to use? I noticed some comments like that a few times but no explanation There's no reason not to use it - it works for a good many people. And a few cats too. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Stuart
2009/2/17 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 08:49:06PM +, Stuart wrote: 2009/2/16 Paul M Foster pa...@quillandmouse.com: snip Agreed. But here's the real reason, in my case. We develop the pages on an internal server, which has the URL

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

2009-02-17 Thread Thodoris
I didn't mention that it was a C specific framework, I just said IMO it was similar to a framework for the web. It's an opinion so I can't be wrong. In my opinion earlier versions of PHP *could* (not should but could) be described as a framework in essence, however I wouldn't say that anymore

[PHP] ssh2_tunnel

2009-02-17 Thread Gevorg Harutyunyan
Hi, Could you please give me short sample of ssh2_tunnel usage. The only sample that I found was manual sample and I can not understood how it works. -- Best Regards, Gevorg Harutyunyan

Re: [PHP] Apache odd behavior

2009-02-17 Thread Virgilio Quilario
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] XSLTProcessor help

2009-02-17 Thread Siegfried Gipp
On Monday, 16. February 2009 11:49:23 Tom Sparks wrote: help, when I include xsl:apply-templates/ the XSLTProcessor only strips the XML tags and outputs the text see result That is the xsl default behaviour. You need templates to do anything other with xml elements than just digging deeper.

Re: [PHP] Apache odd behavior

2009-02-17 Thread Stuart
2009/2/17 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: snip This is your problem, you're not understanding where the paths are being resolved. Apache has absolutely no involvement in resolving relative paths in your HTML files to absolute

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

2009-02-17 Thread Richard Heyes
Cats are the other white meat. Sorry have flu, may be delirious You haven't been around any birds recently have you? -- (A concerned) Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List

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

2009-02-17 Thread Virgilio Quilario
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. PHP is a server side scripting language for the Web using a C like language structure and conventions. The

[PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Argon
Hi; I want to enable error messages while I'm testing or developing. I use php 5.2.4 on ubuntu server. These two lines does only print notices. ?php ini_set('display_errors', 1); error_reporting(E_ALL); ? When I make something wrong like syntax error; I get blank pages. Is there something

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Virgilio Quilario
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

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Virgilio Quilario
I want to enable error messages while I'm testing or developing. I use php 5.2.4 on ubuntu server. These two lines does only print notices. ?php ini_set('display_errors', 1); error_reporting(E_ALL); ? When I make something wrong like syntax error; I get blank pages. Is there

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Richard Heyes
When I make something wrong like syntax error; I get blank pages. Because the PHP code is not running (because of the syntax error), and thus not setting the error reporting as desired. You'll need to aither use a .htaccess file (if you're running Apache) or make the changes in your php.ini file

[PHP] Re: PDO DBLIB does not support transaction

2009-02-17 Thread Jo�o C�ndido de Souza Neto
I´ve just solved it by myself by creating methods which executes BEGIN TRANSACTION, COMMIT TRANSACTION and ROLLBACK TRANSACTION directly. João Cândido de Souza Neto j...@consultorweb.cnt.br escreveu na mensagem news:1f.00.36931.96bba...@pb1.pair.com... Hi, I´m using PDO dblib to connect to

[PHP] Re: ssh2_tunnel

2009-02-17 Thread Colin Guthrie
'Twas brillig, and Gevorg Harutyunyan at 17/02/09 11:55 did gyre and gimble: Could you please give me short sample of ssh2_tunnel usage. The only sample that I found was manual sample and I can not understood how it works. Not sure this is the right list for this kind of question, so perhaps

[PHP] LOOKING FOR PHP DEVELOPERS IN NYC

2009-02-17 Thread Dreamstaff
Required Qualifications: - Bachelor's degree in Computer Science or equivalent (Desirable) - 3+ years Web development experience (PHP, HTML, AJAX, CSS, Linux, etc.). - 3+ years working with a web-based MVC framework - 3+ years experience using and operating in a LAMP environment. - 3+ years

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

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 3:11 AM, Per Jessen p...@computer.org wrote: Colin Guthrie wrote: I appreciate that https doesn't provide trust by default, but ultimately that's how Joe Bloggs public has been told to deal with it look for the padlock etc. etc. to be sure that your session is secure

Re: [PHP] Apache odd behavior

2009-02-17 Thread Paul M Foster
On Tue, Feb 17, 2009 at 12:27:58PM +, Stuart wrote: 2009/2/17 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: snip This is your problem, you're not understanding where the paths are being resolved. Apache has absolutely no

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Paul M Foster
On Tue, Feb 17, 2009 at 11:22:32AM +, Stuart wrote: 2009/2/17 Paul M Foster pa...@quillandmouse.com: snip Maintaining identical development, staging and live environments is one of the key components of reliable, repeatable and streamlined development, testing and deployment, but if

Re: [PHP] XSLTProcessor help

2009-02-17 Thread Tom Sparks
I have stopped XSLT from rendering out all the text but I am no further a long getting XSL stylescript to work I have been reading w3schools (http://www.w3schools.com/xsl/default.asp ) and XML 1.1 bible 3rd edition ( http://www.amazon.com/XML-Bible-Elliotte-Rusty-Harold/dp/0764549863 ) I am at a

Re: [PHP] Apache odd behavior

2009-02-17 Thread Stuart
2009/2/17 Paul M Foster pa...@quillandmouse.com: Well, the only way I know this is to look at the Apache logs. I was getting a lot of 3xx and 4xx errors (which don't show up directly in the browser), and looking at the requests, it appears that the browser is indeed dictating the place to find

Re: [PHP] Re: ssh2_tunnel

2009-02-17 Thread Jochem Maas
Colin Guthrie schreef: 'Twas brillig, and Gevorg Harutyunyan at 17/02/09 11:55 did gyre and gimble: lol. Could you please give me short sample of ssh2_tunnel usage. The only sample that I found was manual sample and I can not understood how it works. Not sure this is the right list for

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
Virgilio Quilario wrote: The difference is in manageability. Copying the scripts to another domain and you're using full url for your src and href when referring to local images or css or pages, will give you trouble and you must change all of them to your new domain. which takes about 3

[PHP] PHP AS an FTP server

2009-02-17 Thread Michael Kubler
Hi, This is probably a bit stupid, but I've been having issues getting any of the good FTP servers running on my Ubuntu 6.06 (LTS) box. I've tried Pro-FTP, Pure-FTP, and briefly installed some others, but the versions available for my distro don't seem to support MySQL (or I'm simply doing

Re: [PHP] PHP AS an FTP server

2009-02-17 Thread Thodoris
Hi, This is probably a bit stupid, but I've been having issues getting any of the good FTP servers running on my Ubuntu 6.06 (LTS) box. I've tried Pro-FTP, Pure-FTP, and briefly installed some others, but the versions available for my distro don't seem to support MySQL (or I'm simply doing

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Thodoris
When I make something wrong like syntax error; I get blank pages. Because the PHP code is not running (because of the syntax error), and thus not setting the error reporting as desired. You'll need to aither use a .htaccess file (if you're running Apache) or make the changes in your

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Lewis Wright
But that's where mistakes are often made. It also means you need to maintain a different live version to that of your development version. If find it much easier to have relative paths and then there's no build process needed to go live, I can just upload it. 2009/2/17 Michael A. Peters

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Jim Lucas
Thodoris wrote: When I make something wrong like syntax error; I get blank pages. Because the PHP code is not running (because of the syntax error), and thus not setting the error reporting as desired. You'll need to aither use a .htaccess file (if you're running Apache) or make the

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Jim Lucas
Lewis Wright wrote: But that's where mistakes are often made. It also means you need to maintain a different live version to that of your development version. If find it much easier to have relative paths and then there's no build process needed to go live, I can just upload it. 2009/2/17

[PHP] php cli memory leak error

2009-02-17 Thread Thodoris
Hi gang, I am trying to run a simple PHP script using the cli and I get a weird memory leak error. The script goes like this: #! /usr/local/bin/php ?php // Get command line options $options = getopt(f:d:o:); // Print them out print_r($options); // Clear the array unset($options); ? The

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Thodoris
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 that

Re: [PHP] PHP AS an FTP server

2009-02-17 Thread APseudoUtopia
On Tue, Feb 17, 2009 at 10:53 AM, Michael Kubler mdk...@gmail.com wrote: Hi, This is probably a bit stupid, but I've been having issues getting any of the good FTP servers running on my Ubuntu 6.06 (LTS) box. I've tried Pro-FTP, Pure-FTP, and briefly installed some others, but the versions

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Thodoris
for that matter, you could use variables to specify the relative path to make it absolute within each of the production and dev environments. Another possible solution I can think is building configuration files that could include the paths and parse them to find the path every time

[PHP] Re: XSLTProcessor help

2009-02-17 Thread Colin Guthrie
'Twas brillig, and Tom Sparks at 17/02/09 15:17 did gyre and gimble: I have stopped XSLT from rendering out all the text but I am no further a long getting XSL stylescript to work I have been reading w3schools (http://www.w3schools.com/xsl/default.asp ) and XML 1.1 bible 3rd edition (

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Thodoris
Thodoris wrote: When I make something wrong like syntax error; I get blank pages. Because the PHP code is not running (because of the syntax error), and thus not setting the error reporting as desired. You'll need to aither use a .htaccess file (if you're running Apache) or

Re: [PHP] php cli memory leak error

2009-02-17 Thread Jim Lucas
Thodoris wrote: Hi gang, I am trying to run a simple PHP script using the cli and I get a weird memory leak error. The script goes like this: #! /usr/local/bin/php ?php // Get command line options $options = getopt(f:d:o:); // Print them out print_r($options); // Clear the array

Re: [PHP] php cli memory leak error

2009-02-17 Thread Thodoris
Thodoris wrote: Hi gang, I am trying to run a simple PHP script using the cli and I get a weird memory leak error. The script goes like this: #! /usr/local/bin/php ?php // Get command line options $options = getopt(f:d:o:); // Print them out print_r($options); // Clear the array

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

2009-02-17 Thread Bastien Koert
On Tue, Feb 17, 2009 at 7:28 AM, Richard Heyes rich...@php.net wrote: Cats are the other white meat. Sorry have flu, may be delirious You haven't been around any birds recently have you? -- (A concerned) Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:

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

2009-02-17 Thread Shawn McKenzie
Virgilio Quilario wrote: 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. PHP is a server side scripting language for the Web using a C like language

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

2009-02-17 Thread Thodoris
Virgilio Quilario wrote: 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. PHP is a server side scripting language for the Web using a C like

Re: [PHP] php cli memory leak error

2009-02-17 Thread Jim Lucas
Thodoris wrote: Thodoris wrote: Hi gang, I am trying to run a simple PHP script using the cli and I get a weird memory leak error. The script goes like this: #! /usr/local/bin/php ?php // Get command line options $options = getopt(f:d:o:); // Print them out print_r($options);

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

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: Virgilio Quilario wrote: 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. PHP

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

2009-02-17 Thread Jim Lucas
Robert Cummings wrote: On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: Virgilio Quilario wrote: 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.

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

2009-02-17 Thread Boyd, Todd M.
-Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Tuesday, February 17, 2009 1:14 PM To: Robert Cummings Cc: t...@kinetix.gr; Shawn McKenzie; php-general@lists.php.net Subject: Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++ Robert Cummings

Re: [PHP] php cli memory leak error

2009-02-17 Thread Thodoris
seems to work fine here. What are your php.ini (memory related) settings? run: /usr/local/bin/php --ini and get the location of the php.ini file that is getting used. Check our the memory settings in that file. Some general options: max_input_time = 60 max_execution_time = 120

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

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: Virgilio Quilario wrote: 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

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

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 14:23 -0500, Andrew Ballard wrote: On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: Virgilio Quilario wrote: 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-17 Thread Thodoris
What's so funny? Assembly is just a framework for microcode. Cheers, Rob. So, what is the level that actually polarizes the sectors on the hard drive? Anything more abstract then that is then an API right? I guess it abstracts a level but I can hardly say that microcode is

[PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread mike
Pardon the messy code, but I got this working like a charm. Then I went to try it on some Russian content and it broke. The inbound was utf-8 encoded Russian characters, output was something else unintelligible. I found a PHP bug from years ago that sounded related but the user had a workaround.

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

2009-02-17 Thread Shawn McKenzie
Robert Cummings wrote: On Tue, 2009-02-17 at 14:23 -0500, Andrew Ballard wrote: On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: Virgilio Quilario wrote: Recently we had some serious discussion on local boards.

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Dotan Cohen wrote: 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

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

2009-02-17 Thread Michael A. Peters
Robert Cummings wrote: I think what you all are missing is that physics is just a framework for reality. I think you are missing that reality is just a construct of strawberry fields forever. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 13:40 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-02-17 at 14:23 -0500, Andrew Ballard wrote: On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: Virgilio Quilario

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

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 11:48 -0800, Michael A. Peters wrote: Robert Cummings wrote: I think what you all are missing is that physics is just a framework for reality. I think you are missing that reality is just a construct of strawberry fields forever. Carl Sagan once said something

[PHP] function array problem

2009-02-17 Thread Ashley Sheridan
I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name' = '', 'venue' = '', 'description' = '', 'errors' = Array())) { // code here displays the form } The function is used to both display an empty

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put relative statements in the page (header.php) like

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Dotan Cohen
Alternatively, $_SERVER['PHP_SELF']) could be switch()ed for known values, and $path be set accordingly with hardcoded values. Didn't notice this thread passing from the list. I will look into it. But sometimes you need to detect where something is located and that's the point of the whole

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Dotan Cohen
Easy to solve. ini_set(include_path, /srv/domain/phpinclude:/srv/domain/record_include:/srv/domain/process_include); Then just call it without path - IE include('foo.inc'); php will first look for foo.inc in /srv/domain/phpinclude, then in /srv/domain/record_include, etc. make

Re: [PHP] PHP AS an FTP server

2009-02-17 Thread Ashley Sheridan
On Tue, 2009-02-17 at 18:54 +0200, Thodoris wrote: Hi, This is probably a bit stupid, but I've been having issues getting any of the good FTP servers running on my Ubuntu 6.06 (LTS) box. I've tried Pro-FTP, Pure-FTP, and briefly installed some others, but the versions available for my

Re: [PHP] function array problem

2009-02-17 Thread Bastien Koert
On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name' = '', 'venue' = '', 'description' = '', 'errors' = Array()))

Re: [PHP] function array problem

2009-02-17 Thread Ashley Sheridan
On Tue, 2009-02-17 at 15:13 -0500, Bastien Koert wrote: On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name'

Re: [PHP] function array problem

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name' = '', 'venue' = '', 'description' = '', 'errors' = Array()))

Re: [PHP] function array problem

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 3:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-02-17 at 15:13 -0500, Bastien Koert wrote: On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: I've had a bit of a problem with a function I'm using for a form.

Re: [PHP] function array problem

2009-02-17 Thread Ashley Sheridan
On Tue, 2009-02-17 at 15:19 -0500, Andrew Ballard wrote: On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name'

Re: [PHP] function array problem

2009-02-17 Thread Ashley Sheridan
On Tue, 2009-02-17 at 15:21 -0500, Andrew Ballard wrote: On Tue, Feb 17, 2009 at 3:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-02-17 at 15:13 -0500, Bastien Koert wrote: On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: I've had

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Stuart
2009/2/17 PJ af.gour...@videotron.ca: Dotan Cohen wrote: 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

Re: [PHP] function array problem

2009-02-17 Thread Lewis Wright
What about: function addEvent($values='') { !is_array($values) $values = Array('name' = '', 'venue' = '', 'description' ='', 'errors' = Array()); //rest of the code } It's nice and sort. 2009/2/17 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-02-17 at 15:21 -0500, Andrew Ballard

Re: [PHP] PHP AS an FTP server

2009-02-17 Thread j's php general
On Wed, Feb 18, 2009 at 4:24 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I used vsftp for several FTP systems at work, and bar a few problems (errors on my part!) they work just fine. I've even got PHP talking to various Bash scripts to manage users and permissions for the FTP, and,

Re: [PHP] function array problem

2009-02-17 Thread Ashley Sheridan
On Tue, 2009-02-17 at 20:35 +, Lewis Wright wrote: What about: function addEvent($values='') { !is_array($values) $values = Array('name' = '', 'venue' = '', 'description' ='', 'errors' = Array()); //rest of the code } It's nice and sort. 2009/2/17 Ashley Sheridan

Re: [PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread Nathan Nobbe
On Tue, Feb 17, 2009 at 12:40 PM, mike mike...@gmail.com wrote: Pardon the messy code, but I got this working like a charm. Then I went to try it on some Russian content and it broke. The inbound was utf-8 encoded Russian characters, output was something else unintelligible. I found a PHP

[PHP] How should I ....--its a date/timestamp issue

2009-02-17 Thread Terion Miller
What are your suggestions folks on how to go about setting a date on a form so that a user can not set a start date prior to the current days date? I've been looking around php.net but is it a javascript thing in the validation I should be dealing with, basically as it is I have a form and a user

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Michael A. Peters wrote: PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put relative statements in the page

Re: [PHP] function array problem

2009-02-17 Thread Shawn McKenzie
Andrew Ballard wrote: On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name' = '', 'venue' = '', 'description' =

Re: [PHP] How should I ....--its a date/timestamp issue

2009-02-17 Thread Paul M Foster
On Tue, Feb 17, 2009 at 03:55:16PM -0600, Terion Miller wrote: What are your suggestions folks on how to go about setting a date on a form so that a user can not set a start date prior to the current days date? I've been looking around php.net but is it a javascript thing in the validation I

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
PJ wrote: Michael A. Peters wrote: PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put relative statements in the page

Re: [PHP] PHP AS an FTP server

2009-02-17 Thread rwlists
I have used PureFTPd for quite some time and have had nothing but success with features and security. I use MySQL soon to migrate to PostgreSQL for the authentication. It supports quota, bandwidth throttling etc Randall Wiggins On Wed, 18 Feb 2009 04:37:04 +0800, j's php general

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Michael A. Peters wrote: PJ wrote: Michael A. Peters wrote: PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Stuart wrote: 2009/2/17 PJ af.gour...@videotron.ca: Dotan Cohen wrote: 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

[PHP] SNMP Documentation and Features

2009-02-17 Thread Randall Wiggins
Has anyone here had much experience with the SNMP module? I started working with it a few weeks ago to find the documentation, configuration and features lacking. I figure its a low priority module for Zend and would like to get some help documenting things that are missing and maybe even

Re: [PHP] Re: XSLTProcessor help

2009-02-17 Thread Tom Sparks
- Original Message From: Colin Guthrie gm...@colin.guthr.ie Sent: Wednesday, 18 February, 2009 3:40:41 AM 'Twas brillig, and Tom Sparks at 17/02/09 15:17 did gyre and gimble: I have stopped XSLT from rendering out all the text but I am no further a long getting XSL stylescript to

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
PJ wrote: my server is FreeBSD 7.0 My situation is this: I am evolving www.ptahhotep.com from pure HTML to php-mysql-css (not an easy task for a newbie :-) ) The challenge is to set up the web site on my local server and then move it all to my web host. Unless I am mistaken, I am pretty sure I

[PHP] PHPers: help KDE wiki, please!

2009-02-17 Thread Dotan Cohen
KDE really needs a developer with PHP experience to sort out some issues with their wiki: http://aseigo.blogspot.com/2009/02/php-helper-for-userbase.html I anyone could donate the time, KDE and myself personally would appreciate it. Thanks! -- Dotan Cohen http://what-is-what.com

[PHP] PHP strategy -- pass complex parameters by value or by reference?

2009-02-17 Thread Clancy
I have a function to process a data file. This process opens the file, and then calls another function to process each entry. This function in turn calls another function to process each line of the entry. A set of fairly complex arrays specifies how all the possible types of entries and

Re: [PHP] PHPers: help KDE wiki, please!

2009-02-17 Thread Chris
Dotan Cohen wrote: KDE really needs a developer with PHP experience to sort out some issues with their wiki: http://aseigo.blogspot.com/2009/02/php-helper-for-userbase.html I anyone could donate the time, KDE and myself personally would appreciate it. Thanks! Aren't you a php developer? ;)

Re: [PHP] How should I ....--its a date/timestamp issue

2009-02-17 Thread Ashley Sheridan
On Tue, 2009-02-17 at 17:16 -0500, Paul M Foster wrote: On Tue, Feb 17, 2009 at 03:55:16PM -0600, Terion Miller wrote: What are your suggestions folks on how to go about setting a date on a form so that a user can not set a start date prior to the current days date? I've been looking

Re: [PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread mike
i tried that kind of stuff - it did not seem to work. i will try again... if anyone has any ideas i.e. use iconv to convert to A, then use DOM stuff, then use iconv to move it back to UTF8... etc. i am all ears. On Tue, Feb 17, 2009 at 12:46 PM, Nathan Nobbe quickshif...@gmail.com wrote: On

Re: [PHP] PHPers: help KDE wiki, please!

2009-02-17 Thread Dotan Cohen
Aren't you a php developer? ;) No, just a hobbyist who likes to tinker :) Hopefully by this time 2011 I will be a mechanical engineer, though! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

Re: [PHP] PHP strategy -- pass complex parameters by value or by reference?

2009-02-17 Thread Daevid Vincent
Not sure if you need to worry about it so much. PHP5 does a copy on write (and a default pass by reference) basically. And references are more like unix symlinks than C pointers. http://us3.php.net/manual/en/language.references.php http://bytes.com/groups/php/769586-copy-write-semantic

  1   2   >