Re: [PHP] ftp_nlist()

2004-09-13 Thread zareef ahmed
Hi, --- Jason Wong [EMAIL PROTECTED] wrote: Not sure why you would want to chdir first. Why not just: ftp_chdir is usefull on windows specially if directory name has a space in it. zareef ahmed = Zareef Ahmed :: A PHP Developer in Delhi ( India ). Homepage ::

RE: [PHP] Help With PEAR::DB Connection

2004-09-13 Thread php-list
Jim, Thank you. Problem solved thanks to you. The moment you said that PEAR::DB is not finding the MySQL extention I realized that the extension in php.ini hasn't been commented out and the extension folder had not been recognized by PHP. I forgot we had to do that in PHP5. Everything is working

Re: [PHP] gtk is working in php 5 ?

2004-09-13 Thread zareef ahmed
HI , --- Nicolae Serban [EMAIL PROTECTED] wrote: i'm new with php 5 and i whant to know if gtk it is still working with php 5 !! Thank you ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php visit http://gtk.php.net ;) zareef

Re: [PHP] Re: Evaluating form posts

2004-09-13 Thread zareef ahmed
HI, A good article about magic quotes http://www.webmasterstop.com/tutorials/magic-quotes.shtml zareef ahmed --- Alexander Kleshchevnikov [EMAIL PROTECTED] wrote: You should chech for configuration of magic quotes gpc. Use get_magic_quotes_gpc() function: $foo = get_magic_quotes_gpc()

RE: [PHP] MS Outlook 2003 Mail listing

2004-09-13 Thread Ed Lazor
Check out the manual on the date function. It allows you to get names from dates. The PEAR date stuff will allow you to do date math. -Original Message- From: Rajesh [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 10:04 PM To: [EMAIL PROTECTED] Subject: [PHP] MS Outlook

Re: [PHP] Re: how to redirect ?

2004-09-13 Thread Chris Shiflett
--- Paul Waring [EMAIL PROTECTED] wrote: I think you used header() after put out some data or php installed on server as CGI. Because send header possible only if php installed as apache module. Not so - I've used header('Location: http://www.xyz.com/'); with PHP as a CGI binary under

Re: [PHP] Re: Evaluating form posts

2004-09-13 Thread Chris Shiflett
--- Alexander Kleshchevnikov [EMAIL PROTECTED] wrote: You should chech for configuration of magic quotes gpc. Use get_magic_quotes_gpc() function: $foo = get_magic_quotes_gpc() ? stripslashes($_POST[foo]) : $_POST[foo]); I agree. However, stripslashes() doesn't necessarily undo

Re: [PHP] Re: Evaluating form posts

2004-09-13 Thread Chris Shiflett
--- zareef ahmed [EMAIL PROTECTED] wrote: A good article about magic quotes http://www.webmasterstop.com/tutorials/magic-quotes.shtml That's a nice article, and boy is Harry funny: Magic Quotes are Evil! While you sleep, they whisper in your dreams - \'Use magic quotes. You

[PHP] group queries result

2004-09-13 Thread Barbara Picci
Hi all, I've to extract data from a mysql db using two different queries and I must have an unique output sorting them alphabetically. For istance, query1: select * from ads where guest='PK'; count the number of results, make the difference between a given number and the number of results

[PHP] group queries result

2004-09-13 Thread Barbara Picci
Hi all, I've to extract data from a mysql db using two different queries and I must have an unique output sorting them alphabetically. For istance, query1: select * from ads where guest='PK'; count the number of results, make the difference between a given number and the number of results

[PHP] group queries result

2004-09-13 Thread Barbara Picci
Hi all, I've to extract data from a mysql db using two different queries and I must have an unique output sorting them alphabetically. For istance, query1: select * from ads where guest='PK'; count the number of results, make the difference between a given number and the number of results

[PHP] group queries result

2004-09-13 Thread Barbara Picci
Hi all, I've to extract data from a mysql db using two different queries and I must have an unique output sorting them alphabetically. For istance, query1: select * from ads where guest='PK'; count the number of results, make the difference between a given number and the number of results

Re: [PHP] group queries result

2004-09-13 Thread Burhan Khalid
Barbara Picci wrote: I've to extract data from a mysql db using two different queries and I must have an unique output sorting them alphabetically. For istance, query1: select * from ads where guest='PK'; count the number of results, make the difference between a given number and the number

Re: [PHP] preg_replace question

2004-09-13 Thread Burhan Khalid
Zoran Lorkovic wrote: Btw, where I can find patterns that are valid? (something like (\w+), (\d+)+i etc. http://www.php.net/manual/en/reference.pcre.pattern.syntax.php http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php -- PHP General Mailing List (http://www.php.net/) To

[PHP] Delete Line from File?

2004-09-13 Thread Nick Wilson
Whats the easiest/best way to do that with php? just replace the line with ''? -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delete Line from File?

2004-09-13 Thread zareef ahmed
Hi, some function with whihc you can do this file(); foreach(); zareef ahmed --- Nick Wilson [EMAIL PROTECTED] wrote: Whats the easiest/best way to do that with php? just replace the line with ''? -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] use xml_set_character_data_handler outside of scope

2004-09-13 Thread Dan Field
I've tried a couple of different ways to use this function to set a variable outside of the usual scope of my characterData function but I'm not having much luck. Heres some sample code: ?php $xml_repository = /var/www/html/mets/sample/; $depth = array(); $searchable_tags = array(MODS:TITLE);

RE: [PHP] php|works in Toronto - anyone going?

2004-09-13 Thread Jay Blanchard
[snip] I'm giving a talk on PHP session security, so I'll be there. If anyone from the list is coming, please drop by and say hi. [/snip] I'd love to be there for that, but the company wouldn't help with expenses. Seems a lot of companies are dropping or eliminating their 'training' budgets --

Re: [PHP] php|works in Toronto - anyone going?

2004-09-13 Thread Aaron Gould
Chris Shiflett wrote: I'm giving a talk on PHP session security, so I'll be there. If anyone from the list is coming, please drop by and say hi. I've already got your session picked for that time slot. It'll be interesting to finally see some faces to go along with the names I've only seen on

[PHP] php4 and php5 on the same apache server

2004-09-13 Thread Jacob Friis Larsen
How can I run both php4 and php5 on the same apache server? Could I do it like this: AddType application/x-httpd-php .php AddType application/x-httpd-php5 .php5 And somehow tell php5 to use application/x-httpd-php5 -- Best regards, Jacob Friis Larsen www.webcom.dk | www.journster.com -- PHP

Re: [PHP] Delete Line from File?

2004-09-13 Thread John Holmes
From: Nick Wilson [EMAIL PROTECTED] Whats the easiest/best way to do that with php? just replace the line with ''? Yes, basically. You have to read the file, replace the part you don't want with an empty string and then re-write the file. If the file is small and you're using file() to read it,

Re: [PHP] php4 and php5 on the same apache server

2004-09-13 Thread Bostjan Skufca @ domenca.com
Hello Jacob, i've been trying to achieve the very same result but without success. I tried even modifying sources of sapi/apache2(handler|filter)/sapi_apache2.c and relatives but without success. Mime type can be modified without any problem and it compiles fine but then when I tried to parse

Re: [PHP] group queries result

2004-09-13 Thread raditha dissanayake
This is off topic and please don't send multiple copies of the same message. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload

Re: [PHP] Re: Evaluating form posts

2004-09-13 Thread PHP Mailing list account
Thanks to you all, I decided to turn that stuff off since the stripslashes function returned not exactly the same I get when it's turned off. On Sun, Sep 12, 2004 at 11:44:40PM -0700, Chris Shiflett wrote: --- Alexander Kleshchevnikov [EMAIL PROTECTED] wrote: You should chech for

Re: [PHP] Delete Line from File?

2004-09-13 Thread Nick Wilson
* and then John Holmes declared Whats the easiest/best way to do that with php? just replace the line with ''? Yes, basically. You have to read the file, replace the part you don't want with an empty string and then re-write the file. If the file is small and you're using file() to

[PHP] URL encode/decode problem

2004-09-13 Thread Rosen
Hi, I have follow problem: One form whitch send some text fields to my PHP script. But before send data, the form makes javascript command escape for text fields. The text fields may contain characters +, quotes, etc. The form post data with GET method. And then I can't get correctly posted data

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 16:51:59 +0300, Rosen [EMAIL PROTECTED] wrote: I have follow problem: One form whitch send some text fields to my PHP script. But before send data, the form makes javascript command escape for text fields. The text fields may contain characters +, quotes, etc. The form

Re: [PHP] multi dimension array

2004-09-13 Thread Dan McCullough
here is the code. ++ // end headers //$sql = SELECT * from orders WHERE status='10' and dealerid = '1'; $sql = select * from dealer, orders where orders.status='10' and orders.dealerid = dealer.dealerid order by

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
It will not work - Javascript function escape() return string as unicode data - something like %u0431%u043E%u044F. And I don't know how to decode these data as normal chars. Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 13 Sep 2004 16:51:59 +0300, Rosen [EMAIL

Re: [PHP] multi dimension array

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 07:14:31 -0700 (PDT), Dan McCullough [EMAIL PROTECTED] wrote: here is the code. $sql = select * from dealer, orders where orders.status='10' and orders.dealerid = If you want to associate the orders with the dealer, you probably want to do a LEFT JOIN with the relevant

Re: [PHP] php|works in Toronto - anyone going?

2004-09-13 Thread John Nichel
Jay Blanchard wrote: [snip] I'm giving a talk on PHP session security, so I'll be there. If anyone from the list is coming, please drop by and say hi. [/snip] I'd love to be there for that, but the company wouldn't help with expenses. Seems a lot of companies are dropping or eliminating their

[PHP] whois with php

2004-09-13 Thread xm
Hi there, I'm trying to make a simple tool that make a simple check for the availability of a domain name in a certain top-level domain. I use gethostbyname and if it fails, it means the domain is probably not registered. It works great for domains.COM, domains.NET, domains.CA and all

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 17:21:48 +0300, Rosen [EMAIL PROTECTED] wrote: It will not work - Javascript function escape() return string as unicode data - something like %u0431%u043E%u044F. Well, normally I'd say urldecode() but I don't think it handles unicode, so you may wanna check out the

[PHP] PHP include before or after Apache SSI?

2004-09-13 Thread Andrew W
In which order do the two execute? I'm trying to work out the best way to integrate PHP backend code with an HTML interface in the cleanest way possible - I don't really want to copy paste the PHP into the HTML because it will make maintaining both the PHP the HTML more complicated. What

Re: [PHP] php|works in Toronto - anyone going?

2004-09-13 Thread John Holmes
From: John Nichel [EMAIL PROTECTED] But I won't go see Chris' talk...I mean, if he knew enough about security, he'd write a book or something, right? :) lol that's a great idea! ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP include before or after Apache SSI?

2004-09-13 Thread Jim Grill
In which order do the two execute? I'm trying to work out the best way to integrate PHP backend code with an HTML interface in the cleanest way possible - I don't really want to copy paste the PHP into the HTML because it will make maintaining both the PHP the HTML more complicated.

Re: [PHP] multi dimension array

2004-09-13 Thread Dan McCullough
okay I am working with this now. what I am seeing is that any information that I want to pull is not coming. $sql = SELECT dealer.dealerid as ddealerid, dealer.company as company, dealer.name as name, dealer.surname as surname, dealer.email as email, dealer.contactday as contactday,

[PHP] dynamical class variable definition

2004-09-13 Thread Mario Lopez
Hi, I have a class, but the problem is that its variables need to be defined dynamically. example: class class_myclass{ var $variable1; var $variable2; var $variable3; ... var $variableN how to initialize these $variableN class variables from a global array which contains the

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
I changed the JScript to encode data not as unicode - now it code data as %20%2B%20. But when I get data with $_REQUEST[var] - I loose symbol + - with code %2B. Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 13 Sep 2004 17:21:48 +0300, Rosen [EMAIL PROTECTED]

Re: [PHP] multi dimension array

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 08:04:41 -0700 (PDT), Dan McCullough [EMAIL PROTECTED] wrote: $sql = SELECT dealer.dealerid as ddealerid, dealer.company as company, dealer.name as name, dealer.surname as surname, dealer.email as email, dealer.contactday as contactday, orders.orderid as oorderid FROM

Re: [PHP] dynamical class variable definition

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 18:26:56 +0300, Mario Lopez [EMAIL PROTECTED] wrote: Hi, I have a class, but the problem is that its variables need to be defined dynamically. example: class class_myclass{ var $variable1; var $variable2; var $variable3; ... var $variableN how to

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 18:35:58 +0300, Rosen [EMAIL PROTECTED] wrote: I changed the JScript to encode data not as unicode - now it code data as %20%2B%20. But when I get data with $_REQUEST[var] - I loose symbol + - with code %2B. Can you change it back before you decode it? Maybe with

Re: [PHP] dynamical class variable definition

2004-09-13 Thread Mario Lopez
Oh Thanks, I thought that only those variables that are defined with VAR will be accessible and trieted as class variables Mario -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
The sending form works with JavaScript. When enter on some field combination + plus sign and space - JScript encode it - I see it with alert - %2B%20 , but when new window opens on url bar shows +%20 - thath means space only. Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

[PHP] database content searching

2004-09-13 Thread Jed R. Brubaker
Hi all. I was wondering if any of you have experience with searching through a database for user provided search terms. I was hoping that maybe I could get some insight into how to better approach what I am doing. Are there any great articles or example classes that I could look at? Please let

Re: [PHP] dynamical class variable definition

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 19:06:20 +0300, Mario Lopez [EMAIL PROTECTED] wrote: Oh Thanks, I thought that only those variables that are defined with VAR will be accessible and trieted as class variables Nope, it'll work: #!/usr/bin/php ?php function bindArray($array, $obj){ is_array($array) or

[PHP] if syntax using multiple conditions

2004-09-13 Thread Brian Anderson
What is the proper syndax in an if statement for containing multiple conditions? example: if ( condition1 condition2 ) { dothis; } if ( condition1 (condition2 || condition3) ) { dothis; } I am trying to translate this from asp to php: If WhichAction = 7 And (InStr(filename, \) Or

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread raditha dissanayake
Brian Anderson wrote: What is the proper syndax in an if statement for containing multiple conditions? both examples you have given are valid but their logic is slightly different. example: if ( condition1 condition2 ) { dothis; } if ( condition1 (condition2 || condition3) ) { dothis;

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 11:32:00 -0500, Brian Anderson [EMAIL PROTECTED] wrote: What is the proper syndax in an if statement for containing multiple conditions? example: if ( condition1 condition2 ) { dothis; } if ( condition1 (condition2 || condition3) ) { dothis; } Looks

[PHP] Problem creating a date before 1970 on Fedora

2004-09-13 Thread Wouter van Vliet
Howdy, I would assume this to be a common problem, but as I wrote to this list myself a couple of days ago I was only aware of it's existence on windows systems. Here's some sample code 1 ?php 2 $date = strtotime('12 feb 1950'); 3 print $date.': '.date('r', $date).\n; 4

[PHP] applying search terms

2004-09-13 Thread Jed R. Brubaker
Hi all. I was wondering if any of you have experience with searching through a database for user provided search terms. I was hoping that maybe I could get some insight into how to better approach what I am doing. Are there any great articles or example classes that I could look at? Please let

[PHP] Re: whois with php

2004-09-13 Thread xm
However it does not work with biz, org, info or name since all unavailable domains (the ones that are not yet registered) are pointing automatically to some registrar. Ok, I found one way around, I simply use exec('host $domain'), which returns a string that is very simple to parse to find

[PHP] Re: php4 and php5 on the same apache server

2004-09-13 Thread Christian Jul Jensen
[EMAIL PROTECTED] (Jacob Friis Larsen) writes: How can I run both php4 and php5 on the same apache server? You can't, the two modules are incompatible. What you can do, is to run two instances of the webserver on two different ports. This article describe the idea pretty well.

[PHP] Class Instance Inheritance

2004-09-13 Thread Gerard Samuel
Is it possible for a class to extend the state of its parent class? In the example provided, I was hoping for the statement to say - I wish 10 equals to 10 If there is a solution, I would like it to work with php 4+ Thanks - class foo { var $foo = 0; } $foo = new foo; $foo-foo = 10; class

Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-13 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: Anyone have any good advice for an upgrade strategy from php4.3.6 to php5.0.1? I have a MAC OSX 10.3.5 system that I use for my test machine and an Open BSD system for my production machine. The production machine is also semi-managed hosting system (virtual

RE: [PHP] Can I name a session variable using another variable?

2004-09-13 Thread Gryffyn, Trevor
Ok, assuming everything's working correctly except for the use of $prevtime in the SESSION, then here's one answer: Yes, you can name a session the way you described. If you're having trouble with doing the concatenation of values inside $_SESSION, then try combining them outside:

Re: [PHP] ftp_nlist()

2004-09-13 Thread Curt Zirzow
* Thus wrote Karol Krizka: Hello, I have the following class for ftp: -- class FTP { function get_files($dir=/) { ftp_chdir($this-connection,$dir); $array=ftp_nlist($this-connection,ftp_pwd($this-connection)); var_dump($array); } } When I connect to

[PHP] Re: CSS not picked up

2004-09-13 Thread Gerben
probably a caching problem, but try looking for spelling errors (use W3C checker) PS this is a PHP list not CSS Jeff Swanberg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have the following in my CSS (loaded on the main site page): /* FOOTER */ .footer {

Re: [PHP] Problem creating a date before 1970 on Fedora

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 19:03:09 +0200, Wouter van Vliet [EMAIL PROTECTED] wrote: Howdy, I would assume this to be a common problem, but as I wrote to this list myself a couple of days ago I was only aware of it's existence on windows systems. Here's some sample code 1 ?php 2

[PHP] matching search terms

2004-09-13 Thread Jed R. Brubaker
Hi all. I was wondering if any of you have experience with searching through a database for user provided search terms. I was hoping that maybe I could get some insight into how to better approach what I am doing. Are there any great articles or example classes that I could look at? Please

RE: [PHP] Clear HTTP POST value

2004-09-13 Thread Gryffyn, Trevor
I don't see why that wouldn't work. It's not in a conditional or something where the unset command isn't being executed? If that fails still, maybe try: $_POST[var] = ; -TG -Original Message- From: Nicklas Bondesson [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 5:36 AM

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread John Nichel
Brian Anderson wrote: What is the proper syndax in an if statement for containing multiple conditions? example: if ( condition1 condition2 ) { dothis; } if ( condition1 (condition2 || condition3) ) { dothis; } Both are valid. First example will validate if both condition1 and

RE: [PHP] Class Instance Inheritance

2004-09-13 Thread Ed Lazor
Here's one way, but this may not be completely what you want because the value of variable foo doesn't change. -Ed Class foo { Static $foo; Function foo() { $this-foo = 10; } } -Original Message- From: Gerard Samuel [mailto:[EMAIL

Re: [PHP] php4 and php5 on the same apache server

2004-09-13 Thread Erwin Kerk
Jacob Friis Larsen wrote: How can I run both php4 and php5 on the same apache server? Could I do it like this: AddType application/x-httpd-php .php AddType application/x-httpd-php5 .php5 And somehow tell php5 to use application/x-httpd-php5 The approach I use is as follows: On port 80 I run an

RE: [PHP] Communicate with Outlook

2004-09-13 Thread Gryffyn, Trevor
If you have an Outlook client running on the same machine as PHP, you should be able to use COM calls to access the data. Here's MS's Outlook Object Model site for Outlook Item Objects including MeetingItem: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000

RE: [PHP] Can I name a session variable using another variable?

2004-09-13 Thread Ed Lazor
Here's another option as well, in case it helps out: $var1 = Pizza; $var2 = var1; $var3 = $$var2; print var3 = $var3br; Output: var3 = Pizza -Original Message- Ok, assuming everything's working correctly except for the use of $prevtime in the SESSION, then here's one answer:

Re: [PHP] Class Instance Inheritance

2004-09-13 Thread John Holmes
From: Gerard Samuel [EMAIL PROTECTED] Is it possible for a class to extend the state of its parent class? In the example provided, I was hoping for the statement to say - I wish 10 equals to 10 If there is a solution, I would like it to work with php 4+ Thanks - class foo { var $foo = 0; }

RE: [PHP] convert degrees to heading

2004-09-13 Thread Gryffyn, Trevor
The cleanest looking multiple if scenario is to use a Switch statement. Unfortunately I don't believe PHP's switch will do varied conditions, only equality statements: $j = 5; switch ($j) { case 6: echo first; break; case 6: echo second; break; case 5: echo third;

RE: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-13 Thread Gryffyn, Trevor
Two options: 1. nl2br($posteddata) - This converts all the \r\n's to br's so that it comes out with the same carriage returns as the person who inputed it gave it 2. Use HTML pre tabs to do the same thing. I think that's the trickiest thing about using textarea to input then regurgitate the

Re: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-13 Thread M. Sokolewicz
Trevor Gryffyn wrote: Two options: 1. nl2br($posteddata) - This converts all the \r\n's to br's so that it comes out with the same carriage returns as the person who inputed it gave it It doesn't change \r\n to br, it only changes \n to br / 2. Use HTML pre tabs to do the same thing. I think

Re: [PHP] Re: MSSQL, PHP and Linux

2004-09-13 Thread blackwater dev
Still no luck with thismy host has asked: if someone has a (fedora core 2) RPM for us to install that has freetds support built in? Anyone have anything like this?? Thanks! On Thu, 02 Sep 2004 07:45:00 -0700, Jon Bertsch [EMAIL PROTECTED] wrote: I didn't see it mentioned but if you

Re: [PHP] CSS not picked up

2004-09-13 Thread Curt Zirzow
* Thus wrote Jeff Swanberg: I have the following in my CSS (loaded on the main site page): /* FOOTER */ ... picked up. What should I look for?? A book on writing proper css. Curt -- The above comments may offend you. flame at will. -- PHP General Mailing List (http://www.php.net/) To

[PHP] php.net code samples grey boxes

2004-09-13 Thread Greg Donald
Is it just me or are the styles for the grey code sample boxes on php.net messed up? I can't see any of the code, it's just solid grey boxes from here. I am trying with Mozilla 1.6-5 and Firefox 0.8 on Debian sarge. Anyone else seeing this issue? The copy of the PHP manual I downloaded a

Re: [PHP] Re: Outputting HTML with PHP - Buffer Problem?

2004-09-13 Thread Curt Zirzow
* Thus wrote M. Sokolewicz: Nick Wilson wrote: Hi all, Say i have a php script like this: ?php print(html_head()); // do loads of time taking stuff print(html_footer()); ? How come I dont see the html header (it's just a function that returns a string with the html up till

RE: [PHP] matching search terms

2004-09-13 Thread Jay Blanchard
[snip] I am hoping that there is some internet resource [/snip] Which begs the question, have you STFW? http://www.google.com/search?q=search+functionhl=enlr=ie=UTF-8start= 10sa=N -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: whois with php

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 12:29:08 -0400, xm [EMAIL PROTECTED] wrote: However it does not work with biz, org, info or name since all unavailable domains (the ones that are not yet registered) are pointing automatically to some registrar. If you have other suggestions, please tell us! I'd

Re: [PHP] php4 and php5 on the same apache server

2004-09-13 Thread Comex
It is possible if one is CGI. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php.net code samples grey boxes

2004-09-13 Thread M. Sokolewicz
Greg Donald wrote: Is it just me or are the styles for the grey code sample boxes on php.net messed up? I can't see any of the code, it's just solid grey boxes from here. I am trying with Mozilla 1.6-5 and Firefox 0.8 on Debian sarge. Anyone else seeing this issue? The copy of the PHP manual I

Re: [PHP] Re: whois with php

2004-09-13 Thread Paul Waring
If you have other suggestions, please tell us! Lots of people have written classes/functions to see whether domain names are available for pretty much every top level domain and country code. One that I've used in the past is: http://phpclasses.vextron.com/browse/package/360.html there are

Re: [PHP] convert degrees to heading

2004-09-13 Thread John Holmes
I have to write a little function to convert a direction from degrees to a compass -type heading. 0 = West. 90 = North. E.g.: Something like this... it'll account for 360 degrees, too. No different that a bunch of IF statements, though... ?php $dir = 378; switch($dir = $dir%360) { case 0 =

RE: [PHP] convert degrees to heading

2004-09-13 Thread Gryffyn, Trevor
Nice! I didn't know you could do that with switch. I was wondering why conditionals were left out of PHP's switch statement, but hoped someone would prove me wrong. Thanks John! Very helpful! -TG -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: [PHP] convert degrees to heading

2004-09-13 Thread Jay Blanchard
[snip] The cleanest looking multiple if scenario is to use a Switch statement. Unfortunately I don't believe PHP's switch will do varied conditions, only equality statements: $j = 5; switch ($j) { case 6: echo first; break; case 6: echo second; break; case 5: echo

Re: [PHP] convert degrees to heading

2004-09-13 Thread Jason Wong
On Tuesday 14 September 2004 02:18, Gryffyn, Trevor wrote: In some other languages, you could put your range of values in the case statements, but not PHP I guess. switch(true) { case (expr1) : //do something; break; case (expr2) : //do something else;

Re: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-13 Thread John Holmes
From: M. Sokolewicz [EMAIL PROTECTED] 1. nl2br($posteddata) - This converts all the \r\n's to br's so that it comes out with the same carriage returns as the person who inputed it gave it It doesn't change \r\n to br, it only changes \n to br / It doesn't change anything, actually. It just inserts

[PHP] usage stats

2004-09-13 Thread Victor Saldaña D.
hi people, i need to found usage stats for a paper in my work. i found some stats, but the method is not very strong. any link please -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php.net code samples grey boxes

2004-09-13 Thread Jay Blanchard
[snip] Is it just me or are the styles for the grey code sample boxes on php.net messed up? I can't see any of the code, it's just solid grey boxes from here. I am trying with Mozilla 1.6-5 and Firefox 0.8 on Debian sarge. Anyone else seeing this issue? The copy of the PHP manual I downloaded

Re: [PHP] php.net code samples grey boxes

2004-09-13 Thread John Holmes
From: Greg Donald [EMAIL PROTECTED] Is it just me or are the styles for the grey code sample boxes on php.net messed up? I can't see any of the code, it's just solid grey boxes from here. I am trying with Mozilla 1.6-5 and Firefox 0.8 on Debian sarge. Anyone else seeing this issue? The copy of

Re: [PHP] Re: MSSQL, PHP and Linux

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 06:33:15 -1200, blackwater dev [EMAIL PROTECTED] wrote: Still no luck with thismy host has asked: if someone has a (fedora core 2) RPM for us to install that has freetds support built in? Anyone have anything like this?? Just curious here.. Why are you hosting

Re: [PHP] Re: MSSQL, PHP and Linux

2004-09-13 Thread blackwater dev
Nope, not paying for it. I think it is just a trial...he has tried for a few weeks to get the freetds library to work with redhat 9 with no luck so I think he just now wants to try fedora for the heck of it. We have no idea as to why it won't work with Red Hat 9...must me missing a small step or

Re: [PHP] Re: image size?

2004-09-13 Thread Ryan W Sims
What if the values for x and y are not known? I have a function that returns a thumbnail of a larger image; it calculates the size of the created image based on the dimensions of the original. Paul Birnstihl wrote: Ed Lazor wrote: Is there a way to get the size of an image created using the

[PHP] Weird numbers around HTTP response body

2004-09-13 Thread tmp1000
I noticed some numbers mixed with the response generated by my PHP code, and I can't figure out what's causing it. I've dumbed my PHP script down to just this (what could be simpler?): ?php echo testing; ? And I monitor the HTTP response coming from the server (apache), it looks like this:

Re: [PHP] php.net code samples grey boxes

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 15:50:59 -0400, John Holmes [EMAIL PROTECTED] wrote: Drugs are bad, mmmkay? Usually drugs produce color, not take it away. *shrug* I think I got some bad updates this morning via apt-get. I'm forcing a specific proportional font. I can now see the colorful php source code

[PHP] Re: Weird numbers around HTTP response body

2004-09-13 Thread Manuel Lemos
Hello, On 09/13/2004 05:21 PM, [EMAIL PROTECTED] wrote: I noticed some numbers mixed with the response generated by my PHP code, and I can't figure out what's causing it. I've dumbed my PHP script down to just this (what could be simpler?): ?php echo testing; ? And I monitor the HTTP response

Re: [PHP] usage stats

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 15:29:20 -0400, Victor Saldaña D. [EMAIL PROTECTED] wrote: i need to found usage stats for a paper in my work. i found some stats, but the method is not very strong. any link please I use it, and a bunch of guys named John use it. That's like 3 or 4 of us at least. :)

[PHP] extended class question

2004-09-13 Thread Ed Lazor
How come the output to this script is World Trade Center instead of Pizza Delivery? Thanks, Ed ?php class test { private $var1; function __construct() { $this-var1 = World Trade Center;

Re: [PHP] php.net code samples grey boxes

2004-09-13 Thread Curt Zirzow
* Thus wrote Greg Donald: Is it just me or are the styles for the grey code sample boxes on php.net messed up? I can't see any of the code, it's just solid grey boxes from here. I am trying with Mozilla 1.6-5 and Firefox 0.8 on Debian sarge. Anyone else seeing this issue? The copy of the

Re: [PHP] Re: MSSQL, PHP and Linux

2004-09-13 Thread John Nichel
Greg Donald wrote: snip Just curious here.. Why are you hosting with someone who is using Fedora in the first place? Hope you're not paying for that. Fedora is a test platform for RedHat's non-free commercial distro. By it's very nature it will be broken. Quoted from:

[PHP] Regular Expression: Markup Code

2004-09-13 Thread [ rswfire ]
Hello, would someone please help me with my regular expressions? They are so complex! Here is what I need to do. I have a string with contents similar to the following: BLOCK NAME=TOP (a bunch of markup code) /BLOCK BLOCK NAME=BOTTOM (a bunch of markup code)

RE: [PHP] Re: image size?

2004-09-13 Thread Ed Lazor
I think you'll have to use the imagex and imagey functions to get the dimensions of the thumbnail in order to calculate the size. -Original Message- What if the values for x and y are not known? I have a function that returns a thumbnail of a larger image; it calculates the size of

Re: [PHP] Weird numbers around HTTP response body

2004-09-13 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I noticed some numbers mixed with the response generated by my PHP code, and I can't figure out what's causing it. I've dumbed my PHP script down to just this (what could be simpler?): ?php echo testing; ? And I monitor the HTTP response coming from the server (apache),

  1   2   >