[PHP] Re: XSLT in php v5 beta 4

2004-02-19 Thread Lucian Cozma
I think your problems comes from configuring php with domxml instead of xslt lib ( that requires sablotron). You can use domxml's xslt transformations. I actually recomend it. It's faster and in my opinion more flexible and reliable. (see http://www.php.net/manual/en/ref.domxml.php for more info )

[PHP] PEAR::MAIL Problem

2004-02-19 Thread Stanley Chan
Dear Listmates, I am using PEAR::MAIL and my code includes the below; // Send Email Out $mailCfg = array( "host" => "127.0.0.1", "port" => "25", "auth" => false ); $mailRecipient = $hashValue["emailaddress"]; $mailHeader = array(

RE: [PHP] Re: PEAR DB 1.6.0 has been released

2004-02-19 Thread electroteque
unfortunately i tried mdb and it was totally unusable and badly documented, and to port pear db over to mdb was impossible, i find pear db ok, even adodb is cool, i had to build my own class specifically just for mysql with pretty good performance as no others could. -Original Message- Fro

[PHP] PROBLEM: Explorer trying to save my *.php files...

2004-02-19 Thread Цыганенко Артём
Now, my problem is next: When I tryin' to view my phpinfo.php file, Internet Explorer is invite me to save it to disk Not To Open Why? I have 11 files in my PHP directory: LICENSE MSVCRT.DLL php4ts.dll php4isapi.dll php.exe php.ini php.ini-optimized php_calendar.dll php_ima

[PHP] Re: PEAR DB 1.6.0 has been released

2004-02-19 Thread Jakes
What is performance like using this class? I've gone through the class and it just seams to be over kill, for a DB API (13 databases). Are there any time stats showing the different time in using a single DB API class to the PEAR class. Thanks "Daniel Convissor" <[EMAIL PROTECTED]> wrote in mes

[PHP] Advice Needed

2004-02-19 Thread daniel
Hi there, i have finally built a project space for work, its a collaborate space for storing important key documents (not public), what is the best way to store these, outside the web directory or would it be safe within a htaccess protected directory ? Being that to access that directory i would h

Re: [PHP] heavy parsing of text, storing both versions

2004-02-19 Thread joel boonstra
On Thu, Feb 19, 2004 at 09:15:35PM -0500, John W. Holmes wrote: >>2. Store both the plain (shorthand HTML) text and parsed XHTML >>versions >>of each field -- the problem with this being that i'm storing double >>the data in the database... combine this with versioning of each >>'page', and I'm

[PHP] PEAR DB 1.6.0 has been released

2004-02-19 Thread Daniel Convissor
[This has be cross-posted. Be careful when following up, please.] Greetings: Crack open the beer, PEAR DB 1.6.0 is here! (Hey, I'm a bit giddy with excitement that my intense work during the past seven weeks has come to fruition.) For those unfamiliar with PEAR DB, it's a package of PHP classes

[PHP] Flash and Sessions

2004-02-19 Thread Jack Baty
I have a page with an embedded Flash movie that I'm having trouble with. The Flash movie loads and calls a different url on the same host, retrieving some XML and parsing it. The problem is that many people are reporting that they lose thier session when leaving the page with the Flash movie. Esse

Re: [PHP] heavy parsing of text, storing both versions

2004-02-19 Thread John W. Holmes
joel boonstra wrote: On Fri, Feb 20, 2004 at 10:35:11AM +1100, Justin French wrote: 1. Parse the text on demand into HTML -- the parsing script is to heavy/slow for this. 2. Store both the plain (shorthand HTML) text and parsed XHTML versions of each field -- the problem with this being that i

Re: [PHP] Re: heavy parsing of text, storing both versions

2004-02-19 Thread Justin French
On Friday, February 20, 2004, at 10:58 AM, Torsten Schabdach wrote: Hi Justin, I'm building a CMS that does heavy parsing of a "HTML shorthand" plain text to XHTML strict, in a similar way to Textile . The problem is this conversion might take place on 2-

Re: [PHP] heavy parsing of text, storing both versions

2004-02-19 Thread joel boonstra
On Fri, Feb 20, 2004 at 10:35:11AM +1100, Justin French wrote: > 1. Parse the text on demand into HTML -- the parsing script is to > heavy/slow for this. > > 2. Store both the plain (shorthand HTML) text and parsed XHTML versions > of each field -- the problem with this being that i'm storing do

Re: [PHP] heavy parsing of text, storing both versions

2004-02-19 Thread John W. Holmes
Justin French wrote: Hi all, I'm building a CMS that does heavy parsing of a "HTML shorthand" plain text to XHTML strict, in a similar way to Textile . > 1. Parse the text on demand into HTML -- the parsing script is to heavy/slow for this. 2. Store both

Re: [PHP] PHP & PDFs...

2004-02-19 Thread Evan Nemerson
On Thursday 19 February 2004 11:42 am, Russell P Jones wrote: > Is there any way to deal with PDFS using PHP and not installing PHPlib? I > simply need to pull the first page of a PDF document and print it out > using PHP. (Like a PDF preview of sorts)... > > Any ideas? I'm assuming you meant pdfl

Re[2]: [PHP] date

2004-02-19 Thread Tom Rogers
Hi, Friday, February 20, 2004, 6:32:27 AM, you wrote: JB> [snip] JB> hi there JB> how do i make php give me yesterday's date? JB> i tried JB> date("Y-m-d")-1 JB> but if today would be the 1st of july (2004-07-01), yesterday would be JB> 00. JB> july (2004-07-00) according to that calculator. J

[PHP] Security Issue?

2004-02-19 Thread Ed Lazor
Hi Everyone, Oddball error randomly shows up when accessing pages on my web hosting provider. The error message is below. My account is obb4wine. PHP behaves as if I'm the account budguy when the script error occurs. A page refresh usually makes the error go away. The error happens frequently

Re: [PHP] Headers Again

2004-02-19 Thread PETCOL
Stuart, Unfortunately history tells me that php like ColdFusion will one day be bought out by the big corporates, or at least they'll have a considerable financial vested interest in it. At which time we hope way off in the future, we'll all have to start paying for support and maintenance contra

Re: [PHP] php as cgi with static libraries?

2004-02-19 Thread Marten Lehmann
that's what I already did (--enable-static=db4), but after that a 'ldd php' still showed me references to libdb.so. I don't want to build php with absolutely no dynamic libaries, only certain libaries shall be compiled in statically. Still no answer? Is noone experienced enough in the building-p

[PHP] Re: heavy parsing of text, storing both versions

2004-02-19 Thread Torsten Schabdach
Hi Justin, I'm building a CMS that does heavy parsing of a "HTML shorthand" plain text to XHTML strict, in a similar way to Textile . The problem is this conversion might take place on 2-3 columns of text, and unlimited other fields (my CMS has user-define

[PHP] Re: I don't understand you!

2004-02-19 Thread BAO RuiXian
Цыганенко Артём wrote: Sorry, I'm from Ukraine and, maybe, my English too bad... But I don't understand your words "Please keep the discussion on the list". It means that don't send your response only to me, but to the list you originally sent, i.e. [EMAIL PROTECTED] so that others will also

[PHP] heavy parsing of text, storing both versions

2004-02-19 Thread Justin French
Hi all, I'm building a CMS that does heavy parsing of a "HTML shorthand" plain text to XHTML strict, in a similar way to Textile . The problem is this conversion might take place on 2-3 columns of text, and unlimited other fields (my CMS has user-defined

[PHP] PHP Security Issue?

2004-02-19 Thread Ed Lazor
Hi Everyone, Oddball error randomly shows up when accessing pages on my web hosting provider. The error message is below. My account is obb4wine. PHP behaves as if I'm the account budguy when the script error occurs. A page refresh usually makes the error go away. The error happens frequent

Re: [PHP] PHP & PDFs...

2004-02-19 Thread Marek Kilimajer
Russell P Jones wrote: Is there any way to deal with PDFS using PHP and not installing PHPlib? I simply need to pull the first page of a PDF document and print it out using PHP. (Like a PDF preview of sorts)... Any ideas? Russ Jones Do you want to print the pdf on the server? PHPlib would not hel

Re: [PHP] Problem with Apache!

2004-02-19 Thread BAO RuiXian
Цыганенко Артём wrote: Please, tell me, do you check my "httpd.conf" file? Yes, I have checked your httpd.conf file. It is missing the following line: LoadModule php4_module YourRealPath/php4apache2.dll Please keep discussion on the list. Best Bao Maybe deal in it?? _

Re: [PHP] Problem with Apache!

2004-02-19 Thread BAO RuiXian
Цыганенко Артём wrote: Hello! My name is Artem! I want to tell you about my problem. Please, help me When I changed my "httpd.conf" file like in book by Julie C.Meloni, I try to open file phpinfo.php from directory "C:\Program Files\Apache Group\Apache2\htdocs". But when I open Int

[PHP] Problem with Apache!

2004-02-19 Thread Цыганенко Артём
    Hello! My name is Artem!     I want to tell you about my problem. Please, help me When I changed my "httpd.conf" file like in book by Julie C.Meloni, I try to open file phpinfo.php from directory "C:\Program Files\Apache Group\Apache2\htdocs". But when I open Internet Explorer and wr

RE: [PHP] date

2004-02-19 Thread Jay Blanchard
[snip] hi there how do i make php give me yesterday's date? i tried date("Y-m-d")-1 but if today would be the 1st of july (2004-07-01), yesterday would be 00. july (2004-07-00) according to that calculator. is there any way to make this one get it right? without any if-structures if possible [/

[PHP] date

2004-02-19 Thread Madcat
hi there how do i make php give me yesterday's date? i tried date("Y-m-d")-1 but if today would be the 1st of july (2004-07-01), yesterday would be 00. july (2004-07-00) according to that calculator. is there any way to make this one get it right? without any if-structures if possible regards

[PHP] Re: Generating Sub Headings

2004-02-19 Thread Nicole
Can we take this one step further and make it so that if you're searching and you want to only see histories with the works "parking" in the title it only puts the year headings for the years that actually have a history that meets this criteria? -- PHP General Mailing List (http://www.php.net/)

[PHP] PHP & PDFs...

2004-02-19 Thread Russell P Jones
Is there any way to deal with PDFS using PHP and not installing PHPlib? I simply need to pull the first page of a PDF document and print it out using PHP. (Like a PDF preview of sorts)... Any ideas? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Generating Sub Headings

2004-02-19 Thread Nicole
That's exactly it! I don't know why I didn't think about that. For anyone else reading this, I added $field = mysql_fetch_array($dbArray); above the line that reads $yeartitle = $years["year"]; And now it works! "Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > He

Re: [PHP] Generating Sub Headings

2004-02-19 Thread Richard Davey
Hello Nicole, Thursday, February 19, 2004, 6:28:13 PM, you wrote: N> And so on, always putting the right years and the right number of histories N> below the year, but always listing the first history and nothing else. My N> loop works if I don't have the while loop in there with the subheadings

Re: [PHP] Serious PHP5b4 speed issues

2004-02-19 Thread Andrew Lee Paul
Thank you for your comments. So that we have a page to compare between PHP4 and PHP5, I have taken the home page of php.net. I have a local copy – 'php.local' and re-ran the tests on the first page (ab running on 'php.local') ab http://php.loca/ -n1000 -c10 Again, the results are alarming - P

Re: [PHP] Generating Sub Headings

2004-02-19 Thread Nicole
Sorry about all of the code. I do do what you say to do there. My year sub headings are changing correctly, it's the data that's printed under each heading that isn't correct. Nicole "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Nicole

RE: [PHP] Generating Sub Headings

2004-02-19 Thread Chris W. Parker
Nicole on Thursday, February 19, 2004 10:28 AM said: > I have data that looks like this: [snip] > The second value is the year, I have have multiple files for the same > year. What I want to do is output the values under Year sub headings. ok woh. that's way too m

[PHP] Generating Sub Headings

2004-02-19 Thread Nicole
I have data that looks like this: (20, '1915', '192', '', '', '312', '525', '404', '', 'title') (21, '1915', '338', '', '', '736', '0', '929', '', 'title') (22, '1917', '193', '', '', '447', '0', '1275', '', 'title') (23, '1919', '129', '', '', '208', '636', '0', '', 'title') (24, '1919', '274', '

Re: [PHP] Table's config

2004-02-19 Thread Richard Davey
Hello [Scripts], Thursday, February 19, 2004, 6:14:31 PM, you wrote: S> This is what I have: S> $prefix = "demo_"; S> $table_name = '.$prefix."auth_users"'; S> This is not working, am I missing something?? Just syntax/quote issues, try: $table_name = $prefix . "auth_users"; So much simpler :

[PHP] Table's config

2004-02-19 Thread [Scripts]
Hello All, I am trying to do a install script. Here is my question: I want to do a $prefix This is what I have: $prefix = "demo_"; $table_name = '.$prefix."auth_users"'; This is not working, am I missing something?? Thanks in advance, ~WILL~ -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] variables

2004-02-19 Thread Dominique ANOKRE
ok thanks pb solved thank you everybody - Original Message - From: "Richard Davey" <[EMAIL PROTECTED]> To: "Dominique ANOKRE" <[EMAIL PROTECTED]> Cc: "Php List" <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 5:52 PM Subject: Re: [PHP] variables > Hello Dominique, > > Thursday,

Re: [PHP] Unexpected ";"

2004-02-19 Thread John Nichel
Paul Furman wrote: I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1) <= $thumb_num { ^ You're missing a closing parentheses... $tab = ((($pics * $page) - 1) + $pic_num); } Error unexpected ";" on the last line the

Re: [PHP] variables

2004-02-19 Thread Richard Davey
Hello Dominique, Thursday, February 19, 2004, 5:49:43 PM, you wrote: DA> how can i put the character \ in a variable ? DA> I've done the code below but errors occurs : DA> $barre_oblique = "\"; DA> Parse error: parse error, unexpected T_STRING DA> Please help $barre_oblique = "\\"; -- Bes

Re: [PHP] variables

2004-02-19 Thread Adam Voigt
Whoops, mistyped on my reply, you need to escape it with the single quotes to. On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote: > hello, > > > how can i put the character \ in a variable ? > > I've done the code below but errors occurs : > > $barre_oblique = "\"; > > > Parse error: pa

Re: [PHP] variables

2004-02-19 Thread Adam Voigt
Escape it. $string = "\\"; Or, use single quotes: $string = '\'; On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote: > hello, > > > how can i put the character \ in a variable ? > > I've done the code below but errors occurs : > > $barre_oblique = "\"; > > > Parse error: parse error,

[PHP] Re: Unexpected ";"

2004-02-19 Thread Paul Furman
Thanks folks, it was the missing paren on the if statement. if (...{...} if (...){...} I'm using PSPad as an editor with syntax highlighting and it works pretty well but I don't always . Paul Furman wrote: I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1)

[PHP] variables

2004-02-19 Thread Dominique ANOKRE
hello, how can i put the character \ in a variable ? I've done the code below but errors occurs : $barre_oblique = "\"; Parse error: parse error, unexpected T_STRING Please help

[PHP] Re: fsockopen failed with permission denied error...

2004-02-19 Thread Justin Patrin
Scott Fletcher wrote: Hi Everyone! Sample code below... --snip-- $fp = fsockopen("www.cnn.com", 80, $errno, $errstr, 30); --snip-- I get the error message, permission denied along with 13. When I read the bugs.php.net and found out that I need to add the "@" to it so I did this.. --snip-- $fp =

[PHP] Re: Recursive Select Box

2004-02-19 Thread Justin Patrin
PEAR DB is just a pckage which allows you to connect to any DB with the same interface, it will work with mysql. http://pear.php.net/package/DB If you don't want to use that, just switch the calls to mysql ones: function getSelect(&$link, $catParent = 0, $indent = '') { $sth = mysql_query('SE

Re: [PHP] Unexpected ";"

2004-02-19 Thread Michal Migurski
>I don't see what's wrong with this if statement: > >while ... and ... { > if (($pic_num + 1) <= $thumb_num { > $tab = ((($pics * $page) - 1) + $pic_num); } Looks like you need an editor that's syntax-aware. May I recommend: jEdit, BBedit, UltraEdit? ---

Re: [PHP] Unexpected ";"

2004-02-19 Thread Neil Freeman
You're missing a right bracket within the if statement. Paul Furman wrote: *** This Email Has Been Virus Swept *** I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1) <= $

RE: [PHP] Unexpected ";"

2004-02-19 Thread Alex Hogan
You also forgot to close your "if statement". while ... and ... { if (($pic_num + 1) <= $thumb_num) { $tab = ((($pics * $page) - 1) + $pic_num); } alex > -Original Message- > From: Paul Furman [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 19, 2004 11:33 AM > To: [EMAIL

RE: [PHP] Unexpected ";"

2004-02-19 Thread Alex Hogan
Did you close your loop? while ... and ... { if (($pic_num + 1) <= $thumb_num { $tab = ((($pics * $page) - 1) + $pic_num); } } alex ** The contents of this e-mail and any files transmitted with it are confidential

Re: [PHP] Re: PHPSESSID and URL rewriting

2004-02-19 Thread seba
Unfortunately I do can not oblige users which will use those pages to accept cookies . The pages are for an e-commerce web site. If I use the directive session.use_trans_sid = 0 is not possible to MANTAIN THE SAME phpsessid value among differents pages, isn t it? Cheers, Seba - Original M

Re: [PHP] Unexpected ";"

2004-02-19 Thread Raditha Dissanayake
should be if (($pic_num + 1) <= $thumb_num) { Paul, with PHP the Parsers error is usally above the line number that's actually reffered to. Paul Furman wrote: I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1) <= $thumb_num { $tab = ((($pics * $page)

[PHP] Unexpected ";"

2004-02-19 Thread Paul Furman
I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1) <= $thumb_num { $tab = ((($pics * $page) - 1) + $pic_num); } Error unexpected ";" on the last line there. I added some extra () to make sure I had everything together & not two statements or something

Re: [PHP] Serious PHP5b4 speed issues

2004-02-19 Thread Raditha Dissanayake
Hi, I am a guy who doesn't believe in 'requests per second' and 'number of concurrent users' stats so please ignore the rest of this message if you wish: The problem here could be that while it's possible to improve the speed of execution it's not possible to do so for the full set of function

RE: [PHP] checking users have the latest version of a file

2004-02-19 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 18, 2004 5:18 PM said: > I dont understand what you are doing with the md5, and > > i assume YOU will know which file is the latest version. > > this is what i have to try and find out to prevent that. the md5 thing will ju

RE: [PHP] Can't remove an element from an array

2004-02-19 Thread Chris
You have two separate problems here: 1) unset($_SESSION["cart_array"], $item) This unsets $_SESSION["cart_array"] and also $item, it should be unset($_SESSION["cart_array"][$item]) 2) The method of unsetting session variables depends on whether you have register_globals on, it's all here: htt

Re: [PHP] Can't remove an element from an array

2004-02-19 Thread John Nichel
Brian Dunning wrote: Hi, I have an array that holds the item_id's for a shopping cart. I am trying to remove the item specified by a GET like this: foreach ($_SESSION["cart_array"] as $item) { if ($item==$_GET["item_id"]) {unset($_SESSION["cart_array"], $item); break;} } But it removes ALL i

[PHP] Can't remove an element from an array

2004-02-19 Thread Brian Dunning
Hi, I have an array that holds the item_id's for a shopping cart. I am trying to remove the item specified by a GET like this: foreach ($_SESSION["cart_array"] as $item) { if ($item==$_GET["item_id"]) {unset($_SESSION["cart_array"], $item); break;} } But it removes ALL items from the cart. An

Re: [PHP] headers_list function

2004-02-19 Thread Chris Shiflett
--- Juan Torres <[EMAIL PROTECTED]> wrote: > how can I use 'header_list()' function. My manual says: "Might be only > in CVS". What is CVS? How do I install CVS? This is another way of saying that this might not be in any release of PHP to date. CVS is the version control system used in developmen

[PHP] XSLT in php v5 beta 4

2004-02-19 Thread Steve Dieke
I am guesing that I have installed something incorrectly. I am trying to use the function xslt_create(). I installed php v5 Beta 4 successfully. but when I try to use the function xslt_create() I get the following error: Fatal Error: Call to undefined function xslt_create() I have a test php pa

[PHP] Serious PHP5b4 speed issues

2004-02-19 Thread Andrew Lee Paul
Hello all I have recently installed PHP 5.0 Beta 4 on my development server and am very concerned with performance. I have read everywhere, that PHP5 offers increased performance. However, in my tests, the requests per second have decreased dramatically: PHP5: Requests per second:4.23 [#/sec]

RE: [PHP] str_replace to replace /n with not having desiredeffect. [SOLVED]

2004-02-19 Thread Dave G
> From: Adam > Single quotes don't work for the escape characters. > Use double quotes around the str_replace where there is a \n. and... > From: Richard > Double-bag it: > str_replace("\n", "\n\n", $charInfo[introE]) It's always the simplest of mistakes that one overlooks. Thanks guys! That's do

[PHP] Re: Problem with Sessions

2004-02-19 Thread Jas
Sheni R. Meledath wrote: Hello: Session is not working in PHP script file when executed through the browser IE 5.0 on Windows 2000 platform. In IE latest versions the script is working fine. Does anybody have any solution or report related to this. PHP version on the server is 4.3. Sheni R Mel

RE: [PHP] How check if URL is running ok before try open it?

2004-02-19 Thread Pablo Gosse
Hello, I decided to make a pre-URL caller into my script, so when user try link to another URL, instead show these annoying http errors (when URL off), I could direct him to more user friendly environment. I checked FOPEN($url-name,'R') command, but in some cases it will pop up fire-walls alerts f

Re: [PHP] str_replace to replace /n with not having desired effect.

2004-02-19 Thread Richard Davey
Hello Dave, Thursday, February 19, 2004, 3:52:54 PM, you wrote: DG> $charInfoCss = '' . str_replace('\n', '\n>\n', $charInfo[introE]) . ''; Double-bag it: str_replace("\n", "\n\n", $charInfo[introE]) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General M

Re: [PHP] str_replace to replace /n with not having desired effect.

2004-02-19 Thread Adam Voigt
Single quotes don't work for the escape characters. Use double quotes around the str_replace where there is a \n. On Thu, 2004-02-19 at 10:52, Dave G wrote: > PHP Listers, > I am trying to use str_replace to format text taken from a MySQL > TEXT field and make it so that it is compatible w

[PHP] str_replace to replace /n with not having desired effect.

2004-02-19 Thread Dave G
PHP Listers, I am trying to use str_replace to format text taken from a MySQL TEXT field and make it so that it is compatible with my CSS formatting. Essentially, I want to ensure that new lines are replaced with tags with the appropriate CSS class designation. The code I have crea

[PHP] PHP-INSTALL Compile Error

2004-02-19 Thread Jim Thompson
I'm getting this error when running a make on php 4.3.4 on AIX 5.2: ld: 0711-317 ERROR: Undefined symbol: .pow ld: 0711-317 ERROR: Undefined symbol: .ceil ld: 0711-317 ERROR: Undefined symbol: .floor ld: 0711-317 ERROR: Undefined symbol: .sin ld: 0711-317 ERROR: Undefined symbol: .cos ld: 0711-317

[PHP] How check if URL is running ok before try open it?

2004-02-19 Thread M
Hello, I decided to make a pre-URL caller into my script, so when user try link to another URL, instead show these annoying http errors (when URL off), I could direct him to more user friendly environment. I checked FOPEN($url-name,'R') command, but in some cases it will pop up fire-walls alerts f

Re: [PHP] fopen errors

2004-02-19 Thread John Nichel
Hunter, Jess wrote: Thanks for the reply, you are right, the file is going on a Linux box, but the source file is located on the client computer (windoze). You cannot open a remote file by using it's directory path on the remote system. The two ways to do this would be to a) (recommended) open it

[PHP] fsockopen failed with permission denied error...

2004-02-19 Thread Scott Fletcher
Hi Everyone! Sample code below... --snip-- $fp = fsockopen("www.cnn.com", 80, $errno, $errstr, 30); --snip-- I get the error message, permission denied along with 13. When I read the bugs.php.net and found out that I need to add the "@" to it so I did this.. --snip-- $fp = @fsockopen("www.cnn.

RE: [PHP] Nested Loops

2004-02-19 Thread Alex Hogan
Thanks for the help guys..., After some sleep and some food this is where it's gone; $query = "select wn_pdate, wn_text, wn_id " . "from whatsnew " . "order by wn_pdate"; $pdate = ""; while($row = mssql_fetch_array($result)){ if ($pdate != $row[0]) { prin

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

2004-02-19 Thread Scott Fletcher
Yes, the script on the box can run and hit google. I did with telent and it connected successfully and type a make-up word 'get' follow by the enter key and got a response below... --snip-- 400 Bad Request