[PHP] newbie

2003-03-11 Thread Robin
Hello Please could somebody point me in the right direction for learning about PHP? Any links would be greatfully appreciated! Thanks Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php4isapi.dll

2003-03-25 Thread Robin
Hello I am trying to install Cacti and it requires PHP.I have followed the instructions which require me to add the above dll and php extension into IIS. However, i have searched my entire hardrive, but can not find this dll so i cant continue. Please can somebody help? Thanks Robin

Re: [PHP] php4isapi.dll

2003-03-25 Thread Robin
Thanks Nikunj Which actual download is it? The zip or the installer? Robin "Nikunj Virani" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Download PHP from http://www.php.net/downloads.php. You will find > php4isapi.dll with it. > > Regards, >

[PHP] safe mode question

2006-01-08 Thread Robin
/plugins//cvstracker/bin/post.php %r %p %{sVv} ) # END added by gforge-plugin-cvstracker And in /opt/gforge/gforge/plugins//cvstracker/bin/post.php, the code: echo "safemode "; echo ini_get('safe_mode'); Displays : "safemode 1" I have tried the same thing from the command line, and the only way I can make it the same, is to add the "-n" flag. Any thoughts or pointers? Thanks -Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] safe mode question

2006-01-08 Thread Robin
Doh - I figured it out (for those who were interested). The permissions on /etc/php.ini was set to 600 (owner == root). Changing this it other read, fixes the issue. Any idea why Suse would do this? Thanks -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Problem with FTP and fopen

2003-02-11 Thread Robin Mordasiewicz
; - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > -- > > Craig Jackson > __ > Wildnet Group LLC

[PHP] default php sessions in a database

2003-02-11 Thread Robin Mordasiewicz
Is there a way to configure php to use a database for sessions rather than a text file. I have a server farm and want the session files to be accessible to all machines in the cluster. I can have the session file on nfs but I am worried about file locking. I have read tutorials on how to set sessi

[PHP] msession users

2003-02-11 Thread Robin Mordasiewicz
Are there any msession users here, if so please share your experiences. I am considering using msession for a multiple server environment for handling session data. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] msession users

2003-02-12 Thread Robin Mordasiewicz
for a multiple server environment for > RM> handling session data. > > I have been using it as a general session manager for about a year without ever > having any problems. I have a class to replace the normal php session handler if > you would like to take a look at it. > > --

[PHP] buildconf: Your version of autoconf likely contains buggy cache code

2003-02-12 Thread Robin Mordasiewicz
when I run buildconf I get this message. Everything seems to work ok but Can someone explain this warning. buildconf: autoconf version 2.53 (ok) buildconf: Your version of autoconf likely contains buggy cache code. Running cvsclean for you. To avoid this, install autoconf-2.

[PHP] mail function - using remote smtp in php.ini

2003-02-17 Thread Robin Mordasiewicz
IS there a way to tell php to use a remote smtp daemon for its mta under UNIX. I see in the example it looks like windows can be configured to use a remote smtp. If so what is the syntax. [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; Fo

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Robin Mordasiewicz
ail is working and that hte > PHP code is working. I don't think I did the bad php command. Could it be > the sendmail command be set wrong??? > > Thanks, > FletchSOD > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Adam Voigt ([EMAIL PROTECTED]) > The Cryptocomm Group > My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc > -- > Adam Voigt ([EMAIL PROTECTED]) > The Cryptocomm Group > My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc > -- Robin Mordasiewicz 416-207-7012 UNIX System Developer Primus Canada -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] $GLOBAL question

2003-08-18 Thread Robin Kopetzky
Good Morning!! I'm trying to print $GLOBALs this way and it doesn't work: Does someone know the 'right' way to do this?? Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Re: $GLOBAL question

2003-08-18 Thread Robin Kopetzky
DOH! Damned fat-fingering!!! Must learn to type s l o w l y... Thanks! Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: [PUP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Robin Kopetzky
Sorry bat that - I deeply apologize for the mess I caused. I have an ISP and send email billing out. The return receipt is to make sure the user gets the email. I have turned off the receipts and will NOT turn them on again, Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Serv

[PHP] Help! authorization question...

2002-06-13 Thread Robin Bouwhuis
Hello, I am new to PHP and trying to learn. I am trying a tutorial and this is the script. It is supposed to pop up a box requiring a username and pass. but all I get is 'Authorization Required' Any suggestions? I am running PHP3 and 4 and on an IIS server (it is just for testing, normally

Re: [PHP] Editor

2002-06-13 Thread Robin Bouwhuis
In notepad there is an option for 'goto' if you are not using wordwrap it is under the edit menu. then type in the line number and it will take you to the line you need Robin - Original Message - From: "Daniele Baroncelli" <[EMAIL PROTECTED]> To: <[EMA

[PHP] Function calling from url

2003-09-06 Thread Robin Kopetzky
Good morning! I would like to call a function from a 's ACTION attribute. This is what I'm trying to do: I can include the PHP_FILENAME but passing parameters to the function I can't figure out how to do. Any help would be appreciated. Robin 'Sparky' Kopetzky Blac

[PHP] Array question

2003-09-27 Thread Robin Kopetzky
Good morning all!! Can you nest an array within an array?? Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] Thank you in advance. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net

[PHP] HTML output buffering

2003-10-16 Thread Robin Kopetzky
Good afternoon! Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] HTML output buffering

2003-10-16 Thread Robin Kopetzky
Thank you for responding - Doh! I didn't look before leaping "Oh, boy..." Sparky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] JavaScript question

2003-11-02 Thread Robin Kopetzky
e next slide in the sequence. Any help would be greatly appreciated and my PHP skills are vastly above my JavaScript skills (very basic beginner). Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To

[PHP] Javascript question

2003-11-20 Thread Robin Kopetzky
don't want to use a 'Submit' button as this is very cumbersome when I add the other 3 lists... Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Javascript question

2003-11-20 Thread Robin Kopetzky
Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] String returned from forms and such

2003-11-23 Thread Robin Kopetzky
s to add the %20 to the string but didn't get it. What am I doing wrong or missing?? Any help is VERY appreciated!! Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Windows PHP permissions question

2003-11-25 Thread Robin Kopetzky
Good Morning/Afternoon. I have a program that is trying to write to a directory on a Windows server and I don't know how to setup the permissions to read/write/delete just from this directory. I have it permissions set to 'Everyone' but that doesn't work. Help?!?! Robin &#x

[PHP] Radius question

2003-11-30 Thread Robin Kopetzky
Has anyone seen or know of a PHP implementation of a RADIUS server?? Please reply off list - [EMAIL PROTECTED] Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reading email from sendmail

2003-12-08 Thread Robin Kopetzky
but reading from sendmail???... Any information is greatly appreciated and profoundly useful. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP-Mysql problem

2003-12-11 Thread Robin Kopetzky
MySql module included?? I am a EXTREME newbie when it comes to compiling anything in Linux. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] No

2003-12-24 Thread Robin Kopetzky
Good Morning and Merry Christmas to all. I recently installed PHPTriad to a new server and the http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML via echo or not

2003-12-29 Thread Robin Kopetzky
your doing is dumping text to the output subsystem, there shouldn't be any speed decrease in the code. Yes, I know, there are advocates for every kind of method to display HTML code but just wanting to get others opinions on the subject. If you wish, email me off-list @ sparkyk-AT-b

[PHP] Class Accessor methods??

2004-01-01 Thread Robin Kopetzky
Happy New Year!! Is there a more efficient type of class accessor than using Get/Set like this? function GetValue() { return $this->value; } function SetValue($value) { $this->value = $value; } Robin &

[PHP] Retrieve key from $_POST

2004-01-05 Thread Robin Kopetzky
x27;switch' statement. Any help is appreciated. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Retrieve key from $_POST

2004-01-05 Thread Robin Kopetzky
Reworked the code and used an 'Input TYPE="button"' and fixed the problem. Thanks to all who replied. Amazing isn't it, that as we grow older the brain slowly turns into mush... Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020

[PHP] Buffalo'ed, stumped, confused...

2004-01-08 Thread Robin Kopetzky
tumped with this one. I thought the value was passed back as an array but maybe I'm wrong... Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Spell checker in PHP

2004-01-09 Thread Robin Kopetzky
ate if the user mangles the words. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Debug code

2004-01-19 Thread Robin Kopetzky
Good morning! Is there any way to keep the compiler from adding 'debug code'? Example: if ($b_debug) { echo ... } Just trying to eliminate code bloat. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 870

RE: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Robin Kopetzky
> Microsoft's lawyers probably could've handled it more tactfully, but > they were required to take action. Simple solution to a complex problem - Follow William Shakespeare's outlook or the joke 'What's a thousand lawyers at the bottom of the ocean called? -

Re: [PHP] Stripping!!!

2001-01-11 Thread Robin Vickery
> "S" == "K Simon" <[EMAIL PROTECTED]> writes: > Thx, but could anybody give me an example? It shouldnt be too hard?! If you feel you have to do it in php then this should work. You'd save a lot of effort if you used the unix 'cut' command though. cut -d ' ' -f 1 inputfile.txt > outputfil

Re: [PHP] stripping the keywords from a search engine... again...

2001-01-19 Thread Robin Vickery
HTTP_REFERER) for later analysis. I've not split the search terms up into words (I'm thinking of how boolean searches like 'foo AND NOT bar' would skew the results and how search phrases like 'foo AND "bar baz"' would be split up). Unfortunatel

Re: [PHP] Non-existant folders??

2001-01-23 Thread Robin Vickery
g Apache then you can do it with a few lines in your config file using mod_rewrite. Something similar to: RewriteEngine On RewriteRule ^/([^/]+)/(.*) /scripts/$2 [E=companyname:$1] Which given a url such as http://yoursite.com/mycompany/index.php should (I've not tested it) call /s

Re: [PHP] Tough one?

2001-02-21 Thread Robin Vickery
umptions about the order of the fields in the form is dangerous. Making assumptions about the order of an associative array is doubly so, although PHP seems remarkably forgiving about it. But assuming that's really what you want: $value)

Re: [PHP] I'm confused about Regular Expressions.

2001-02-22 Thread Robin Vickery
ng its contents > rather than just trusting the extension that was typed. Or look at the mime type held in $HTTP_POST_FILES['uploadname']['type'] -- Robin Vickery. BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2

Re: [PHP] newbie array question

2001-03-12 Thread Robin Vickery
the initial values in the hash, you can do it with array_flip() like this: You'll end up with a hash like this: $form = array( 'firstname' => 0, 'lastname' => 1, 'city' => 2, 

Re: [PHP] Replace everything except of...

2001-03-13 Thread Robin Vickery
>>>>> "MT" == Martin Thoma <[EMAIL PROTECTED]> writes: > Hello ! How can I use eregi_replace to replace every ">" with > ">", except when it's "" ?? You need a lookbehind assertion... $stri

Re: [PHP] why isn't this working? (many questions inside)

2002-01-28 Thread Robin Chen
Maybe your script timed out before it could finish. Try set_time_limit(0) Another possibility is that your browser gave up. You may need 4GB of disk cache because browsers usually save all files in cache before copying them to the place you designate. Robin Wei Weng wrote: > > First

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Robin Chen
"[-^-!-%-" wrote: > Hello everyone, > > I'm in the process of revising my db development prices, and was wondering > what the best practices were. I want to keep my prices low, but I often > feel like I'm not charging close to what I should be charging. > > 1) What is the going rate for Databas

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Robin Chen
or features completed, 30% when delivered, last 10% when finalized. On even large projects $15k+, we usually go by phases. Robin "[-^-!-%-" wrote: > Hello everyone, > > I'm in the process of revising my db development prices, and was wondering > what the best practices wer

[PHP] *** I want a swanky icon in the address bar, like major sites (e.g. php.net, google.com)...

2001-10-22 Thread Robin McKenzie
ites, that someone would have come across this before... Regards, Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] = 0 and = "0"

2001-10-25 Thread Robin Chen
why does work properly but not the following Thanks, Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] = 0 and = "0"

2001-10-25 Thread Robin Chen
Thank you, that was it. I needed to test the variable against both an integer and a string, so I ended up using (string) when I need to compare a string. Rest of the time, it's an integer. Robin Rasmus Lerdorf wrote: > > > If you set $qty=0; then $qty has no value. > >

Re: [PHP] = 0 and = "0"

2001-10-25 Thread Robin Chen
The integer 0 is equal to False, but not Null. Robin Kodrik wrote: > > > > If you set $qty=0; then $qty has no value. > > > > Of course it has a value. > > No it doesn't have a value. > PHP interprets 0 as null. > > A very easy way for you to c

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Robin Chen
You don't need to use the $has_empty variable, but I thought it would be better to just display the message once. Robin [EMAIL PROTECTED] wrote: > > I am a perl user trying to convert to php > > how would i turn this perl into php? > > use CGI; > > $name = pa

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Robin Chen
Oops, I didn't mean to post the same code that's been posted. The subject sorter doesn't work correctly on Netscape Messenger. I thought I had finished reading the thread. My apologies, Robin Robin Chen wrote: > > > $required = array('name',&#

[PHP] Equivalent of the Basic function SELECT...CASE

2001-12-06 Thread Robin McKenzie
Could anyone tell me if there is a PHP equivalent to: SELECT x CASE 1 to 5 {...} CASE ELSE {...} END SELECT Muchos gracias. Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] storing line breaks in a database

2001-12-21 Thread Robin McKenzie
I am storing comments in a MySQL db, and want to know how to include line breaks from multi-line input boxes. Does anyone have any experience of doing this? Kind Regards, Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Mail()'s not playing nicely :(

2001-06-30 Thread Robin Chen
Instead of \n try \r\n Robin Jamie Thompson wrote: > > ok so i got > > mail("[EMAIL PROTECTED]", "$message", "sms alert", "Return-Path: $email > <$email>\nFrom: $email <$email>\nReply-To: $email <$email>\nX-Mailer: " .

[PHP] Re: Regex help

2001-08-22 Thread Robin Vickery
k. > How about this approach? SetEnvIfNoCase Referer "^http://www.oursite.com/"; local_ref=1 Order Allow,Deny Allow from env=local_ref Allow from all I'd tighten up your regex slightly too. As it was it would match pretty much any filename with those lette

Re: [PHP] The future of PHP

2001-08-26 Thread Robin Chen
solutions. Second, users cannot see my code. Robin Manuel Lemos wrote: > > No, I mean executables that may be just like VB executables that > basically contain PHP code compiled into Zend bytecodes or whatever is > enough for most people be stopped from copy source code directly

[PHP] RE: [PHP-WIN] Can PHP and Java work together?

2001-08-31 Thread Robin Bolton
as JavaScript is easy to circumvent. -- Robin > -Original Message- > From: Robin Bolton [mailto:[EMAIL PROTECTED]] > Sent: August 31, 2001 8:49 AM > To: Jack; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Can PHP and Java work together? > > > If you

[PHP] RE: [PHP-WIN] Can PHP and Java work together?

2001-08-31 Thread Robin Bolton
If you're talking about a form, then what you can do is set the properties for the button like so: > -Original Message- > From: Jack [mailto:[EMAIL PROTECTED]] > Sent: August 31, 2001 2:13 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP-WIN] Can PHP and Java work together?

[PHP] Re: Regular Expressions - A relatively simple search...

2001-09-07 Thread Robin Vickery
', I want to have the > statement return 'txt' you don't need a regular expression for that... $extension = strrchr(basename($userfile_name), '.'); -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Robin Vickery
[EMAIL PROTECTED] (Martin Lindhe) writes: > > Hi Martin, > > > > Take a look at the Apache mod_rewrite docs. > > > > http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html > > > Thanks alot! > I made a similar solution which works > > RewriteEngine on > RewriteRule "^/x/(.*)"

[PHP] Re: preg_replace_callback()

2001-09-10 Thread Robin Vickery
x27;your_echo' on each > key/value pair. > > Dunno exactly how preg_ uses it though... It calls the callback function for each match, passing it an array. The matching string is replaced by whatever the callback function returns. Here's a fairly pointless example of names and emai

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Robin Vickery
/en/ref.outcontrol.php and Zeev Suraski wrote an article at Zend http://zend.com/zend/art/buffering.php -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: problem in the small code

2001-09-11 Thread Robin Vickery
[EMAIL PROTECTED] (Balaji Ankem) writes: > What is the problem with following code.. > $sql1="DELETE from tinventory where inv_tag='$inv_tag'; no closing doublequote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

[PHP] mail() function not working

2004-07-31 Thread Robin Wilson
Hi I am not a php programmer but have installed a php based blog. When the php script tries to use the mail() function it fails. Does the mail function rely on the sendmail server? Is there a way to make the mail() function just send via an external smtp server? Thanks in advance Robin

[PHP] Re: Re: Mail() not working

2004-07-31 Thread Robin Wilson
come from me, not from my linux system (otherwise my ISPs smtp server doesn't accept it). Sending mail works fine with the command line mail command. What should I do to make this work? Thanks Robin --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: [PHP] find quoted string within a string (more of a regex question, though ..)

2004-09-10 Thread Robin Vickery
the slashing of quotes. The standard perl regexp for matching double-quote delimited strings is this: /"([^"\\]|\\.)*"/ which copes nicely with escaped characters. You'll probably need to double up the backslashes in php. $regex = '/"([^"]|.)*&q

[PHP] confused about magic quotes

2004-09-17 Thread Christopher-Robin
txt); } } return $txt; } The same is to be done for , but there's nothing written about the interaction of and . So, could anyone help me, please? Thanks, Kai aka Christopher-Robin PS: Apologies for my bad english. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about array_search

2004-10-11 Thread Robin Vickery
27;s not there at all it returns FALSE. you need to use something like: if (array_search($needle, $haystack) === false) { // add $needle to $haystack } http://lv.php.net/array-search http://php.net/manual/en/language.operators.comparison.php -robin -- PHP General Mailing List (htt

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread Robin Vickery
her the index has been set before you try to read from it. In this case, you're pretty much stuck with the second option as you're getting the array from an external source. So do something like this: $photo = isset($resultEntries[0]["jpegphoto"]) ? $resultEntries[0][

Re: [PHP] Fwd:

2004-10-19 Thread Robin Vickery
> Original-Recipient: rfc822;[EMAIL PROTECTED] It's whoever's subscribed under the address [EMAIL PROTECTED] - I tried complaining to them a couple of weeks ago but got no response. One of the few times I *haven't* got a response from them in fact. -robin -- PHP General

Re: [PHP] str_replace problem

2004-10-20 Thread Robin Vickery
placements. The first thing you're doing is replacing the newlines with tags. The second and third things you're doing will disable all the tags including the tags you've just inserted, by replacing '<' with < and '> with > html entities; The fourth thing you're doing is disabling the html entities by replacing '&' with & including the entities you've just inserted as steps two and three. -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PCI compliance issue

2009-06-02 Thread Robin Vickery
the directory is denied - hence the 403 FORBIDDEN. The second url (http://www.ranghart.com/cgi-bin/%3fD=A) requests a file called /cgi-bin/?D=A. This file genuinely doesn't exist so the url gets rewritten to index.php - hence your 200 OK response. -robin

Re: [PHP] [php] read/write error

2009-06-10 Thread Robin Vickery
ual page tells you why. -robin

Re: [PHP] Show the entire browser request

2009-06-10 Thread Robin Vickery
al headers are as they always were. It's the entire > request verbatim (valid or not) that I'd like to add. > Is installing the pecl_http extension on your server an option? http://php.net/manual/en/function.httprequest-getrawrequestmessage.php -robin

Re: [PHP] Show the entire browser request

2009-06-10 Thread Robin Vickery
2009/6/10 Robin Vickery > > > 2009/6/10 Dotan Cohen > >> > Just checked your site in Elinks (works like Lynx) and I'm getting the >> > headers come back to me. I'm assuming you changed your site code before >> > me sending this and after you sen

Re: [PHP] order by what?

2009-06-11 Thread Robin Vickery
e ORDER BY fieldname COLLATE utf8_general_ci; -robin

Re: [PHP] order by what?

2009-06-11 Thread Robin Vickery
2009/6/11 PJ > Robin Vickery wrote: > > > > > > 2009/6/11 PJ mailto:af.gour...@videotron.ca>> > > > > How can order by be forced to order alphabetically and ignore accents > > without stripping the accents for printout? This is a pro

Re: [PHP] [php] read/write error

2009-06-12 Thread Robin Vickery
\r\nAccept: */*\r\n\r\n" It's a HTTP 1.0 GET request, but that doesn't seem to be consistent with the rest of the data you've mentioned. -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] most powerful php editor

2007-01-24 Thread Robin Vickery
tently higher quality than practically any top-class word processor. -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Robin Vickery
4); $arr_keys = array_keys($arr); $key = array_pop($arr_keys); $value = $arr[$key]; ?> I benchmarked array_keys() function and it is very slow on big arrays since PHP has to build the array. benchmark this: end($arr); list($key, $value) = each($arr); -robin -- PHP General Mailing L

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Robin Vickery
On 16/02/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: 2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta: > On 16/02/07, Eli <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Why isn't there a function that acts like array_pop() returns a pair of &g

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Robin Vickery
On 22/02/07, Aaron Gould <[EMAIL PROTECTED]> wrote: I tried this earlier, but it does not seem to work... It appears to just hang when no data is returned from the networked device. It seems as if the loop stops, and is waiting for something. http://www.php.net/manual/en/function.pcntl-alar

[PHP] What is wrong with this function please?

2007-03-23 Thread Robin Wilson
have been up half the night and got nowhere! Thanks Robin function sendMail($to, $toName, $from, $fromName, $subject, $message, $uploadfile, $fileName, $fileType, $fileSize) { $eol="\r\n"; $mime_boundary=md5(time()); # Common Headers $headers .= 'From: '. $fromName .'

[PHP] What is wrong with this function please?

2007-03-23 Thread Robin Wilson
have been up half the night and got nowhere! Thanks Robin function sendMail($to, $toName, $from, $fromName, $subject, $message, $uploadfile, $fileName, $fileType, $fileSize) { $eol="\r\n"; $mime_boundary=md5(time()); # Common Headers $headers .= 'From: '. $fromName .'

Re: [PHP] What is wrong with this function please?

2007-03-24 Thread Robin Wilson
No sorry, both messages are the same. Didn't mean to post it twice. Sorry. Below is what prints out when I echo the message: $to [EMAIL PROTECTED] $subject Proposal Submission $headers From: 2HostMe Mailer Reply-To: Robin Wilson Return-Path: 2HostMe Mailer Message-ID: X-Mailer: PHP v

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Robin Wilson
llowed some tutorials and they all seemed to tell me to do it this way. The emails seem to work with other clients and only Exchange doesn't like them. Tested with Squirrel Mail and they were recieved with the attachment etc. Do you have any more ideas please? Thanks for the help Robin

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Robin Wilson
Thanks I'll have a look at this. Robin "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] phpmailer.sourceforge.net - a mailing class for php that does everything you need, there are other alternatives - definitely beats fiddling with all the requ

Re: [PHP] Language detection with PHP

2007-03-28 Thread Robin Vickery
On 28/03/07, Satyam <[EMAIL PROTECTED]> wrote: if you find accented letters, it is a sure sign that it is not English That's a rather naïve approach. Written accents in English may be rather passé, but they do exist. -robin -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Show Filename using Wildcards

2007-03-30 Thread Robin Vickery
On 29/03/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record & filename is the phone number. But the filenames have dates & other symbols besides the phone number

Re: [PHP] Security Best Practice: typecast?

2007-04-02 Thread Robin Vickery
rd='$password' and foo is a negative integer, then in ANSI SQL, you've just commented out everything after 'column', leaving you with: SELECT ... WHERE column Mysql protects you from that by demanding a space after the comment sequence. -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessioin Management URL rewriter problem

2004-06-15 Thread Robin Vickery
nstead of having a literal ampersand char, it should > be &r;. So, is there any way to tell the url rewriter to delimit the > name=value pairs using &r instead of a literal ampersand? yeah, set arg_separator.output to "&" in your php.ini file. -robin -- PHP Genera

Re: [PHP] Syntax Help, Please

2004-06-15 Thread Robin Vickery
x27;t seem to get the right syntax. Tried looking in the manual, but > don't even know what I'm looking for! Here they are in the manual: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Robin Vickery
place __CLASS__ with get_class($this) ...but you're not. you could use debug_backtrace() function printClass() { $details = array_shift(debug_backtrace()); print $details['class']; } -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] update count

2004-06-16 Thread Robin Vickery
PDATE tablename SET foo=1 WHERE id=123 MySQL also lets you use a LIMIT clause that will either limit the number of rows affected by the update, or matched by the WHERE clause depending on the MySQL version. UPDATE tablename SET foo=1 WHERE bar=2 LIMIT 1 -robin -- PHP General Mailing List

Re: Re: [PHP] Regular Expression - it works but uses way too much memory ?

2004-06-18 Thread Robin Vickery
On Fri, 18 Jun 2004 08:57:19 +0200 (CEST), Ulrik S. Kofod <[EMAIL PROTECTED]> wrote: > > Sorry to post this again but it's a little urgent. > > The preg_replace in my script allocates a little memory every time it is called and > doesn't free it again untill the script ends. > > I don't know if

Re: [PHP] Re: Please Help, returning path

2004-06-18 Thread Robin Vickery
server > > please help me with that > > getcwd() or dirname($_SELF); or to get the path of the actual file rather than the script: dirname(__FILE__); -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable question

2004-06-19 Thread Robin Vickery
' . $poo} when $poo is 1, that will give you $lie1, and when $poo is 2, it'll give you $lie2. You're almost certain to be better off using arrays though,,, -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   >