[PHP] Re: NULL value for variable

2002-02-20 Thread Sanduhr
that "global $fileId;" shouldn't be there in downloadfile.php "Teresa Narvaez" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : Hello, : I am runnig php 4.1.1. In the configuration, register_globals is : ON. : I have two programs and I want to pass the value

Re: [PHP] getting the "right" REMOTE_ADDR

2002-02-20 Thread Steven Walker
You lost me... but it sounds like fun! :) BTW, can anything fake $HTTP_REFERER? I'm sure one of the pros on the list can answer your original question: Is this really a fool-proof method of knowing exactly what the ip is if (getenv(HTTP_CLIENT_IP)){ $ip=getenv(HTTP_

[PHP] fopen and UNC filename

2002-02-20 Thread Johannes Müller
I tried to fopen("\\machine\share\file.txt","w") on w2k iis 5.0 with PHP 4.1.0 and I got fopen invalid argument error. I know, that UNC filenames are supported since PHP 4.0.6. I tried variants with machine\\share\\file.txt, ... but the error was the same. TIA Jo -- PHP General Mailing

Re: [PHP] getting the "right" REMOTE_ADDR

2002-02-20 Thread sean
My problem is a touch different, I know the IP's of the visitors who can visit the site, but I need to make sure that it's *really* them. Cookies are a potential solution, but don't quite fit the bill due to some variables on the users sides - and what I'm really keeping out are bots (that bre

RE: [PHP] Re: Hyperlinks vs Buttons

2002-02-20 Thread Nick Richardson
Actually, i have seen problems with this under Oprah and Netscape (dont ask me why... it just seems kinda flaky. So instead, use this: a href="javascript:document..submit()">Login //Nick -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 7:49 PM

Re: [PHP] Difference between two dates

2002-02-20 Thread Uma Shankari T.
Hello, I got the solution for the date difference problem..,, Thankyou very much. -Uma "Uma Shankari T." <[EMAIL PROTECTED]> wrote: > If i gave the str date as "31-01-2001"; and $str1="04-02-2001"; then it > is displaying the wrong result > > Plz tell me how can i rectify this p

Re: [PHP] getting the "right" REMOTE_ADDR

2002-02-20 Thread Steven Walker
I don't know too much about this, but IP checking is not a reliable way of identification anyway. Depending on how people connect to the internet, some people will have different IPs every time. Since I use a cable modem, my IP address rarely changes (if ever) so I use it as a safety net to pr

Re: [PHP] timestamp confusion

2002-02-20 Thread Justin French
Okay, that's what I needed to hear... so I'll just add 61200seconds onto the timestamp, and i'll be "in the ball park". thanks to everyone, justin Scott Brown wrote: > > Seems to me that those functions expect GMT based time. > > Here in Ontario Canada, I'm GMT-5 (or -4 at some points in the

RE: [PHP] timestamp confusion

2002-02-20 Thread Martin Towell
well, just add 17 hours (17h * 60m/h * 60s/m = 61200 [aren't calculators wonderful :)] ) i guess -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 4:02 PM To: php Subject: Re: [PHP] timestamp confusion Jeff Sheltren wrote: > Well, what

Re: [PHP] timestamp confusion

2002-02-20 Thread Justin French
Jeff Sheltren wrote: > Well, what you are missing is that those are the number of seconds *on that > machine* since 1970... so actually, if both of your clocks were set > correctly, you should be getting the *same* number returned by > time(). Hope that clears it up a little. A geez *slaps

[PHP] getting the "right" REMOTE_ADDR

2002-02-20 Thread sean
Hi all, I need to know the exact ip of who is entering a site and I'm worried about proxies and spoofing. From php.net: http://www.php.net/manual/en/function.getenv.php This was listed: This gives you the right ip: if (getenv(HTTP_CLIENT_IP)){ $ip=getenv(HTTP_CLIE

Re: [PHP] timestamp confusion

2002-02-20 Thread Jeff Sheltren
Well, what you are missing is that those are the number of seconds *on that machine* since 1970... so actually, if both of your clocks were set correctly, you should be getting the *same* number returned by time(). Hope that clears it up a little. Jeff At 03:18 PM 2/21/2002 +1100, Justin Fr

Re: [PHP] timestamp confusion

2002-02-20 Thread Justin French
It doesn't seem to me like this is an issue... isn't the timestamp just the local unix time? It is on my LAN server. The issue I have is that echo date('d M Y H:m:s','1014261839'); produces 21 Feb 2002 14:02:59 on my LOCAL machine echo date('d M Y H:m:s','1014260440'); produces 20 Feb 2002 21:

Re: [PHP] Trouble with Sessions

2002-02-20 Thread Richard Baskett
Well actually I believe if you do a header pragma cache or another way of caching the page it should work. If I am wrong someone please correct me.. I don¹t want to give out bad advice :) Rick "The old law about "an eye for an eye" leaves everybody blind." - Dr. Martin Luther King, Jr. > From:

Re: [PHP] Q on php://stdin

2002-02-20 Thread Billy S Halsey
Hi all, I still have been completely unable to get this to work like it should. I have a simple script: #!/usr/local/bin/php -q So if I call this echo.php, then if I try something like cat /etc/hosts | ./echo.php It prints a # (first line of /etc/hosts) followed by two blank lines. The

[PHP] Re: Which Portal System?

2002-02-20 Thread Gary
Curtis Strite wrote: > I'm looking for some recommendations on which portal system to use for my > website. I have sifted through most of what I think will suite my needs at > hotscripts.com. HOwever I wanted to get some feedback from somone who has > used any of the ones I'm looking at before

Re: [PHP] Trouble with Sessions

2002-02-20 Thread Steven Walker
Phillip, I had the same problem. It's even worse in IE5 since no error was displayed, just an empty form. To circumvent this, I put PHP controls for navigating. To go back, a button called 'modify' resubmits the data to the form page. On my site, if the user clicks the back button, they get h

[PHP] Re: Hyperlinks vs Buttons

2002-02-20 Thread Gary
Steven Walker wrote: > Is there a way to regular hyperlinked text to submit a form? > > For example, rather than having a button that says [Login], I just want > underlined text: Login > > Steven J. Walker > Walker Effects > www.walkereffects.com > [EMAIL PROTECTED] > Login HTH Gary --

Re: [PHP] wordwrap not working

2002-02-20 Thread Steven Walker
This may be a nl2br() problem. If you are setting \n as your newline character, it probably needs to be if your just echoing it. Depending on where it ultimately gets displayed, you'll want one or the other. For example, sending an email message you want \n. Steven J. Walker Walker Effects ww

RE: [PHP] wordwrap not working

2002-02-20 Thread Joel Boonstra
> If your viewing the output through a browser, try this; > > $text = "The quick brown fox jumped over the lazy dog."; > $newtext = wordwrap( $text, 20, ""); > echo "$newtext\n"; > ?> Ah, this is a better solution than mine -- I didn't know wordwrap had the 3rd (and 4th) parameters till now. Jo

[PHP] Trouble with Sessions

2002-02-20 Thread Phillip S. Baker
Hey All, I just converted my login process to sessions. It works great. However I am having one annoying issue come up. The site is a secure site. So each page has an include to check to see if a validated session is there. If not a login forma appears and so on. It all works just fine. Howev

Re: [PHP] wordwrap not working

2002-02-20 Thread Joel Boonstra
> it should print like this: > > The quick brown fox > jumped over the lazy dog. > > but it still printing like this: > > The quick brown fox jumped over the lazy dog. HTML treats bunches of whitespace as one space. Look at the source of the page; you'll see that it's doing what it should. If

RE: [PHP] wordwrap not working

2002-02-20 Thread David Redmond
If your viewing the output through a browser, try this; "); echo "$newtext\n"; ?> -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Thursday, 21 February 2002 1:25 PM To: php Subject: [PHP] wordwrap not working Hi, Im testing the example in the http://www.ph

RE: [PHP] wordwrap not working

2002-02-20 Thread Martin Towell
Are you looking at the output in a web browser? Martin -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 2:25 PM To: php Subject: [PHP] wordwrap not working Hi, Im testing the example in the http://www.php.net/manual/en/function.wo

[PHP] wordwrap not working

2002-02-20 Thread Michael P. Carel
Hi, Im testing the example in the http://www.php.net/manual/en/function.wordwrap.php and it seems not working it still printing the whole word and not wrapping. Im using php4.05 in my redhat 6.2 using an apache. Here's the sample: it should print like this: The quick brown fox jumped over the

Re: [PHP] timestamp confusion

2002-02-20 Thread Billy S Halsey
Justin, Take a look at the gettimeofday() function, which returns the timezone and daylight-savings-time values for the system. -bsh Justin French wrote: >hi, > >when people add something to a table, i'm logging the time()... later, >when I pull it out, i'm doing something like date('d M Y',$

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread John Steele
Hi Jim, Glad that it makes sense now. In fact, the other page may not even need to exist. Instead of including a seperate page, you could simply display the output from within this same form script. I find this extremely useful in combination with a templating system. Happy coding, Joh

[PHP] timestamp confusion

2002-02-20 Thread Justin French
hi, when people add something to a table, i'm logging the time()... later, when I pull it out, i'm doing something like date('d M Y',$stamp), which all works fine, printing something like "21 Jan 2002". problem is, i'm on a server in canada, but 99% of my users will be in Australia. to get an i

RE: [PHP] Need help

2002-02-20 Thread Martin Towell
or maybe explode using ";" as your delimiter first then loop through the returned array depending on what the current item is, and the previous item(s) are (maybe using flags to know where you are, and what has happened), act on the current one in a certain way dunno if i've written it in an unde

Re: [PHP] text box truncate

2002-02-20 Thread Steven Walker
How about wordwrap()? http://www.php.net/manual/en/function.wordwrap.php Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Wednesday, February 20, 2002, at 06:02 PM, Michael P. Carel wrote: > Hi there, > > I have here a problem regarding how to truncate the data that w

Re: [PHP] Need help

2002-02-20 Thread Steven Walker
John, You could create a function to do this. Just think of it in small steps. You can use the string replace function to replace certain parts with other characters, or nothing at all. For example: $data = "Wilson; Hope,(i) Alec Derwent; King,(i) Bruce; James,(i) Henry;"; $new_data = str_rep

[PHP] Where to look for developers?

2002-02-20 Thread Francisco Reyes
Suggestions where to place an ad for a part time/per project developer? I looked at several sites and none of them seemed heavily trafficed or like a "good place". Also the major places likes monster.com probably charge a fee to list. The links I found were from the "Developers and Job Opportuni

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread Jim Koutoumis
John, I never even thought of just including the page I was wanting to redirect/switch to. I was always ending my processing portion with a header("Location : ") thingy in all of my scripts. As no output comes out during the processing stage it should all work. It seems so straight forward n

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
Thanks Kirk, That works. Harry __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] text box truncate

2002-02-20 Thread Michael P. Carel
Hi there, I have here a problem regarding how to truncate the data that was written in the text box form? I want the data to be displayed in the html collumn in standard length and format. Setting the text box in WRAP will not solve the problem it will not add a new line. I want that instead of

[PHP] Need help

2002-02-20 Thread jtjohnston
Yeeesch! I neet help. I need a method to flush out lists of authors in a MySQL field called "KW". The field looks a bit like this: &&1; Caribbean and West Indies; Guyana;&&4;

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread John Steele
Hi Jim, The header() function call you use below IS doing a GET. Maybe if you told us why you need to redirect to this new page might help. Simply doing the processing then including the new page should work fine, as long as the processing part doesn't do any output. A simple example: if

Re: [PHP] INT function?

2002-02-20 Thread James Taylor
Heh, that's interesting.. Only difference is you have to put parenthesis around int. Weird On Wednesday 20 February 2002 05:10 pm, you wrote: > $z = (int)($x / $y); // should work > > or > > $z = $x / $y; > settype($z, "integer"); > > -Original Message- > From: James Taylor [mailto:[

RE: [PHP] INT function?

2002-02-20 Thread bvr
On Thu, 21 Feb 2002 12:10:53 +1100, Martin Towell wrote: >$z = (int)($x / $y); // should work > >or > >$z = $x / $y; >settype($z, "integer"); or $z = intval($x / $y); bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] INT function?

2002-02-20 Thread Bas Jobsen
$z = intval($x / $y); Op donderdag 21 februari 2002 02:06, schreef James Taylor: > Just curious what the function is to convert x into an integer if it's a > float Say for example I have something like this > > > $x = 7; > $y = 3; > > $z = $x / $y; > > I want $z to equal 2. In perl it would

Re: [PHP] INT function?

2002-02-20 Thread Michael Sims
At 05:06 PM 2/20/2002 -0800, James Taylor wrote: >$x = 7; >$y = 3; > >$z = $x / $y; > >I want $z to equal 2. In perl it would be > >$z = int($x / $y); This is untested, but: $z = (int) ($x / $y); Should work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

RE: [PHP] INT function?

2002-02-20 Thread Martin Towell
$z = (int)($x / $y); // should work or $z = $x / $y; settype($z, "integer"); -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] INT function? Just curious what the function is to convert x

[PHP] INT function?

2002-02-20 Thread James Taylor
Just curious what the function is to convert x into an integer if it's a float Say for example I have something like this $x = 7; $y = 3; $z = $x / $y; I want $z to equal 2. In perl it would be $z = int($x / $y); I'm just not sure how to do this in PHP, as int apparently doesn't work

Re: [PHP] dealing with MSWord curly quotes in text

2002-02-20 Thread Analysis and Solutions
Hey Austin: > text has been edited in MSWord and the > quotes that it uses get turned into question marks. does anyone know a > way to convert these MSWord quotes to normal " marks? Replace the nasties with preg... $Data = preg_replace('/[\x93\x94]/', '"', $Data); I figured out the Hex nu

[PHP] Zend debug server trouble

2002-02-20 Thread bvr
Hi, I'm trying to install the debug server for linux, but having trouble to make it work for remote clients through Apache. I installed the debug server and compiled php with --enable-debug The debug server works when I use the 'gdbclient -c' command. The Zend studio windows client debugs fi

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread Jim Koutoumis
Thanks for your reply John. In fact I'm using the method you describe where the same script is used to both display and process the form. However, in the area where I'm doing the processing, I want to redirect at the end of it and still be able to use some of the variables in the location I'm go

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread John Steele
Hi Jim, There are several ways to accomplish this such as flat files, database records, sessions, and the like. But I prefer to simply include a file (or have the one file do both form display and processing) and then you get all your variables: if ($REQUEST_METHOD == 'POST') { // either

Re: [PHP] regexp on user supplied link

2002-02-20 Thread DL Neil
I'll offer the following code to get you started on the task - and invite critiques/improvements! (cribbed from various sources and 'tuned' - note that either apostrophes or double quotes can be used to delimit the URL) $bValidity = $iFound = preg_match_all( "/(href *=

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
Doh! I meant this: $_SESSION['name']['first'] = 'First Name'; > -Original Message- > From: Harry Yu [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 20, 2002 4:52 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] array session variable problem > (register_global=off) > > > Thanks

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
Thanks for your reply, I have no problem assigning variable. I just can't retrieve them. If I use $_SESSION[foo['bar']], I got this error in Apache log. [Wed Feb 20 16:44:50 2002] [error] PHP Parse error: parse error, expecting `']''. Any other idea? Thanks, Harry The code in the first file

RE: [PHP] Hyperlinks vs Buttons

2002-02-20 Thread Johnson, Kirk
Another way would be to create an image of the text, then use the form element as a submit button. Kirk > -Original Message- > > Is there a way to regular hyperlinked text to submit a form? > > > > For example, rather than having a button that says [Login], I > > just want underlined

[PHP] NULL value for variable

2002-02-20 Thread Narvaez, Teresa
Hello, I am runnig php 4.1.1. In the configuration, register_globals is ON. I have two programs and I want to pass the value from fileId from one.php to downloadfile.php. However, in downloadfile.php $fileId is NULL. What am I missing? Thanks, -Teresa one.php

[PHP] Using 'Location' and variables

2002-02-20 Thread Jim Koutoumis
I'm sure that this is possible, but I haven't found any info/examples on it yet,.. What I have is a php script that processes data that been submitted by a FORM. That's OK,... At the end of my script, depending upon the processing, I want to GOTO another php script, that's also OK, I can simply

RE: [PHP] Removing every thing between ( )

2002-02-20 Thread Martin Towell
I agree - I think that if you've worked at something and feel that you're getting nowhere - then by all means ask. But I do feel that there have been some people that have posted to this list in past who have posted just to get someone else to do their code for them, without trying themselves. And

RE: [PHP] Help for passing variable to all pages

2002-02-20 Thread WG4- Cook, Janet
Well I tried setting the variable to a constant value and it still didn't work. What I eventually want to pass is an ID retrieved from the DB that will be needed by every page Janet -Original Message- From: Simon Willison [mailto:[EMAIL PROTECTED]] Sent: Thursday, 21 February 2002 2:3

RE: [PHP] Removing every thing between ( )

2002-02-20 Thread bvr
I believe I *am* helping you! bvr. On Wed, 20 Feb 2002 16:06:24 -0800, Brian Paulson wrote: >Ok help me out here, isn't the point of this list to get help? > >How long is too long to work on a solution before ask for help? > >Brian > >-Original Message- >From: bvr [mailto:[EMAIL PROTE

RE: [PHP] Help for passing variable to all pages

2002-02-20 Thread WG4- Cook, Janet
Thanks for the suggestion but it made no difference! I am still getting nothing through I think its something to do with the "test link" bit - what actually should go in here - how does it relate this to all links? Janet -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] S

RE: [PHP] Removing every thing between ( )

2002-02-20 Thread Brian Paulson
Ok help me out here, isn't the point of this list to get help? How long is too long to work on a solution before ask for help? Brian -Original Message- From: bvr [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Removing ever

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Steve Werby
"Phillip S. Baker" <[EMAIL PROTECTED]> wrote: > Thanks that is what I needed. > I am starting to learn more about phpinfo. > > Is there a really good place that documents all the options and variables > and such? You can find info about the environment variables and PHP variables in the PHP manua

Re: [PHP] Hyperlinks vs Buttons

2002-02-20 Thread Steven Walker
Thanks for the replies.. one of these methods should work. I'm not targeting the general public, so it's ok my site requires a modern browser. Web development sure would a lot more fun without all the compatibility issues!!! ;P Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTE

RE: [PHP] regexp on user supplied link

2002-02-20 Thread SpamSucks86
I absolutely hate regular expressions because I suck at writing them...but I can help you with the logic. I was thinking search for a pattern which matches HREF=" + any number of characters + ". Your match would be HREF="blahblahblah". Then, you could go and chop off the HREF=" and the lagging ",

Re: [PHP] Which Portal System?

2002-02-20 Thread Erik Price
I'll probably get flamed for this, but I've heard wonderful things about Zope (Python-based). Though I admit that I have zero experience with it. I'm pretty sure it's an all-in-one package, you don't need a separate web server even (though if you have Apache already you can use that). Erik

RE: [PHP] Help for passing variable to all pages

2002-02-20 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > That's not a lot of help - its a new installation, as far as I know > everything has been done to default settings. > What can I do to check the server setup > Janet > > > -Original Message- > From: Martin Towell [mailto:[EMAI

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Phillip S. Baker
>phpinfo(); is your friend. Insert into a PHP script which has a query >string (the part of the URL after the ?) and look at the environment >variables available and listed in the output generated by phpinfo(). The >variable you're looking for is $QUERY_STRING, but you really should get >famili

RE: [PHP] Removing every thing between ( )

2002-02-20 Thread Martin Towell
(not tested but...) something like: $string = ereg_replace("\([0-9]* Test\)", "", $string); if you want to keep the backets, then: $string = ereg_replace("\([0-9]* Test\)", "()", $string); HTH Martin -Original Message- From: bvr [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21,

Re: [PHP] change request for function highlight_string

2002-02-20 Thread Lars Torben Wilson
On Wed, 2002-02-20 at 14:13, Rein Velt wrote: > At this moment (php4.1.1) the function "highlight_string" has the following > syntax: > > > [quote] > bool highlight_string ( string str) > This function prints out a syntax highlighted version of str using the > colors defined in the built-in syn

[PHP] Which Portal System?

2002-02-20 Thread Curtis Strite
I'm looking for some recommendations on which portal system to use for my website. I have sifted through most of what I think will suite my needs at hotscripts.com. HOwever I wanted to get some feedback from somone who has used any of the ones I'm looking at before I take the time to set it up a

Re: [PHP] Removing every thing between ( )

2002-02-20 Thread bvr
what do you have so far ? at least you need to 'replace', and I recommend perl style preg_replace() which is very powerfull. then you need an expressions that matches the '(001 Test)' part, how to do this can be found in the manual, however here's a small tip: /[0-9]+/ matches a series of one

[PHP] Re: using sendtohost on a secure site

2002-02-20 Thread Jim Winstead
In php.general Jeremy Reed <[EMAIL PROTECTED]> wrote: > Is great for posting results to a regular http site. But what I need to do > is post to a secure site (https). I looked through some of the php > documentation and couldn't find anything about manually encrypting the data > to send or anyth

RE: [PHP] how the "ticks" works?

2002-02-20 Thread Martin Towell
As the manual says - it executes the "tick" function every 'n' low-level statement - but what's counted as a low-level statement, I don't know... It appears that, in the example, the low-level statements are the "for" and the "echo" If anyone can shed light on this subject, I'd be interested too

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Steve Werby
"Phillip S. Baker" <[EMAIL PROTECTED]> wrote: > Is there an easy way to pull all the variables after the URL? > > Let use say that the page I am looking at is this. > > www.somewhere.com/pages.php?id=27&color=red&bgcolor=green > > Now on the page I want a link to have the 3 variables from above. >

Re: [PHP] using sendtohost on a secure site

2002-02-20 Thread bvr
The answer to this and many related questions is: Use CURL. See manual. bvr. >Is great for posting results to a regular http site. But what I need to do >is post to a secure site (https). I looked through some of the php >documentation and couldn't find anything about manually encrypting the

RE: [PHP] using sendtohost on a secure site

2002-02-20 Thread Jason Murray
> The function sendtohost: [snip] > Is great for posting results to a regular http site. But > what I need to do is post to a secure site (https). At that point, you'll want to look into using CURL extensions to PHP. http://www.php.net/manual/en/ref.curl.php Jason -- PHP General Mailing L

[PHP] change request for function highlight_string

2002-02-20 Thread Rein Velt
At this moment (php4.1.1) the function "highlight_string" has the following syntax: [quote] bool highlight_string ( string str) This function prints out a syntax highlighted version of str using the colors defined in the built-in syntax highlighter for PHP. Returns TRUE or FALSE. [/quote] Th

RE: [PHP] Hyperlinks vs Buttons

2002-02-20 Thread Jason Murray
> Is there a way to regular hyperlinked text to submit a form? > > For example, rather than having a button that says [Login], I > just want underlined text: Login You can use JavaScript on that link. An onClick event which triggers document.formname.submit() would work, but then you lose back

[PHP] Pulling Variables from URL

2002-02-20 Thread Phillip S. Baker
Is there an easy way to pull all the variables after the URL? Let use say that the page I am looking at is this. www.somewhere.com/pages.php?id=27&color=red&bgcolor=green Now on the page I want a link to have the 3 variables from above. I know I can do this. Click Here But I am wondering if th

[PHP] using sendtohost on a secure site

2002-02-20 Thread Jeremy Reed
The function sendtohost: -BEGIN CODE function sendToHost($host,$method,$path,$data,$useragent=0) { // Supply a default method of GET if the one passed was empty if (empty($method)) $method = 'GET'; $method = strtoupper($method); $fp = fsockopen($host,443); echo("open"); if ($metho

[PHP] Hyperlinks vs Buttons

2002-02-20 Thread Steven Walker
Is there a way to regular hyperlinked text to submit a form? For example, rather than having a button that says [Login], I just want underlined text: Login Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED]

[PHP] how can you tell the url of a remote script?

2002-02-20 Thread Ed Lazor
I have a script, which is called by scripts located on other sites. Is it possible to tell the url of the remote script that is calling my script? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Removing every thing between ( )

2002-02-20 Thread Erik Price
On Wednesday, February 20, 2002, at 05:24 PM, Brian Paulson wrote: > What would the regular expression be to remove all the text > between ( ) > > $string = "This is a (001 Test) and (002 Test)"; > > The numbers always change but the word stays the same preg_replace("/(\()\d{3,3} Test(\))/"

RE: [PHP] Re: Removing every thing between ( )

2002-02-20 Thread Brian Paulson
Great, Thanks for the help, worked like a charm Brian -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Removing every thing between ( ) In article <001901c1ba5d$634e3840$89010a0a@bp

[PHP] monitoring banwith used by a script

2002-02-20 Thread Paul Roberts
is there a way to monitor bandwidth use of a script any ideas welcome. Paul Roberts [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Removing every thing between ( )

2002-02-20 Thread CC Zona
In article <001901c1ba5d$634e3840$89010a0a@bpaulson>, [EMAIL PROTECTED] (Brian Paulson) wrote: > What would the regular expression be to remove all the text > between ( ) > > $string = "This is a (001 Test) and (002 Test)"; $string=preg_replace("/\(.+\)/U",'',$string); Note that leadi

[PHP] dealing with MSWord curly quotes in text

2002-02-20 Thread austin swinney
im having a problem with text being submitted to my site through forms into the database, where the text has been edited in MSWord and the quotes that it uses get turned into question marks. does anyone know a way to convert these MSWord quotes to normal " marks? -- austin swinney

RE: [PHP] form submission error trapping

2002-02-20 Thread Jason Dulberg
Okay... I messed around with things a bit and moved the php stuff to the top as you suggested. I have part of the validation working however if more than 1 error exists, it still only prints the 1st one. Below are 2 example places where there would be an error... if I leave them both blank, they

[PHP] Removing every thing between ( )

2002-02-20 Thread Brian Paulson
Hello, What would the regular expression be to remove all the text between ( ) $string = "This is a (001 Test) and (002 Test)"; The numbers always change but the word stays the same Any help would be appreciated. Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] http://w

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
The code in the first file is correct if register_globals is on. Since it is off, remove the call to session_register() and just assign values directly to $_SESSION, e.g., $_SESSION[name['first']] = 'First Name'; Kirk > -Original Message- > From: Harry Yu [mailto:[EMAIL PROTECTED]] > Se

[PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
Hi All, I have register_global = off and I have problem retrieving array session variable. For example; Page1.php Page2.php None of these works. The session file does registered the array and variables. I can retrieve the array with the register_global on. Any ideas? Thanks, Harry ___

Re: [PHP] What Do You Think?

2002-02-20 Thread Jon Abernathy
"Richard Crawford" <[EMAIL PROTECTED]> wrote in message 1013802064.4935.5.camel@mossroot">news:1013802064.4935.5.camel@mossroot... > I'd be much more interested in microbreweries, though. Most commercial > breweries like Anheuser Busch and Coors don't brew beer. Send some of > their product to a

RE: [PHP] question

2002-02-20 Thread Kevin Stone
I'm not sure from your question whether or you understand that the PHP printer functions only work with printers connected directly to the server. They're not for client side printing. And there are no equivalent functions for non-Windows platforms. However I do recall coming across a Javascrip

Re: [PHP] Class question

2002-02-20 Thread Jeff Sheltren
Well, I guess many things are "accepted" now, but here's my two cents: I wouldn't access global variables, instead you should pass everything you need as parameters. Using global variables can come back to bite you occasionally because you may think you are changing a local variable at one po

Re: [PHP] getenv & $REMOTE_ADDR

2002-02-20 Thread Lars Torben Wilson
On Wed, 2002-02-20 at 12:42, Steven Walker wrote: > What is the difference between $_SERVER and getenv()? Why should one be > more reliable/better than the other? > > > Better: avoid globals and use $_SERVER['REMOTE_ADDR']. > > Sorry, if I'm asking you to repeat yourself... the documentation do

RE: [PHP] Class question

2002-02-20 Thread Hunter, Ray
The whole idea with object-oriented programming is polymorphism and encapsulation. You do not want your classes to access global variables but access that information through objects and messaging between objects. If you are referring to the use of non-member as being outside of the class, then

[PHP] Re: textarea form input converting < and > to < >

2002-02-20 Thread Jim Winstead
Byron Albert <[EMAIL PROTECTED]> wrote: > I have a few forms that are used to input html. We have run into a > problem of < and > getting turned into < and > when you hit > submit, Or if you hit submit more than once. I have attached a sample > form. The major problem here is that some times w

[PHP] Class question

2002-02-20 Thread Chris Boget
I'm still kind of new when it comes to dealing with classes. I'm curious, is it accepted practice for member functions of your class to: * access global variables * use non member, user defined functions Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Re: question

2002-02-20 Thread Jim Winstead
Matthew Berwald <[EMAIL PROTECTED]> wrote: > Do you know of any method/package out there that I > could install on my linux machine that will all me to > print data to a printer? Thanks for the help. $lp = popen("lpr", "w"); fwrite($lp, "stuff to print"); pclose($lp); this uses the unix-standar

[PHP] Bizarre problem.

2002-02-20 Thread Andres Plaza R.
Hi everybody! Some days ago, I asked about a problem making "configure" in PHP 4.1.1. When I try to configure PHP + Oracle: ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-openssl=/usr/local/ssl --with-zlib=/usr --with-curl=/usr/local --with-oci8=/usr/local/oracle/

RE: [PHP] question

2002-02-20 Thread Hunter, Ray
A "work around" is using the one of the system commands and print that way. Check here for the program execution functions: http://www.php.net/manual/en/ref.exec.php Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Matthew Berwald [mailto:[EMAIL PROTECTED]]

Re: [PHP] PDF Fonts Files

2002-02-20 Thread Rasmus Lerdorf
You need to sit through my PDF/PHP talk where I go through all this. See conf.php.net/paris2 specifically slides 7 and 8 In particular see the example: http://conf.php.net/pres/slides/intro/pdf_font_ex2.php the code for which is on slide #8. This example shows how to use each of the built-in

[PHP] question

2002-02-20 Thread Matthew Berwald
In php for windows, you can use the printer_open() function found in the php_printer.dll. Unfortuantly, I run a Red hat/Apache web server and this won't work. Do you know of any method/package out there that I could install on my linux machine that will all me to print data to a printer? Thanks

  1   2   >