[PHP] query returns 0 when it shouldnt

2004-02-18 Thread bob pilly
Hi All Im having trouble with a query that runs fine when i cut and paste it to freetds and run against the database. code as follows: $query ="select count(phonenum) from callrslt where (dateofcall = '$today') and (callresultcode ='9' or callresultcode ='12' or callresultcode ='14')"; $result=mss

[PHP] Some simple questions about Zend

2004-02-18 Thread Berend Dekens
Hi, As far as I can make up of all the sites the Zend project is a php script compiler... right? If I got that one right, the next thing I noticed was that the examples for the Zend engine are normal programs. My problem is that I've developed a webbased program but I don't want to distribute t

[PHP] Recursive Select Box

2004-02-18 Thread Matt Palermo
Hey everyone. I'm looking for assistance/suggestions/answers on how to build a select dropdown box from data that needs to be pulled recursively from a MySQL database. Basically the situation is mainly for a dicussion thread system type of thing where I have categories nested inside categories, n

[PHP] Internationalization performance

2004-02-18 Thread Arnout Standaert
Hi list, I'm working on a not-so-big website (currently about 1,5MB without database files) that will receive not-too-much traffic (let's say 1000 visitors a day, being optimistic here). It's supposed to be available in Dutch and in English. I want one version of the scripts/pages, loading lan

[PHP] About Classes and Scope

2004-02-18 Thread Nick Wilson
Hi all, I would like a class to test a configuration var and act according to the vars value a bit like this: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About Classes and Scope

2004-02-18 Thread Nick Wilson
* and then Nick Wilson declared > $myconfig=TRUE; > > class myclass { > > if($myconfig) { > var $something=1; > } > } > > I know that that is not the way it should be done though. What is the > best way to do this? On a hunch, i think i've found the answer: http://www.php.

[PHP] FTP (via firewall)

2004-02-18 Thread Tommi Virtanen
Hi! It's quite easy to write code, which connect to FTP-site (and upload one file), but How I can do it, if I had Firewall (like 123.123.123.123), and Firewall type is USER with no logon (following text from WS_FTP). Regards, gustavus -- PHP General Mailing List (http://www.php.net/) To

Re[2]: [PHP] redirecting

2004-02-18 Thread adwinwijaya
Hello Ian, Wednesday, February 18, 2004, 5:42:34 PM, you wrote: IF> Stick something like this in your html : IF> IF> Location won't work because you've already sent output to the browser. IF> Ian IF> On Wed, 2004-02-18 at 07:19, ajay wrote: >> hi! >> >> after having trawled through many go

[PHP] htmlspecialchars... or...?

2004-02-18 Thread Tristan . Pretty
Hi all... I've having problems submitting information to salesforce.com... I have a system set up that allows my users here in the office, to send individual leads, to salesforce... However, if the users details contain characters such as... Ù ë ý Ñ Ã etc... htmlspecialchars only does & " < >

Re: [PHP] FTP (via firewall)

2004-02-18 Thread Jason Wong
On Wednesday 18 February 2004 17:34, Tommi Virtanen wrote: > It's quite easy to write code, which connect to FTP-site (and upload one > file), but How I can do it, if I had Firewall (like 123.123.123.123), > and Firewall > type is USER with no logon (following text from WS_FTP). Please expla

Re: [PHP] FTP (via firewall)

2004-02-18 Thread Tommi Virtanen
Please explain exactly what the problem is. If you had a firewall in the way and a normal FTP client couldn't login then whatever you do in PHP would not be able to get you in either. (from php.net) $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_use

[PHP] Re: Recursive Select Box

2004-02-18 Thread Jakes
use two loops 9(or as many as you need) with global varaibles. If a variable in the top level loop is executed it prints out the second loop. You need to do round trips to the db. "Matt Palermo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey everyone. I'm looking for assistance

Re: [PHP] htmlspecialchars... or...?

2004-02-18 Thread "Miguel J. Jiménez"
[EMAIL PROTECTED] wrote: Hi all... I've having problems submitting information to salesforce.com... I have a system set up that allows my users here in the office, to send individual leads, to salesforce... However, if the users details contain characters such as... Ù ë ý Ñ Ã etc... htmlspecia

[PHP] Re: mail()

2004-02-18 Thread Juan Torres
thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDF

2004-02-18 Thread Juan Torres
Hi, How can I write special characters (á, ö, ñ, ç,...) in a pdf document? I'm using pdflib. Greetings. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] UK Postcodes Format

2004-02-18 Thread Ford, Mike [LSS]
On 17 February 2004 19:44, Shaun contributed these pearls of wisdom: > However the following code wont let me add any postcode!: > > if(!preg_match("/[A-Z]{1,2}[0-9][0-9A-Z]? > [0-9][ABD-HJLNP-UW-Z]{1,2}/", > $_POST[postcode])){ >$error = "Invalid Postcode"; >header("Location: add_locatio

RE: [PHP] Class rules

2004-02-18 Thread Ford, Mike [LSS]
On 17 February 2004 22:02, Alex Hogan contributed these pearls of wisdom: > Hi All, > > > > What are the rules of thumb for classes and included files? > > > > Can I not include a file in a class function? No. The entire class has to be in the same file (and inside a single set of tags).

RE: [PHP] how to deal with http and https directory structures?

2004-02-18 Thread Ford, Mike [LSS]
On 17 February 2004 23:40, Chris W. Parker contributed these pearls of wisdom: > > http root: > /home/cparker/www/domain.com/http/ > > https root: > /home/cparker/www/domain.com/https/ > > includes directory: > /home/cparker/www/domain.com/includes/ > > this way i don't have to worry about sym

RE: [PHP] Javascript array [] length is undefined when only singl e element

2004-02-18 Thread Ford, Mike [LSS]
On 18 February 2004 01:21, Daevid Vincent contributed these pearls of wisdom: > Okay kids. Here's another strange one. Very simple form. The > array is dynamically generated from PHP as per the suggested > method: > http://us2.php.net/manual/en/faq.html.php#faq.html.arrays > > However, when ther

RE: [PHP] PDF

2004-02-18 Thread Enda Nagle
Juan, Try doing something like this: define('DOLLAR',chr(36)); Just replace the DOLLAR and the chr value with the chatacter number and reference the variables in the PDF... Regards Enda -- -Original Message- From: Juan Torres [mailto:[EMAIL PROTECTED] Sent: 18 February 2004 10:54 To:

[PHP] [Newbie Guide] For the benefit of new members

2004-02-18 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs

Re: [PHP] PDF

2004-02-18 Thread Juan Torres
Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XSL-FO

2004-02-18 Thread Juan Torres
Hi, Does PHP allow parser a XML with a XSL-FO and create a PDF? Greetings. Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mbstring and writing into file with fwrite

2004-02-18 Thread Torsten Rosenberger
Hello I have two servers on with SuSe 8.2 and PHP 4.3.1 and a new one with SuSE 9.0 and Php 4.3.3 i trie to write some data on the new server into a file. (characters are german ö ä ü) in the file the data are encoded !? I trid to find out what mbstring does. no luck I disabled mbstring in the p

[PHP] DCOM , PHP on Linux

2004-02-18 Thread Conrad Strydom
Hi there guys, We have a PHP application on a remote linux machine that needs to interoperate with a COM based interface on a windows machine. If both where on the same win32 machine things would have been easy , but unfortunately they aren't. What are the possible solutions available to me ,

Re: [PHP] FTP (via firewall)

2004-02-18 Thread Jason Wong
On Wednesday 18 February 2004 18:27, Tommi Virtanen wrote: > This is simple, but I have firewall How to enter firewall ip Either I am stupid or you're not explaining the problem clearly enough. For starters: - what is the firewall doing? - what are you trying to do? -- Jason Wong -> G

[PHP] Re: DCOM , PHP on Linux

2004-02-18 Thread pete M
Which EntireX pete onrad Strydom wrote: Hi there guys, We have a PHP application on a remote linux machine that needs to interoperate with a COM based interface on a windows machine. If both where on the same win32 machine things would have been easy , but unfortunately they aren't. What are

Re: [PHP] post variables

2004-02-18 Thread julian haffegee
Hi Chris print_r($_REQUEST); (is this what you mean by HTTP Request?) print_r($_POST); print_r($_GET); all give Array() its apache release 10327100 (is that what you mean?) If I change the form method to GET works, and we get REQUEST: Array ( [username] => aa [password] => aa ) _GET: Array (

[PHP] Re: how to deal with http and https directory structures?

2004-02-18 Thread memoimyself
Hello Chris, On 17 Feb 2004 at 15:39, Chris W. Parker wrote: > anyone have any thoughts on this? am i making this more complicated > than it is? ;) Well, yes and no. You're trying to organize your files so that each set is only accessed via one protocol (http or https), which makes pretty goo

[PHP] Re: PHP (and optionally MySQL) textbook

2004-02-18 Thread memoimyself
On 17 Feb 2004 at 21:24, Chris wrote: > I am looking for suggestions for a textbook for an undergraduate class > introducing PHP and MySQL (using PHP, not MySQL administration). Right now > I am using the McCarty book "PHP 4 A Beginner's Guide" but there might be > new and/or better books out t

[PHP] Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php')

2004-02-18 Thread Andrew Judge
I have an os X 10.3 server with a page that gives me this error. I have the same site on a red hat machine that does not give me this error. The way the page is: Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php') in /Library/WebServer/html/services.php on line 65 li

[PHP] Crappy results from query

2004-02-18 Thread Ryan A
Hey, Cant really understand this, can someone point out where I'm going wrong please? The idea is simple, I have 3+ names of clients in the database, each client has multiple records with the same order_id and name (because they are registered with multiple products): eg: order_id Name Product 56

Re: [PHP] Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php')

2004-02-18 Thread Stuart
Andrew Judge wrote: Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php') in /Library/WebServer/html/services.php on line 65 line 65 if the $page variable as below The page is called with an href page.php?page=content.php with the content.php page in the web root (both

Re: [PHP] Crappy results from query

2004-02-18 Thread Stuart
Ryan A wrote: $result=mysql_query("SELECT distinct(order_id),name,status,total FROM ".$tcname."_h2o LIMIT $limit1, $limit2"); The distinct keyword applies to the whole row. Since you're including other fields that will be different even though the name is the same, MySQL does not consider them du

[PHP] Re: [PHP-XML-DEV] PHP5: ext/dom: Namespace & Prefix unexpected behavior

2004-02-18 Thread Rob Richards
> I thought that setting $root->prefix will set the prefix and the > namespaceUri to the other domain... but it seems to me that the parser > doesn't see the "xmlns:anotherprefix" as a prefix-declaration? > maybe i just misunderstood something, so please correct me if so. The current behavior is w

[PHP] PDF - Coords

2004-02-18 Thread Juan Torres
Hi, How can I know the currents coordenades of my pdf document? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Finding orphan functions

2004-02-18 Thread Al
Anyone have a suggestion for how I can determine if I have any orphan functions in a function file? I have a include file with about 30 functions that I have been adding to for several months. No doubt some have been superseded, etc. and are now obsolete. I could laboriously trace every path

RE: [PHP] PDF - Coords

2004-02-18 Thread Jay Blanchard
[snip] How can I know the currents coordenades of my pdf document? [/snip] Use a GPS? http://catb.org/~esr/faqs/smart-questions.html HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding orphan functions

2004-02-18 Thread Gareth Williams
Well if you are a unix/linux/os x user, drop to the command line, go to the directory with all the php files, and type in: grep php or if your php files are scattered around a load of sub-directories, then go to a directory which sits above all your php files, and type in: grep -r * if you

Re: [PHP] Crappy results from query

2004-02-18 Thread Ryan A
On 2/18/2004 3:32:31 PM, Duncan Hill ([EMAIL PROTECTED]) wrote: > On Wednesday 18 February 2004 14:21, Ryan A wrote: > > Hey, > > Cant really understand this, can someone point out where I'm going wrong > > please? > > > > The idea is simple, I have 3+ names of clients in the database, each client

Re: [PHP] Crappy results from query

2004-02-18 Thread Ryan A
> > > $result=mysql_query("SELECT distinct(order_id),name,status,total FROM > > ". > $tcname."_h2o LIMIT $limit1, $limit2"); > > The distinct keyword applies to the whole row. Since you're including > other fields that will be different even though the name is the same, > MySQL does not consider t

[PHP] Weird question - environment data from windows

2004-02-18 Thread Martin
When you've stopped laughing - is it at all possible to pass Windows environment data from a Windows workstation to an PHP application running on a Linux server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding orphan functions

2004-02-18 Thread pete M
Wicked - that's the best tip I've seen for a long time... TA Gareth Williams wrote: Well if you are a unix/linux/os x user, drop to the command line, go to the directory with all the php files, and type in: grep php or if your php files are scattered around a load of sub-directories, then go

[PHP] Re: Crappy results from query

2004-02-18 Thread Michael Nolan
Ryan A wrote: $result=mysql_query("SELECT distinct(order_id),name,status,total FROM ". $tcname."_h2o LIMIT $limit1, $limit2"); The distinct keyword applies to the whole row. Since you're including other fields that will be different even though the name is the same, MySQL does not consider them

[PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Hi! I am wonder if it is possible to use the header("Location: https://www.blah.net";) while stimulating it as a POST method/string. Because I need to hide the get/post string as you would with a HTML form's POST method. What I have here is header("Location: https://www.blah.net?PHPSESSID=

Re: [PHP] Finding orphan functions

2004-02-18 Thread Gareth Williams
No probs. On 18 Feb 2004, at 16:34, pete M wrote: Wicked - that's the best tip I've seen for a long time... TA Gareth Williams wrote: Well if you are a unix/linux/os x user, drop to the command line, go to the directory with all the php files, and type in: grep php or if your php files are sca

Re: [PHP] PHP Login Page Issues

2004-02-18 Thread Pushpinder Singh
Hello again, I was wondering if anyone had a chance to take a quick peek at this code. Thanks again guys ! -Pushpinder On Tuesday, February 17, 2004, at 10:49 AM, Pushpinder Singh wrote: Hello Everyone, I am making use of the following login module. However, it tells the user to login at

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Raditha Dissanayake
Hi Chris. You have done a better job describing that situation than i did. Thank you. best regards raditha Chris Shiflett wrote: --- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: It's not often that i disagree with the other chris but one occaision where meta refresh turns out to be the only

[PHP] Question about the manual content

2004-02-18 Thread janbro
p {margin: 0px}Hi List,I have a little problem I posted a couple of times now. The PHP Manual gave me the idea that the clibpdf library seemed to work with php. Well I tried some things they didn't seem to work.Well I thought I'd ask the list, maybe somebody could help me out. But what  a though

RE: Re[2]: [PHP] Browser Detection another page

2004-02-18 Thread Gryffyn, Trevor
> mycb> Sure, but why would a user want to fake their browser signature? > > They might do it without even knowing. Opera will identify itself as > IE6 for example if you select that in the Preferences. Other > browsers/packages can do it as standard. Although I can't give a > specific example, I

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > I am wonder if it is possible to use the header("Location: > https://www.blah.net";) while stimulating it as a POST method/string. It is not, and if you think about that for a minute, you should be glad. You cannot force the user to submit a POST re

Re: [PHP] FTP (via firewall)

2004-02-18 Thread Raditha Dissanayake
- what is the firewall doing? - what are you trying to do? cant' resist a me too post. - what is the firewall doing? - what are you trying to do? -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://ww

Re: [PHP] DCOM , PHP on Linux

2004-02-18 Thread Raditha Dissanayake
What are the possible solutions available to me , i'm thinking one way would be to wrap the COM calls in a webservice on the linux side (SOAP?) , but that sounds like a lot of work. not if you use a tool kit / class library that is already be available. How about switching to java instead? Are

Re: [PHP] About Classes and Scope

2004-02-18 Thread Phillip Jackson
u NOPE... i don't believe that nick was looking for a constant - which cannot be changed once defined. there are a few ways to do this - for one, you can declare $var global inside of the function in your class: class myclass{ function myclass(){ global $var; //do some stuff } }

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Whoa!! I never thought about that. Now, I'm beginning to understand this... Fortunately, I have Mozilla, so I found out about the "Live HTTP header" extension, not releted to the keywords while Google searching just recently so I installed it and saw that it is different than I thought. I saw n

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Chris Shiflett
--- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > You have done a better job describing that situation than i did. Thank > you. No problem. :-) I found that URL I mentioned (with the browser tests). The author claims that it's all being rewritten, but most of them are listed here: http://www.

[PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread Ryan A
Hi, I'm working on a set of scripts not written by me. Theres a "date_of_birth" field there that has the values in this format -MM-DD, the client wants me to print out the age of the person from that...looking in the manual (http://se.php.net/manual/en/function.date.php) I think I will need to

RE: [PHP] Weird question - environment data from windows

2004-02-18 Thread Gryffyn, Trevor
> -Original Message- > From: Martin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 18, 2004 10:26 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Weird question - environment data from windows > > When you've stopped laughing - is it at all possible to pass Windows > environment data

[PHP] '

2004-02-18 Thread Diana Castillo
How do I convert ' to ' before displaying it in HTML? Thanks, -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.destinia.com -- PHP Gene

Re: [PHP] '

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 11:24 am, Diana Castillo wrote: > How do I convert ' to ' before displaying it in HTML? > Thanks, > You could leave it as it is, and the browser would convert it to ' if its an HTML page... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

RE: [PHP] '

2004-02-18 Thread Ford, Mike [LSS]
On 18 February 2004 16:24, Diana Castillo contributed these pearls of wisdom: > How do I convert ' to ' before displaying it in HTML? You don't. That's the browser's job. Cheers! Mike -- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information S

Re: [PHP] '

2004-02-18 Thread Adam Voigt
$string = str_replace(''','\'',$string); You don't need to, but if you want to, thats how you could do it. Adam Voigt [EMAIL PROTECTED] On Wed, 2004-02-18 at 11:24, Diana Castillo wrote: > How do I convert ' to ' before displaying it in HTML? > Thanks, > > > -- > Diana Castillo > Global Rese

[PHP] Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
Im looking for the fastest way to modify array keys. For example, changing -> $foo['hello_world'] = 'HELLO WORLD'; to $foo['hello'] = 'HELLO WORLD'; The only way I can think of is to loop through the array, copying array values to new keys, and unsetting the old key. Thanks for any insight you m

[PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
You might be able to create some function that uses a combination of array_keys(), array_values(), and array_combine() to do what you want. Check the manual at http://www.php.net/array for more information on these functions. Gerard Samuel wrote: Im looking for the fastest way to modify array k

RE: [PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread Chris W. Parker
Ryan A on Wednesday, February 18, 2004 8:19 AM said: > I think I will need to use mktimebut how?? > > Any help appreciated, in URL form, hints or PHP manual references. well i think the idea is to convert the date/time of the person's birthday into a unix times

RE: [PHP] PHP Login Page Issues

2004-02-18 Thread Chris W. Parker
Pushpinder Singh on Wednesday, February 18, 2004 7:46 AM said: > I was wondering if anyone had a chance to take a quick peek at > this code. Thanks again guys ! yes. but it's hard to read, so i just skipped it considering i haven't had a lot of time to spend in

RE: [PHP] Re: how to deal with http and https directory structures?

2004-02-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 18, 2004 6:03 AM said: > What this means is that you can have a user access a certain page via > https by simply providing a link containing "https://"; as the prefix. > The down side of this solution is that users will be fre

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 12:03 pm, Ben Ramsey wrote: > You might be able to create some function that uses a combination of > array_keys(), array_values(), and array_combine() to do what you want. > Check the manual at http://www.php.net/array for more information on > these functions. > True

Re: [PHP] Ideas on modifying array keys

2004-02-18 Thread Michal Migurski
>The only way I can think of is to loop through the array, copying array >values to new keys, and unsetting the old key. Yeah, that's pretty much it: foreach(array_keys($array) as $old_key) { $array[new_key($old_key)] = $array[$old_key]; unset($array[$old_k

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
I know that it may be somewhat irrelevant to solving the problem at hand (and, in fact, I think your current method is probably the best method), but I was just wondering why you needed to change the names of your keys at all. Why is it not programmed so that the keys already have the names yo

Re: [PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Theres a "date_of_birth" field there that has the values in this format > -MM-DD, the client wants me to > print out the age of the person from that...looking in the manual > (http://se.php.net/manual/en/function.date.php) > I think I will need to use mktim

[PHP] Custom Error Handler

2004-02-18 Thread Stuart
I have a custom error handler class that's working well. My problem is that I can't find a way to find out whether a particular error has been suppressed using the @ prefix. Is there a way to do this with a custom handler? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Groan!!! I get permission denied error for fsockopen(). I looked around on the Internet and it narrow down to the temporary directory like "/tmp" for unix. I don't believe that is the problem because the $_SESSION feature work great without a problem. The file permission doesn't seem to b

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 12:38 pm, Ben Ramsey wrote: > I know that it may be somewhat irrelevant to solving the problem at hand > (and, in fact, I think your current method is probably the best method), > but I was just wondering why you needed to change the names of your keys > at all. Why i

Re: [PHP] Custom Error Handler

2004-02-18 Thread John W. Holmes
From: "Stuart" <[EMAIL PROTECTED]> > I have a custom error handler class that's working well. My problem is > that I can't find a way to find out whether a particular error has been > suppressed using the @ prefix. Is there a way to do this with a custom > handler? Next time start here http://us2

[PHP] PHP, Cache Control and Mac IE

2004-02-18 Thread Roger Spears
Hello List, I am using the following in a PHP script: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("P

Re: [PHP] Custom Error Handler

2004-02-18 Thread Stuart
John W. Holmes wrote: You'll notice this if you do: - It is important to remember that the standard PHP error handler is completely bypassed. error_reporting() settings will have no effect and your error handler will be called regardless - however you are still able to read the current value of

[PHP] include (byname.php?lang=fr");

2004-02-18 Thread John Taylor-Johnston
I want to create a language option, so the resulting html is in French or English, depending. But passing variables like this doesn't work: echo $lang; // 'fr' Warning: main(): Failed opening '../_phpcode/byname.php?lang=fr' for inclusion (include_path='.:/usr/local/share/pea

Re: [PHP] PHP, Cache Control and Mac IE

2004-02-18 Thread Gareth Williams
Hello Roger, If you find a solution, I would also be interested to to see it. I have tried almost everything to get Mac IE to not use the cache. It just doesn't seem to accept anything. On 18 Feb 2004, at 18:58, Roger Spears wrote: Hello List, I am using the following in a PHP script: head

[PHP] boolean type function ?

2004-02-18 Thread Mike Mapsnac
I search on php.net. How to declare php function as type boolean? I tried the following declaration; function booolean check_ip_remote() & boolean check_ip_remote() But both declaration are wrong. I got the error messages __

[PHP] CSV download

2004-02-18 Thread Roberts, Mark (Tulsa)
I have an application that I need to add a function to that will download a complete MySql Table in comma delineated format from a web site to a local hard drive. What is the best way to do this? Is there a function in PHP that will do this? in MySql? or do I just need to do something with fo

Re: [PHP] include (byname.php?lang=fr");

2004-02-18 Thread John W. Holmes
From: "John Taylor-Johnston" <[EMAIL PROTECTED]> > I want to create a language option, so the resulting html is in French or English, depending. But passing variables like this doesn't work: > > > > echo $lang; // 'fr' > > Warning: main(): Failed opening '../_phpcode/byname.php?lang=fr' >

Re: [PHP] boolean type function ?

2004-02-18 Thread Richard Davey
Hello Mike, Wednesday, February 18, 2004, 6:28:11 PM, you wrote: MM> I tried the following declaration; MM> function booolean check_ip_remote() & MM> boolean check_ip_remote() MM> But both declaration are wrong. I got the error messages I'm not surprised - what is it you're trying to do

RE: [PHP] boolean type function ?

2004-02-18 Thread Ford, Mike [LSS]
On 18 February 2004 18:28, Mike Mapsnac contributed these pearls of wisdom: > I search on php.net. How to declare php function as type > boolean? You don't -- PHP is a dynamically typed language. Just return a Boolean value, and there you are. Cheers! Mike -- Mike Ford, Electronic Informa

Re: [PHP] boolean type function ?

2004-02-18 Thread John W. Holmes
From: "Mike Mapsnac" <[EMAIL PROTECTED]> > I search on php.net. How to declare php function as type boolean? > > I tried the following declaration; > function booolean check_ip_remote() & > boolean check_ip_remote() > > But both declaration are wrong. I got the error messages Unless this is some

Re: [PHP] CSV download

2004-02-18 Thread Robby Russell
Roberts, Mark (Tulsa) typed this on 02/18/2004 10:33 AM: I have an application that I need to add a function to that will download a complete MySql Table in comma delineated format from a web site to a local hard drive. What is the best way to do this? Is there a function in PHP that will do this?

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Groan!!! I get permission denied error for fsockopen(). Do you know what allow_url_fopen is set to? You should be able to use this to check: http://www.php.net/ini_get Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

RE: [PHP] PDF - Coords

2004-02-18 Thread Jyry Kuukkanen
On Wed, 18 Feb 2004, Jay Blanchard wrote: > [snip] > How can I know the currents coordenades of my pdf document? > [/snip] > > Use a GPS? > http://catb.org/~esr/faqs/smart-questions.html > > HTH! ¹Hola! Maybe Señor Torres wanted to know the current position of drawing text or an image, that i

[PHP] Figuring out how to use a class with no documentation

2004-02-18 Thread Paul Furman
I've found this PEAR module: http://pear.php.net/package/Image_IPTC but it has no documentation and I'm a beginner so I am not figuring out how to use this. There is also a perl module that does the same thing (probably better) but again I have no clue whether I can run it with PHP. I've got per

Re: [PHP] SOLVED: Getting age from yyyy-mm-dd

2004-02-18 Thread Ryan A
Hey, My thanks go out to everyone who replied I finally got this: http://www.zend.com/codex.php?id=309&single=1 I used a substr to break it into 3 variables and then passed it to the above function. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
It said it is set to 1 from ini_get(), it also said "on" from php.ini... Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > Groan!!! I get permission denied error for fsockopen(). > > Do you know what allow_ur

[PHP] SWFShape HOW TO DRAW ELLIPSE????

2004-02-18 Thread Rostislav Kerey
Hi all, How I can to draw ellipse with Ming functions? I have found how to draw circle but not ellipse :( Help me please!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > It said it is set to 1 from ini_get(), it also said "on" from php.ini. In that case, you should be able to do this. Can you restate exactly what you tried (perhaps a small sample script?) and what the error message was? Chris = Chris Shiflett -

RE: [PHP] CSV download

2004-02-18 Thread Roberts, Mark (Tulsa)
Is this through the fopen() and other file handling functions? Mark Roberts Sr. Systems Analyst Corporate Compliance & Governance Applications The Williams Information Technologies Office 918.573.1706 Pager 918.672.5359 Fax 918.573.0892 Email: [EMAIL PROTECTED] Email Text to pager: [EMAIL

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-18 Thread Michael T. Peterson
Thanks, everyone. Just the answer(s) I was looking for. Michael "Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have written a very straightforward user login script. Once the user > successfully logs in, I would like my PHP script to take him directly to t

[PHP] Re: CSV download

2004-02-18 Thread John Herren
Mark Roberts wrote: I have an application that I need to add a function to that will download a complete MySql Table in comma delineated format from a web site to a local hard drive. What is the best way to do this? Is there a function in PHP that will do this? in MySql? or do I just need to do

[PHP] Re: Custom Error Handler

2004-02-18 Thread Manuel Lemos
Hello, On 02/18/2004 02:50 PM, Stuart wrote: I have a custom error handler class that's working well. My problem is that I can't find a way to find out whether a particular error has been suppressed using the @ prefix. Is there a way to do this with a custom handler? If you suppress the errors

[PHP] Going a bit nuts with php/mysql structure......(maybe 0T)

2004-02-18 Thread Ryan A
Hi, Like I said before am working on a project that someone else created so dont blame me for this daft architecture. The problem is in the products table, he has the name and products in one table, this is the structure and records: cno order_id name product 1234455 ryan 123 2234455

[PHP] fopen errors

2004-02-18 Thread admin
I have a PHP front end with a MySQL back end with a longblob field. I am thinking the problem exists in the PHP part. Here is the code I am using: $fileHandle = fopen($fileUpload, "r"); $fileContent = fread($fileHandle, $fileUpload_size); $fileContent = addslashes($fileContent); Then it goes in

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Sample code is $fp = fsockopen("www.whatever.com", 443, $errno, $errmsg); Error message is $errno --> 13 and $errmsg --> Permission denied... I think I understand the problem. I'm using the self-created certificate without having it be signed by certificate authority. When I tried the cURL, it

  1   2   >