[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-05 Thread Grant
>> I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the >> opcache is disabled. Someone filed a piwik bug but was told it's a >> php bug: >> >> http://dev.piwik.org/trac/ticket/4093 >> >> - Grant > > Is this a know

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-01 Thread Grant
> I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the > opcache is disabled. Someone filed a piwik bug but was told it's a > php bug: > > http://dev.piwik.org/trac/ticket/4093 > > - Grant Is this a known issue? - Grant -- PHP General Mailin

[PHP] PHP-5.5.2 +opcache segfaults with Piwik

2013-08-25 Thread Grant
I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the opcache is disabled. Someone filed a piwik bug but was told it's a php bug: http://dev.piwik.org/trac/ticket/4093 - Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] PHP as CGI-CLI on FreeBSD/Apache22

2011-06-27 Thread Grant Peel
Hi all, Up to this point we have been running PHP as an Apache 22 module. We would like to rebuild PHP over the next few weeks to run it as a CGI/CLI PHPSuexec system. I am hoping there may be others that have made this migration and might have a step by step how to (so far research shows it s

Re: [PHP] Re: PHP Security

2009-06-02 Thread Grant Peel
??? - Original Message - From: "Shawn McKenzie" To: Sent: Tuesday, June 02, 2009 7:39 PM Subject: [PHP] Re: PHP Security Grant Peel wrote: Hi all, I am currently setting up the next generation web server for our company and am in need of general consulting/advice on

Re: [PHP] PHP Security

2009-06-02 Thread Grant Peel
its -Grant - Original Message - From: "Phpster" To: "Grant Peel" Cc: Sent: Tuesday, June 02, 2009 5:53 PM Subject: Re: [PHP] PHP Security H, how about some details on OS, etc Bastien Sent from my iPod On Jun 2, 2009, at 17:26, "Grant Peel"

[PHP] PHP Security

2009-06-02 Thread Grant Peel
Hi all, I am currently setting up the next generation web server for our company and am in need of general consulting/advice on php set up security issues. Any one with knowledge and expierience please feel free to reply :-). -Grant

Re: [PHP] Security Support

2009-03-30 Thread Grant Peel
- Original Message - From: "Michael A. Peters" To: "Grant Peel" Cc: Sent: Sunday, March 29, 2009 10:00 PM Subject: Re: [PHP] Security Support Grant Peel wrote: Good Morning / Afternoon, We run several of our own servers: - Dell Power Edge 1U, Pentium, - FreeB

[PHP] Security Support

2009-03-29 Thread Grant Peel
e can setup servers ourselves, but simply do not have the time to research various run time, and security related items. TIA, -Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php suexec

2007-10-22 Thread Grant
to set this all up. TIA, -Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Securing PHP

2007-10-21 Thread Grant
ed by www. Should I consider phpsuexec? Or will the apache directives you mentioned below take care of it? -Grant "Nathan Hawks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are you running a multi-user hosting service? > > If so you can create incl

[PHP] Securing PHP

2007-10-20 Thread Grant
to only have the ability to read/write to thier own files and directories, php.ini directives that have simiar affect as mentioned above. Any help appreciated. -Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I am lost

2007-07-14 Thread Grant
and mysql. Thanks, Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best authentication method for user

2006-04-03 Thread Grant Young
User/ HTH. Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get class name in static method

2006-03-20 Thread Grant Young
Not sure about PHP5, but for PHP4 I found this hack solution at: http://passivedigressive.com/archives/2005-02/php-static-class-name-solution/ There are probably all sorts of issues with this approach, but it solved the problem at the time... HTH. Grant -- PHP General Mailing List (http

Re: [PHP] DB calls vs Session solution

2006-03-13 Thread Grant Young
head). Not sure if any of that's useful? BTW, if anyone sees any serious issues with this approach, let me know. I don't intend to roll out the solution to a live system for a while, so I still have plenty of time to revisit. Regards, Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Where can I find nice Web icons for custom admin interface?

2006-03-02 Thread Grant Young
Hi Nicolas. I've collected some pointers over the past few months to royalty free icons and designers at: http://del.icio.us/braquin/icons HTH. Regards, Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About date & time...

2006-02-28 Thread Grant Young
owing will work (if I understand your question correctly): $t = date('H\:\ i\:\ s'); HTH, Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html area

2006-02-28 Thread Grant Young
Tiny_MCE is another fairly simple editor - although I've experienced some quirks that can be quite annoying/tricky. http://tinymce.moxiecode.com/ Regards, Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File permissions do not seem to be my friend

2006-02-02 Thread David Grant
fect. The script is not allowed to access > /blah/blah/blah... > > Any suggestions? Anything I can do on my end to allow this? > > --PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- David Grant http://www.grant.org.

Re: [PHP] Print extended/parent classes

2006-02-01 Thread David Grant
Jochem, Good point. I thought he meant object given his example. :P David Jochem Maas wrote: > David Grant wrote: >> Mathijs, >> >> Mathijs wrote: >> >>> I have the following situation : >>> >>> >> >>> class A {

Re: [PHP] Hide email addresses from spam bots

2006-02-01 Thread David Grant
have good spam-filtering. You might consider using some sort of CAPTCHA image, but that isn't guaranteed to work flawlessly, and reading an e-mail address in a CAPTCHA image would be hard work. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.ph

Re: [PHP] How to destroy HTTP authentication (from PHP)?

2006-02-01 Thread David Grant
... > > S, has anyone found a proper way of achieving this (ideally from PHP)? > > Also, in case this cannot be done from PHP, does anyone know of any > Apache modules (or tricks/tweaks/settings) that will allow HTTP > authentication to be neatly destroyed? > > Thanks i

Re: [PHP] Print extended/parent classes

2006-02-01 Thread David Grant
gt; > Does anybody know how I can print class A also ? The above prints out: B Object ( [var2] => [var1] => ) Is this not what you expected? You can't print out *just* the properties of A. If this isn't what you want, you shouldn't be extending A. David --

Re: [PHP] html forms and php

2006-01-31 Thread David Grant
ping through temp array to recreate intial selection >for (var i = 0; i < tempArray.length; i++) { >fromList.options[i].text = tempArray[i].text; >fromList.options[i].value = tempArray[i].value; >fromList.options[i].selected = false; >

Re: [PHP] Class constructor

2006-01-31 Thread David Grant
he class." David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 WANTED: Junior PHP Developer in Bristol, UK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread David Grant
t want to change all function calls to put __LINE__ and > __FILE__ parameters. > I looked into assert too, but I have to change again all function calls > to be assert( "my_func(...)" ); which again will be a pain in the a... > as this function is often called in every scripts... &

Re: [PHP] Other than default grey button

2006-01-30 Thread David Grant
t="50" > > It works but I found the other important problem. This is image. What > happend when I change the language ? Nothing cause this is permanent > image and text "Move" is replaced by image > > So what should I do to change design of the button wit

Re: [PHP] doubt regarding while loop

2006-01-27 Thread David Grant
s returning an array. Try: $t1 = ""; $t2 = ""; while ($row = mysql_fetch_row($result)) { list($t1, $t2) = $row; ... } echo $t1; David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread David Grant
E, fopen($file, 'r')); curl_exec($curl); Note: you might need to set the CURLOPT_USERPWD option too. This is my best guess at a solution, but obviously I've not tested it. David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.ph

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread David Grant
of >> authentication and receiving and storing the uploaded files. > > The destination server doesn't have PHP When you say "Livebox", are you in fact referring to the router given out by your ISP? If so, what makes you think it's writable in the first place? David

Re: [PHP] Re: Does file_exists() 'honour' open_basedir?

2006-01-27 Thread David Grant
e NEITHER have /proc in the open_basedir path. >> >> What could be different about the PHP configs that makes one report a PHP >> warning, yet the other does not? > -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Does file_exists() 'honour' open_basedir?

2006-01-27 Thread David Grant
h. >> >> What could be different about the PHP configs that makes one report a PHP >> warning, yet the other does not? > -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML Question?

2006-01-26 Thread David Grant
f thumpnails scale dynamically according to screen > widht. > > I need to dump my thumpnails to screen and add some image info below every > thumpnail and I want to take advantage of the whole screen widht. http://www.alistapart.com/articles/practicalcss/ David -- David Grant http://ww

Re: [PHP] Recursive array_push?

2006-01-26 Thread David Grant
yer4] => FOO ) ) ) ) David David Grant wrote: > Kim, > > May the hack-o-rama commence: > > $str = "[layer1][layer2][layer3][layer4]"; > $parts = explode("][", substr($str, 1, -1)); > $text = ""; >

Re: [PHP] Recursive array_push?

2006-01-26 Thread David Grant
Kim, May the hack-o-rama commence: It works, but I'm not proud. :P David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread David Grant
Binay, I guess you could set up PHP to listen on port 25 and rewrite the headers of mail messages containing aliases, but that seems like a lot of work for what could easily be handled by a (much quicker) MTA. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http

Re: [PHP] function preg_match()

2006-01-25 Thread David Grant
d it in the ./configure step (--disable-all). Try using the following in the ./configure step: --with-pcre-regex=DIR (where DIR is where PCRE's include and library files are located) David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] How to check if an object exists

2006-01-25 Thread David Grant
t a patch to someone, but I'm a little new to the php > and apache working together. This might be related to PHP, but I would start out by asking around the Apache community. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to check if an object exists

2006-01-24 Thread David Grant
Derrick, Derrick Shoemake wrote: > Does anyone know if this is the proper way to check for an Objects > existence and where I can find more information on doing so? php.net/is_object php.net/instance_of David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List

Re: [PHP] query problem.

2006-01-24 Thread David Grant
Angelo, Angelo Zanetti wrote: > Why does the < > cause that not to be displayed? or is it retrieving it > correctly but not showing it because of the < > (which might be > conflicting with HTML tags? Look at the source! David -- David Grant http://www.grant.org.uk/ --

Re: [PHP] Re: Custom Usort Function

2006-01-24 Thread David Grant
ive a sorted list >> like this: >> >> 007 >> 90210 >> __underscore >> abra-cadabra >> Zebra >> >> But I need the function to provide a sorted list like this: >> >> 007 >> 90210 >> abra-cadabra >> Zebra >> __underscore >> >> >> Anyone know what I need to do to get these results? Please let me know. >> >> Thanks, >> >> Matt Palermo >> http://sweetphp.com > -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Book Sample Code Help

2006-01-24 Thread David Grant
Poppy, Poppy Alexandra wrote: > Parse error: parse error in book-1.php on line 90 Please provide lines 89-91 of book-1.php only please. David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP Gene

Re: [PHP] Cookie reposted

2006-01-23 Thread David Grant
, if you go to [A] and repeat, you'll find > your cookie remains. > > Surely someone must know what's happening here. > > Does anyone have any ideas? > > It would be nice to have a persistent cookie. Do I also have to use a > session to make this happen? > > tedd -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Please ignore the previous e-mail: I slipped on the keyboard. :) -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Barry wrote: > Austin Denyer wrote: >> On Mon, 23 Jan 2006 16:37:12 + >> David Grant <[EMAIL PROTECTED]> wrote: >> >>> tedd wrote: >>> >>>> Hi all: >>>> >>>> While I'm sure this is obvious for most, but

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Austin, Austin Denyer wrote: > On Mon, 23 Jan 2006 16:37:12 + > David Grant <[EMAIL PROTECTED]> wrote: >> tedd wrote: >>> ... >> Can you provide some examples for what you mean? > > I think he's referring to the fact that you can have one cooki

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
nd browser B will produce > another value. Can you provide some examples for what you mean? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP SSH2

2006-01-23 Thread David Grant
o i print the output of the command executed using ssh2_exec? >> thanks, >> vedanta >> > > > > -- > *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* > Vedanta Barooah > YM! - vedanta2006 > Skype - vedanta2006 > -- David Grant http://www.grant.org.uk/ -- PH

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread David Grant
Markus, Markus Braun wrote: > libapache2-mod-php4 is already the newest version. > mysql-server is already the newest version. > mysql-client is already the newest version. That should be all you need then. Have you restarted apache yet? David -- David Grant http://www.grant.org.

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread David Grant
Markus, Markus Braun wrote: > I have installed it with apt-get install php4 php4-mysql I think you'll need libapache-mod-php4 too (p.d.o is down at the moment, so can't be sure), as well as the mysql-server and mysql-client packages. David -- David Grant http://www.grant.

Re: [PHP] problem encountered with stristr-based function

2006-01-20 Thread David Grant
;href" and get the following: href="URL">Text back, which is clearly fubar, which highlights the necessity for some handy regex skills. Following a quick google, I found this page: http://aidanlister.com/repos/?file=function.str_highlight.php David -- David Grant http://www.grant.

Re: [PHP] New identification after an error...

2006-01-20 Thread David Grant
mething similar, i.e. if (! $auth) { // HTTP Headers } David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date("H", $datevalue) always adds an hour?

2006-01-20 Thread David Grant
Murray, I can't think what else it might be. Sorry! David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date("H", $datevalue) always adds an hour?

2006-01-20 Thread David Grant
Murray, As far as I know, Queensland is in EST (Eastern Standard Time), so that is the correct value. Are you using the same machine or is it remote? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] date("H", $datevalue) always adds an hour?

2006-01-20 Thread David Grant
Murray, What do you get if you print date("T")? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php script running as a cgi

2006-01-16 Thread David Grant
-- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread David Grant
hit, but if you want to do that, it's your lookout. A quick search turned this up: http://www.zend.com/zend/trick/tricks-sept-2001.php David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Lions and tigers and slashes, oh my!

2006-01-13 Thread David Grant
27;. The query string sees the ampersand and doesn't show > anything past that in the condirion. URL encoding the category ought to convert the text to Oil%20%26%20Gas, which ought to work without any problems. Have you tried this? David -- David Grant http://www.grant.org.uk/ -- P

Re: [PHP] Lions and tigers and slashes, oh my!

2006-01-13 Thread David Grant
r would come to > mind immediately. Can someone drop kick me in the right direction? Thanks! Probably not the answer you're looking for, and somewhat site-stepping the issue, but can't you use the category key instead of its title? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 4.4.2 released!

2006-01-13 Thread David Grant
recommended to upgrade to PHP 4.4.2. Any indication as to when the Windows binaries will become available? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP for Mac

2006-01-13 Thread David Grant
points to this[2] resource for installing a portfile. It appears to come with GD compiled in already, but you'll have to look a bit further for Ming. > I am mainly looking for GD and mingswf module on Mac. 1. http://www.php.net/manual/en/install.macosx.php 2. http://php5.darwinports.com

Re: [PHP] transferring db info

2006-01-12 Thread David Grant
reinsert the data. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image size?

2006-01-11 Thread David Grant
Will, William Stokes wrote: > Can I get pixel sizes from a uploaded web applicable image with PHP? I mean > width and height as pixels. If so How? http://www.php.net/getimagesize David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
Jochem, Jochem Maas wrote: > David Grant wrote: > 1. your looping a result set which involves a db connection - lots > of pontential things that could go wrong... Absolutely, and lots of lessons to learn too. > 2. its not a centralized 'solution' - code reuse is a good thi

Re: [PHP] replacing .shtml #exec cgi with php calls

2006-01-10 Thread David Grant
obfuscating the code. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
t with small steps, and asking someone new to PHP to separate various tiers might put them off. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
.net/manual/en/ref.pgsql.php Microsoft SQL Server http://www.php.net/manual/en/ref.mssql.php Oracle http://www.php.net/manual/en/ref.oracle.php David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-10 Thread David Grant
Gregory, David Grant wrote: > Gregory Machin wrote: >> I have a table with a timestamp column and would like to use his to >> calculate the age of the record . how would i go about this... >> I would also like to exicute a mysql stament that pasess the tables and >> re

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-10 Thread David Grant
f the record, finding 72 hours is fairly trivial - 72 hours is 259200 seconds (72hrs * 60mins * 60secs). Therefore your query will be: DELETE FROM WHERE CURRENT_TIMESTAMP() - > 259200 David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Executing a string

2006-01-09 Thread David Grant
Philip Hallstrom wrote: > http://us2.php.net/eval Pay close attention to the oft-used quote from Rasmus Lerdorf: "If eval() is the answer, you're almost certainly asking the wrong question" David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http:

Re: [PHP] The meaning of and "@"

2006-01-09 Thread David Grant
BOTH)){ > > Is that a "pointer"...address of...? > > Todd > -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() problem

2006-01-09 Thread David Grant
irect/elegant way to add the site root > (or any other dir for that matter) to the include path? > > TIA > Nuno Trancoso > -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php5 SOAP WSDL parsing

2006-01-09 Thread David Grant
://www.symg...') #1 {main} > > This is obviously truncated. I've tried looking at the apache2 error_log > but I can't see any further detail. > > I'd really like to know what PHP's problem is with my wsdl. How can I > see the full output of this error?

Re: [PHP] Problem with fsockopen and SSL

2006-01-09 Thread David Grant
equest that this server could not understand. > Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7e DAV/2 mod_jk/1.2.1 > Server at easy-demo.tcinternet.de Port 443 > > What did the Webserver not understood? > > Btw. i can't use cURL because the server has an old version of PH

Re: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread David Grant
/pear.php.net/package/Text_CAPTCHA Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread David Grant
utting edge, must browsers should display it fine. To answer your question, Opera is probably the third most popular browser on Windows. Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread David Grant
Nanu, Nanu Kalmanovitz wrote: > The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but > not in Netscape 7.0. Looks fine to me. What is the contents of hello.php? Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.ne

Re: [PHP] problem: pgsql (unicode) => php5 => HTML (iso-8859-1)

2005-12-20 Thread David Grant
Michelle, Michelle Konzack wrote: > Please can anyone tell me the right (???) Tag to get Motilla > right to UNICODE? Try: Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can someone explain this query to me

2005-12-20 Thread David Grant
Ross, Ross wrote: > $query = "delete from meetings where id IN (".implode(",", $ids).")"; > > Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN > do?? It's the equivalent of WHERE id = 1 OR id = 2 OR id = 3 OR id = 4

Re: [PHP] ? Split string into smaller chunks

2005-12-19 Thread David Grant
Labunski wrote: > I need to split a long string into smaler chunks (an array), as a separator > using every third \n (and not just every \n). > I could use 'explode', but then it would produce too many chunks. php.net/preg_split Cheers, David -- David Grant http://www.gra

Re: [PHP] PHP/MySQL noob rides again.. into trouble

2005-12-16 Thread David Grant
Paul, Paul Jinks wrote: > David Grant wrote: >> $SQLQuery = "SELECT * FROM project WHERE projTitle = '" . >> $HTTP_GET_VARS['projTitle'] . "'"; > > Yep, that fixed it. Thanks. I had a feeling there was a mix up with the > "s

Re: [PHP] PHP/MySQL noob rides again.. into trouble

2005-12-16 Thread David Grant
#x27;projTitle'] . "'"; Not sure why you've got the or die() there. Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread David Grant
t definition might be what you're after. Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach $_FILES

2005-12-14 Thread David Grant
Shaun, That is the documented behaviour for form fields in PHP. See "Dots in incoming variable names" on the following page: http://php.net/variables.external Cheers, David Grant Shaun wrote: > Hi, > > I have a form on my site with many file fields for users to upload fi

Re: [PHP] Problem: Distortion while saving text file.

2005-12-14 Thread David Grant
Could it be the other way around, i.e. Windows is stripping slashes, and Linux is not? How does $contents come to exist in the script? Check for any difference in your ini files for magic_quotes_runtime. Cheers, David Grant Janne Miettunen wrote: > What could be wrong when this is transfor

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
Erm, REMOTE_ADDR, not REMOTE_HOST. Sorry! David Grant wrote: > Quick and (very) nasty: > > $parts = split(".", $_SERVER['REMOTE_HOST']); > if ($_SERVER['REMOTE_HOST'] == '127.0.0.1' || ($parts[0] == '192' && > $parts[1] ==

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
rote: > i know about > > $_SERVER['REMOTE_HOST'] > > but i think i should of said how do i compare any address starting with > 192.168. > > sorry if my first question was to vague > > > David Grant wrote: > >> Try $_SERVER['REMOTE_HOST&#

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
gt;The address of the page (if any) which referred the user agent to >the current page. This is set by the user agent. Not all user agents >will set this, and some provide the ability to modify HTTP_REFERER >as a feature. In short, it cannot really be trusted. > > notice the last 7 words > -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread David Grant
g so manually is not a problem, I would just use for > web paragraphs, and for book paragraphs. However, > formatting such text with a scrip is very difficult. Does anyone knows a > good exaple of such script? > -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR Validate email question

2005-12-08 Thread David Grant
ould work sometimes and why it wouldn't work others. Any help or advice > would be greatly appreciated. > > Thanks in advance! > -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
php > or b) Change all mysql_* functions to their counterparts in mysqli_* Hmm, that's how I *should* have put it. :) Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
why I'm getting "undefined function" errors. > > PHP.ini has no reference to mysqli. I don't know if changing this would > enable the functions specific to PHP > 4.x. > > Paul Hickey > Christian Patriot > Palm Bay Fl > -- David Gran

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
'--enable-magic-quotes' '--enable- > mbstring' '--enable-track-vars' '--enable-trans-sid' '--enable- > wddx=shared' '--enable-xml' '--with-dom' '--with-gd' '--with-gettext' > '--with-mysqli=/usr/local/

Re: [PHP] Eval To String

2005-12-07 Thread David Grant
Shaun Shaun wrote: > Is it possible to return the result of eval function to a string rather than > outputting directly to the browser? ob_start(); eval('$eval = "evil";'); $output = ob_get_clean(); Cheers, David Grant -- David Grant http://www.grant.org.uk/ --

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread David Grant
CTED] Can this address be unsubscribed? Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forum

2005-12-06 Thread David Grant
Larry E. Ullman wrote: >>>> Does anyone of you know of a good forum that is easy to customize and >>>> supports sticky notes, user registration, bb code and stuff like that? http://fudforum.org/features.php I've heard lots about it, but never used it. Cheers, Dav

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread David Grant
e the code out to a function and pass the parts that vary as parameters. Cheers, David Grant Steve McGill wrote: > Hi, > David is right about the unwanted side-effect. Thanks for the idea though. > Unfortunately the 'greater problem' is not so great, I've just been doing &g

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread David Grant
y it has > more options that I'd never used. > > And yes Code folding is nice don't use it much tho. > > On Tuesday 06 December 2005 09:48, David Grant wrote: >> Stephen Leaf wrote: >>> KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention.

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread David Grant
Mmmm, reminds me of Kate! When I use KDE, I used Kate for all non-PHP coding tasks, because it has great highlighting, and code folding too. :) Cheers, David Grant -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >