[PHP] Re: Properly installing curl in windows 2000

2002-08-29 Thread Steinar Kolnes
A.J. It seems that you have exact same problem as me. Everything seems correctly set up, the phpinfo shows; curl CURL support enabled CURL Information libcurl 7.9 (OpenSSL 0.9.6b) For the third day, I am trying to find out, but still I have not got any useful information from the

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread @ Edwin
I see what you mean. But, personally, if the documentation didn't explicitly say anything about it, I'd assume that it's from top to bottom and that there's no option--of course, I could be wrong you know, there must be something hidden... - E > >Ok, file() is docuemted, but it doesn't say an

[PHP] Using cURL

2002-08-29 Thread Henry
Dear All, I'm using a shared server hosted by an ISP. I cannot get PHP recompiled with --with-curl. I've read the information about cURL but it appears that I need to be root in order to install it? I cannot do this. Does this mean that I cannot use cURL or CURL at all? If it doesn't what do I ne

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread David Christensen
Ok, file() is docuemted, but it doesn't say anything about whether or not it reads data sequentially from top to bottom or if there's an option to read bottom to top or anything in between. Dave On Thu, 2002-08-29 at 22:37, @ Edwin wrote: > Or, is it? :) > > http://www.php.net/manual/en/func

[PHP] Re: New as of today

2002-08-29 Thread Justin Garrett
Look at fgets and explode. Depending on the format of your txt file you can use a combination of fgets and explode to get your desired results. http://www.php.net/manual/en/function.fgets.php http://www.php.net/manual/en/function.explode.php If each picture name is on a separate line then the f

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread @ Edwin
Or, is it? :) http://www.php.net/manual/en/function.file.php - E > >Interesting. It's not documented. > > >On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > > Well, this is exactly what function file() does. > > > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTEC

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread David Christensen
Interesting. It's not documented. On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > Well, this is exactly what function file() does. > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > When PHP reads from a file using fgets(), does

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread @ Edwin
> >I am still very new to PHP so things are still a little foreign to me - what >exactly is the SUM finction - I tried to locate one on both the PHP and >MySQL site but found nothing! http://www.mysql.com/doc/en/Group_by_functions.html#IDX1364 Well, it's close to "nothing" but if you study ho

RE: [PHP] Simple regexp

2002-08-29 Thread Martin Towell
try this ereg("^[a-zA-Z0-9:]*$",$string) all your's is doing is looking for any char in $string that's a-z or A-Z or 0-9 or : instead of all chars, from start to end, being them -Original Message- From: Adam Alkins [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 3:20 PM To: PHP

Re: [PHP] Simple regexp

2002-08-29 Thread Todd Pasley
Hi, you would be better off with preg_match, as its a little quicker apparently. try: preg_match("/^[:0-9a-f]*$/i",$string) or change the * to a + to ensure $string is not null the main problems you had: - not ensuring that only those characters are found by using ^ and $ - not allowing multip

Re[2]: [PHP] Average Number For Math Functions

2002-08-29 Thread Tom Rogers
Hi, Friday, August 30, 2002, 3:10:09 PM, you wrote: J> I am still very new to PHP so things are still a little foreign to me - what J> exactly is the SUM finction - I tried to locate one on both the PHP and J> MySQL site but found nothing! J> Thanks ~ John J> "Volve" <[EMAIL PROTECTED]> wrote i

RE: [PHP] Average Number For Math Functions

2002-08-29 Thread Martin Towell
if you have a table called "ratings" and a field called "score" in it, then doing this will show you the sum of all the scores: select sum(score) from ratings; eg, if the scores were 5, 2, 5, 8, and 2 then this sql should return 22 (unless I added it wrong... :/ ) -Original Message- Fr

Re: [PHP] subject in big5 characters of an email can't be read in Lotus Notes

2002-08-29 Thread @ Edwin
I'm not sure if this will help but using mb_send_mail() instead of mail() solved the problems I had with Japanese characters... However, it might be the mail client itself. Check if they had no problem before (when they received similar e-mails from other sources). - E > >I have sent an email

[PHP] Simple regexp

2002-08-29 Thread Adam Alkins
Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg("[a-zA-Z0-9:]",$string) working? Guidance appreciated. -- Adam Alkins http://www.rasadam.com --

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
I am still very new to PHP so things are still a little foreign to me - what exactly is the SUM finction - I tried to locate one on both the PHP and MySQL site but found nothing! Thanks ~ John "Volve" <[EMAIL PROTECTED]> wrote in message 02d901c24fd5$aba46020$7800a8c0@idiom">news:02d901c24fd5$ab

[PHP] session_unregister - but w00t about the back button?

2002-08-29 Thread Victor
I can logout with session_unregister - but w00t about the back button? This is probably so trivial that it has been discussed before, if anyone has some knowledge or link at hand mind passing it on? Thanks. - Victor > www.argilent.com ___

[PHP] Re: subject in big5 characters of an email can't be read in LotusNotes

2002-08-29 Thread Manuel Lemos
Hello, On 08/30/2002 01:43 AM, Ellen O'Neal wrote: > I have sent an email using mail function in which the > subject and email body have charset=big5. > > Customers with outlook express can read the big5 > chinese characters without any trouble. However, > people who read their emails from Lo

[PHP] subject in big5 characters of an email can't be read in Lotus Notes

2002-08-29 Thread Ellen O'Neal
I have sent an email using mail function in which the subject and email body have charset=big5. Customers with outlook express can read the big5 chinese characters without any trouble. However, people who read their emails from Lotus Notes complain that they cannot read the subject. But, they

[PHP] Re: eregi_replace() problems

2002-08-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Can anyone tell me why my emoticons arent appearing? Please? > > Note: $message is a variable set by a web form. The field `pattern` is the > string to search for, like ":-)", and `url` is the relative url to the > emoticon. I just get

[PHP] Re: date from mysql

2002-08-29 Thread David Robley
In article <01ae01c24f4f$51dc7bd0$b50a@web18>, [EMAIL PROTECTED] says... > i want Y (year format) printed on my php script (looping), i already tried > it but i got same Year format (ex 1978) in all row in my table > > my loop script is: > > > $query = ("select * from table"); > $result =

Re: [PHP] Where is my REMOTE_USER?

2002-08-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > At 06:03 29/8/2002 -0400, David T-G wrote: > > > Frank, et al -- > > ..and then Frank said... > > % > > % Hi, > > % > > % when logging in with username and password with the good old "Require > user" > > % mechanism in Apache I

Re: [PHP] PHP Toolbar for Homesite...

2002-08-29 Thread olinux
Very cool! Here's a few suggestions: cookie should open a dialog box so you can input values similar to mail. ability to enter more than one array value at once maybe the dialog box has a drop down [1-10] which so if you select 4 then 4 fields appear to enter more values mysql functions are qu

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread VolVE
What database are you using? MySQL has a SUM function which automatically selects the total of a column. -VolVE - Original Message - From: "JohnP" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 29, 2002 21:25 Subject: Re: [PHP] Average Number For Math Functions > O

RE: [PHP] Average Number For Math Functions

2002-08-29 Thread David Freeman
> Ok so how do I sum up an entire column in my db? > For example if one row is : 1 , the next is 2, and the next > is 1 - I need to > have a total of 4 and the be able to divide by the num_rows > > The problem I ma having is the "inside" row addition If you're doing it on values from a d

RE: [PHP] New as of today

2002-08-29 Thread Martin Towell
if you have each filename on a new line, then use file() to grab the contents. It returns an array, each line is an element in the array. You can then do what you want with the array HTH Martin -Original Message- From: stu9820 [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 1:0

[PHP] New as of today

2002-08-29 Thread stu9820
Im new to PHP (came from ASP). I'm trying to make pictures (.jpgs) come out of a folder and display on a page. Here is my code so far: $zContents"; ?> I dont have database support on the server i use (school server). I have all the picture names in a text file and i want to pull out the nam

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread Andrew Brampton
I can't seem to see a pre-built functions but here is one I just wrote in my email client: function average($numberArray) { $sum = 0; for ($i=0;$i To: <[EMAIL PROTECTED]> Sent: Friday, August 30, 2002 1:55 AM Subject: [PHP] Average Number For Math Functions Ok I looked at all the math f

RE: [PHP] Average Number For Math Functions

2002-08-29 Thread Dave at Sinewaves.net
if i remember 4th grade math class correctly... $value) { $total += $array_of_the_numbers[$key]; ++$count; } // wow, that's a toughie! $average = $total / $count; // then you could make it pretty $pretty_average = number_format($average, 1); ?> booyah. :) dave -Origina

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread VolVE
Can't you just count the elements and then divide the total by the count? It seems pretty obfuscating to consider a function that takes an unknown number of elements, unless it were an array... still, seems pretty easy to count and divide total... doesn't it? -VolVE > - Original Message ---

Re: [PHP] SESSION ARRAY

2002-08-29 Thread Keith Vance
$_SESSION is a predefined variable, session_start() session_register('BILLARRAY') should work though :) Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try my open source PHP authentication system, Rampart by visiting http://rampart.sourceforge.net/. Commercial support i

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread Steve Edberg
At 05:55 PM 8/29/02 , JohnP wrote: >Ok I looked at all the math functions for PHP but saw no way of returning >the average of a set of numbers - I plan on using this for a rating system >- any help? > >-- >John Nope - you'll have to 'roll your own' by looping though the set, or (if you have v

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
Ok so how do I sum up an entire column in my db? For example if one row is : 1 , the next is 2, and the next is 1 - I need to have a total of 4 and the be able to divide by the num_rows The problem I ma having is the "inside" row addition "Martin Towell" <[EMAIL PROTECTED]> wrote in message [

RE: [PHP] Average Number For Math Functions

2002-08-29 Thread Martin Towell
just sum them up and divide by the count - making sure to deal with a count of zero -Original Message- From: JohnP [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: [PHP] Average Number For Math Functions Ok I looked at all the math functio

Re: [PHP] Re: credit card auth using curl function

2002-08-29 Thread Mike Mannakee
Try curl_setopt($ch, CURL_NOBODY, 1); Mike "Phplist" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks for the help. I made the change as follows, as I don't mind it > be transient data... but I still get the string outputted on the web page. I > can pa

FW: [PHP] Re: credit card auth using curl function

2002-08-29 Thread phplist
Thanks for the help. I made the change as follows, as I don't mind it be transient data... but I still get the string outputted on the web page. I can parse the string all I want, but the following code still prints out the annoying string on the webpage. Any ideas where I am going wrong? Stan H

[PHP] PHP Toolbar for Homesite...

2002-08-29 Thread Matt Zur
I made a php toolbar for Homesite v5. It's currently at v1.0 right now, but I'm looking for any suggestions anyone might have for the next version. http://zurnet.com/dl/hsphptb/ -- Matt Zur [EMAIL PROTECTED] http://www.zurnet.com Need a Web Site??? - Visit... www.zurnet.com 1997 - 2002 - 5t

[PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
Ok I looked at all the math functions for PHP but saw no way of returning the average of a set of numbers - I plan on using this for a rating system - any help? -- John

Re: [PHP] and or statement

2002-08-29 Thread Charles Fowler
 PHP and MYSQL Web Development manual by Welling and Thompson states  that logical operators are as follows: ___ Operator    Name    Use Result _

Re: [PHP] How can I strip the code from HTML pages to extract thecontents of a HTML page.

2002-08-29 Thread Todd Pasley
Hi Charles, Not sure exactly what you are after, but function displayLinks ($pagecontents) { $search = '//im'; $replace = ''; return (preg_replace ($search, $replace, $pagecontents)); } For me, that takes all the links in $pagecontents and modifies the links for a r

[PHP] Re: wish list for my host's new compile

2002-08-29 Thread Justin French
Hi Philip, There's definitely MySQL support in there, and I think FTP is enabled (FTP Support: enabled). What are the options for fonts in GD without freetype? The GD site doesn't have any sample images... I assume it means you can't use TTF, and you can't get anti-aliasing. GD2 is in Beta, so

Re: [PHP] How can I strip the code from HTML pages to extract thecontents of a HTML page.

2002-08-29 Thread Charles Fowler
I was looking into stripping HTML files that contain alot of links. I was trying to avoid the manual way of data entry. The contents i need are the name of the link (plain text which sits out side the HTML code) and all the a href tags. I would like the a href (ie.the hyperlink) tags to be displa

Re: [PHP] SESSION ARRAY

2002-08-29 Thread Todd Pasley
> What is the proper syntax for storing an array in a session? > > is it $_SESSION["BILLARRAY"]=$ARRAY? Yep, providing youre using session_start() and session_register("_SESSION") you can assign any type of data, just like a regular hash. Todd. - Original Message - From: "Randy Johnson

[PHP] SESSION ARRAY

2002-08-29 Thread Randy Johnson
What is the proper syntax for storing an array in a session? is it $_SESSION["BILLARRAY"]=$ARRAY? Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need help with a chat code problem

2002-08-29 Thread Deadsam
Im building a chat with php/mySQL but I dont want my database to be filled up with messages upon messages, what I want to do is make it start deleting rows after lets say 100 rows (which hold the messages)(each individual row holds one chat message), is there a way of doing this through deleting t

[PHP] Re: credit card auth using curl function

2002-08-29 Thread Mike Mannakee
Absolutely. Your best bet, leaving the most visible way of tracing the steps on any authorization, would be to save the returned string to a file. Open the file and pass the handle to CURL_SETOPT like curl_setopt($ch, CURLOPT_FILE, $return_data_fp); Then have your script parse the data and outp

[PHP] Re: PASSWORD()

2002-08-29 Thread Tony Harrison
I asked a similar question the other day, I was told to use the password function on the field name, not the value, i havent tested this and its a weird way to do things, and why cant both work? (if any) "Mike Tsapenko" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

[PHP] eregi_replace() problems

2002-08-29 Thread Tony Harrison
Can anyone tell me why my emoticons arent appearing? Please? Note: $message is a variable set by a web form. The field `pattern` is the string to search for, like ":-)", and `url` is the relative url to the emoticon. I just get the plain emoticon. Note: this bit is above the INSERT statement in t

[PHP] Re: Session 4.2.2

2002-08-29 Thread Dallas Thunder
Just edit your 'php.ini' file, if 'register_globals = Off', then set it to On. It will solve a lot of problems if you are learning PHP from examples. "Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > Do you have an example? > > Tha

RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz
Yes it does. It's unfortunate that PHP treats it this way. It makes using dynamic checkbox inputs a lot more difficult than it should be. ColdFusion and, I believe, ASP make a comma delimited list. But I did find a little snippet which allows me to cheat the need for a key in the input tag. If

[PHP] credit card auth using curl function

2002-08-29 Thread phplist
Hi, I am using the CURL command to post credit card info to a gateway .exe program on a secure server. The code below works fine to produce the comma delimitted credit card authorization information to the browser page (for example: "declined","Invalid form data posted","8/29/2002","18:07","0","0"

[PHP] Re: PASSWORD()

2002-08-29 Thread Mike Tsapenko
Hello, Victor. Your queries seem to be OK. The second one has typo: after should be single quot. Anyway this is a problem with MySQL but not with PHP. -- Mike Tsapenko Chief of Web-development Dept. AlarIT http://www.AlarIT.com "Victor" <[EMAIL PROTECTED]> ???/ ? ?

[PHP] Re: Session 4.2.2

2002-08-29 Thread Breno Cardoso Perucchi
Hi, Do you have an example? Thanks. "Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I would like to know if there are any changes on session of PHP between the > version 4.1.0 and 4.2.2? > > Thanks. > > Breno Cardoso Perucchi > [EMAIL

Fw: [PHP] variable reference parameters

2002-08-29 Thread Kevin Stone
Timo, This is just an idea. How about using the get_defined_vars() function, extracting the desired user defined variables, storing them in one array, and then sending that array as the single parameter to your sqlSafe() function? http://www.php.net/manual/en/function.get-defined-vars.php

RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz
That did the trick. Thanks! -Original Message- From: Short, Chad [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 5:38 PM To: Php-General@Lists. Php. Net Subject: RE: [PHP] How to handle multiple value checkboxes Use the [] along with the type of input you are using. Exam

RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Short, Chad
Use the [] along with the type of input you are using. Example: This will send php an array of $thing with whatever is selected. Hope this helps. Chad. -Original Message- From: Lon Lentz [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 4:07 PM To: Php-General@Lists. Php.

[PHP] Re: Reading from a file using fgets()

2002-08-29 Thread Dallas Thunder
Well, this is exactly what function file() does. "David Christensen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When PHP reads from a file using fgets(), does it do it in order? > Meaning, when reading STDIN from a file, does it read line1, then line2, > l

[PHP] Re: Session 4.2.2

2002-08-29 Thread Dallas Thunder
If you encounter any problem with session variables, it may not caused by session. An important change between 4.2.0 or above and versions below is that the 'register_globals' directive will be set Off by default in 'php.ini' file. So you can't access session variables (e.g. $var) directly, inst

[PHP] Reading from a file using fgets()

2002-08-29 Thread David Christensen
When PHP reads from a file using fgets(), does it do it in order? Meaning, when reading STDIN from a file, does it read line1, then line2, line3, and so on until EOF? My purpose is to read each line of file and push it into an array. Thanks for your help, Dave -- PHP General Mailing List

Re: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Kevin Stone
This creates the indexed array $_POST['colors']. The array will only have as many values as were checked. In otherwords if Red and Blue are checked the values will be reutnred at $_POST['colors'][0] and $_POST['colors'][1].. not at index [0] and [2] as you might expect. Hope this helps, K

[PHP] Re: How to handle multiple value checkboxes

2002-08-29 Thread Matthias Stürmer
hi lon thats because for the same variable can be submitted only one value. make an array (like variable[]) out of your variable and then parse it with foreach() for working with the values selected by the user. hope you understand what i'd like to say. my english is not too good. bye, matt

[PHP] Session 4.2.2

2002-08-29 Thread Breno Cardoso Perucchi
I would like to know if there are any changes on session of PHP between the version 4.1.0 and 4.2.2? Thanks. Breno Cardoso Perucchi [EMAIL PROTECTED] Consultor - Omega Tecnologia http://www.omegatec.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz
If I have a form with multiple checkboxes with different values but the same name, and someone selects a couple of them, how do I reference all of the values? Right now I am only getting the last one selected. __ Lon Lentz Applications Developer EXImpact.com -- P

[PHP] Re: file creation question

2002-08-29 Thread MikeTsapenko
Hello, John. Just use such code: header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$item[file_name]\""); header("Content-length: ".strlen($item[file_content])); echo $item[file_content] This should work... -- Mike Tsapenk

[PHP] Re: Output php code

2002-08-29 Thread apollo
> http://www.php.net/manual/en/function.show-source.php thanks, i'm so lazy :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Output php code

2002-08-29 Thread Philip Hallstrom
http://www.php.net/manual/en/function.show-source.php On Thu, 29 Aug 2002, apollo wrote: > Is there any function in php to show source code like this: > http://www.php.net/source.php?url=/index.php > > How do they do this ? I mean all these colors. > > > > -- > PHP General Mailing List (http:/

[PHP] Output php code

2002-08-29 Thread apollo
Is there any function in php to show source code like this: http://www.php.net/source.php?url=/index.php How do they do this ? I mean all these colors. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PASSWORD()

2002-08-29 Thread Victor
Is PASSWORD() still usable? I used it in my scripts a while ago to encrypt and decript password strings that I stored into databases, but from some time all my scripts don't work (the login part) because I cannot do a mysql query like so: $sql = "SELECT * FROM users WHERE username = '$PHP_AUTH_U

Re: [PHP] variable reference parameters

2002-08-29 Thread DL Neil
Timo, If you use func_num_args() to ascertain the number of arguments passed to the function and func_get_arg() to retrieve each argument in turn (from a list of unstated length), will that do the trick? Regards, =dn > I've created (with help from some code from the site) a function to make >

[PHP] GD Graphics Library

2002-08-29 Thread René Fournier
There are several functions in the GD library that I really, really want to be able to use on several sites that I develop/manage. Unfortunately, the ISP I use, FatCow, doesn't have GD, nor seems interested in adding it. Can anyone recommend a good, cheap ISP (like FatCow) that DOES have GD f

[PHP] count errors

2002-08-29 Thread WANDA HANSEN
I have a function that resets the count of fields with certain values when called. 99.9 percent of the time it works fine. However occaisionally it wont update the database. Even after breaking the selects up it still fails sometimes. If anyone has an idea of why I would really appreciate hearing

[PHP] variable reference parameters

2002-08-29 Thread Timo Ewalds
I've created (with help from some code from the site) a function to make strings or arrays mysql safe. It works just fine, assuming you pass your variables by reference ( sqlSafe(&$var) ), but I get this error every time it is used: [error] PHP Warning: Call-time pass-by-reference has been depre

Re: [PHP] Problems with PHP and Apache..

2002-08-29 Thread kawaii
Ok, I tried some different ways of compiling, but it still doesn't seem to find the following: symbol not found: top_module (/usr/apache/libexec/libphp4.so) symbol not found: ap_user_name (/usr/apache/libexec/libphp4.so) symbol not found: ap_max_requests_per_child (/usr/ap

Re: [PHP] Print page

2002-08-29 Thread Rosen
Thanks very much Rosen "Robert Collins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > yes, but that is a browser function not php > goto file -> page setup -> then remove the header and footer data > > Robert W. Collins II > Webmaster > New Orleans Regi

Re: [PHP] Print page

2002-08-29 Thread Rosen
Thanks very much Rosen "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 003601c24f79$7ed376a0$8102a8c0@000347D72515">news:003601c24f79$7ed376a0$8102a8c0@000347D72515... > [snip] > I'm using PHP to generate some report for printing. > But when I print report from IE 5.0 browser, in the bo

[PHP] FW: php question

2002-08-29 Thread Andrew Fry
>hi, sorry to trouble you, but i am a beginner php programmer and i have a quick question. i got your email from a php newsgroup. > >i'm using a statement like: > >if ( preg_match("/\\$word/i",$keywordHash[$keyID][0] > 0) >{ >... >} > >which works fine if word is a word like "reference" or even "

RE: [PHP] CURL without --with-curl

2002-08-29 Thread Jay Blanchard
[snip] How can I use CURL if I cannot recompile PHP with --with-curl. I am using PHP4.2.2 on a shared server with an ISP so I do not get the ability to recompile. [/snip] Use cURL from the command line with an exec() in your PHP script. HTH! Jay **

[PHP] CURL without --with-curl

2002-08-29 Thread Henry
How can I use CURL if I cannot recompile PHP with --with-curl. I am using PHP4.2.2 on a shared server with an ISP so I do not get the ability to recompile. Hope someone can make a suggestion. I want to be able to do GET and POST requests of pages easily to Google. TIA Henry -- PHP Genera

Re: [PHP] Set Variable to Multiple Lines

2002-08-29 Thread Michael Sweeney
What you're looking for seems to be called the 'here document' syntax. I've always seen it used with print and there's a reference to it in the print function (okay, construct) PHP documentation, but a quick test shows that you can also use it to assign to variables. As follows: $var = << > I've

RE: [PHP] Odd URL problem

2002-08-29 Thread Jay Blanchard
[snip] So it seems that the browser in the failing case is trying to deal with the URL in its encoded form. Anyone have any ideas about what I'm missing? [/snip] A quick thought, run and see what register_globals is set to in the php.ini HTH! Jay -- PHP General Mailing List (http://www.ph

[PHP] Odd URL problem

2002-08-29 Thread Steve Lane
Hello all: I'm seeing an odd problem after I moved a large PHP application from one server to another. Part of the system sends an email to users, containing a clickable http:// link. The link includes a parameter called "goto", which bundles up a set of name-value pairs, which indicate the user

[PHP] Reading header information

2002-08-29 Thread jimmy
What I'd like to do is get some of the information found when you do a telent on port 80 like this below.. telnet www.hostname.com 80 Trying www.hostname.com... Connected to.www.hostname.com Escape character is '^]'. HEAD / HTTP/1.0 HTTP/1.1 200 OK Date: Thu, 29 Aug 2002 17:00:09 GMT Server: Ap

[PHP] Set Variable to Multiple Lines

2002-08-29 Thread Mike richardson
I've been searching for this old php feature (perhaps it was deprecated), and can't get the right keywords to look it up. There was a way, similar to the perl method shown below, to set multiple lines of data equal to a variable. (in perl) $variable = __SOME_HEADER_HERE__ Put whatever is desir

[PHP] Re: Getting local domain name in CLI

2002-08-29 Thread Geranium
In article <[EMAIL PROTECTED]>, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > What about... > > $hostname = `/bin/hostname`; > > or something along those lines... Well that's rather the kind of thing I was wanting to avoid - it's much akin to rummaging in /etc. the hostname command gives me m

Re: [PHP] file creation question

2002-08-29 Thread Adam Williams
Search the archives, this was explained 2-3 days ago how to dynamically generate a while without creating one on the server. Adam On Thu, 29 Aug 2002, John Hegele wrote: > I'm currently building a site for a band and one of the features I'd like to > offer is vCalendar f

[PHP] file creation question

2002-08-29 Thread John Hegele
I'm currently building a site for a band and one of the features I'd like to offer is vCalendar files that the user can download. I'd like to be able to pull values from a database to use in the file, but, rather than having the actual file on the server, I was hoping that I could create the file

RE: [PHP] Building a query on multiple variables, how to test for which variable

2002-08-29 Thread @ Edwin
Does this fit your idea of a "more elegant solution"? This is just an enhanced and tested version of the one I posted earlier (somehow I had time and was curious about it). $value){ // walk if ($value != 0){ // make sure the "--- Select ---" is not included if ($its_set == 1){

[PHP] Re: Getting local domain name in CLI

2002-08-29 Thread Philip Hallstrom
What about... $hostname = `/bin/hostname`; or something along those lines... On Thu, 29 Aug 2002, Geranium wrote: > I need to get the domain name of the local machine. > I'm running a CLI script in PHP 4.3-cvs (on OpenBSD) so I have no HTTP > or other global vars to look at. The posix_uname co

[PHP] Re: wish list for my host's new compile

2002-08-29 Thread Philip Hallstrom
On Thu, 29 Aug 2002, Justin French wrote: > Hi all, > > My host is putting together a new linux box at the moment for hosting, and I > want to make sure that they include a few things that I've needed, but > weren't available on the current server. I've got about 15 domains with > them, so it's

Re: [PHP] Print page

2002-08-29 Thread @ Edwin
> >Hi, >I'm using PHP to generate some report for printing. >But when I print report from IE 5.0 browser, in the bottom of page >IE prints URL of page. >Can I remove it ? Yes. Click on "File" -> "Page settings..." then find "Footer" and you'll see something like this: &u&b&d Take away the "&

Re: [PHP] sprintf() question

2002-08-29 Thread @ Edwin
Experiment a bit and I'm sure you'll find it easy. One example, change this portion $formatted = sprintf("%01.2f", $money); to $formatted = sprintf("%01.3f", $money); then see how it works... HTH, - E > >I read the manual page on sprintf, but I still don't understand exactly >how the

RE: [PHP] Print page

2002-08-29 Thread Collins, Robert
yes, but that is a browser function not php goto file -> page setup -> then remove the header and footer data Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] -Original Me

RE: [PHP] Print page

2002-08-29 Thread Jay Blanchard
[snip] I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? [/snip] Only in individual browser settings (like IE, File->Page Setup->Clear the Header and Footer boxes). There is no way to con

[PHP] Print page

2002-08-29 Thread Rosen
Hi, I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Transactions with InnoDB

2002-08-29 Thread Geranium
In article <[EMAIL PROTECTED]>, Miles Thompson <[EMAIL PROTECTED]> wrote: > I've not worked with InnoDb, but given that the web is a stateless space > and all kinds of things can happen, I'd be very reluctant to lock a record > until the very moment I'm updating it. In other words, when I have

[PHP] sprintf() question

2002-08-29 Thread SpamSucks86
I read the manual page on sprintf, but I still don't understand exactly how the format string works. $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; // echo $money will output "123.1"; $formatted = sprintf("%01.2f", $money); // echo $formatted will output "123.10" How does t

[PHP] Re: Cannot get data from form.

2002-08-29 Thread Javier Montserat
Turning off register globals and referencing variables through the new array syntax certainly gives a greater degree of control over the origin of data; ie: a variable referenced $_POST['foo'] has (most likely) been received as a result of http post and it's reasonably safe to assume $_COOKIE['

Re: [PHP] PHP and Transactions with InnoDB

2002-08-29 Thread Miles Thompson
I've not worked with InnoDb, but given that the web is a stateless space and all kinds of things can happen, I'd be very reluctant to lock a record until the very moment I'm updating it. In other words, when I have my batch of updates and inserts ready to go, then I'd begin by transaction, exec

[PHP] Re: Cannot get data from form.

2002-08-29 Thread Brian Windsor
That's the way it works in the newer PHP for security reasons. I had to rewrite all my code about a week ago because my client was using php 4.2 and I had 4.0. It has to do with the Globals are set to being turned off in the php.ini file. You should be able to change the php.ini file to global

[PHP] PHP and Transactions with InnoDB

2002-08-29 Thread Geranium
I could use some practical tips on doing transactions with InnoDB tables in MySQL. I want to grab and lock a record and do a whole load of related stuff, then make sure everything is updated in a consistent way, something like this skeleton: BEGIN SELECT * from blah WHERE something=n FOR UPDATE

Re: [PHP] setcookie IE6 problem

2002-08-29 Thread Javier Montserat
Thanks for the reply, a little more info below... Speaking of cookies, any general thoughts on the relative merits of using php's setcookie function vs. setting a cookie with a header() call? Are both methods equal? Will do more research later and post anything interesting on the IE6 issue..

  1   2   >