Re: [PHP] ill sprintf() behavior w/ HEX type

2002-11-21 Thread Jason Wong
On Thursday 21 November 2002 15:51, Chris Wesley wrote: > Using PHP/4.2.2 & Apache/1.3.26 on Linux 2.4.17 > > I'm trying to format a HEX value into an 8-byte string, that is > zero-padded to the left, using sprintf(). Simple enough. > > $sprintf( "%08x", "fa23d" ); > This should return "000fa23d".

Re: [PHP] Session not Registering

2002-11-21 Thread Ernest E Vogelsinger
At 04:02 21.11.2002, Stephen said: [snip] >I have a PHP script that logs someone in then takes them to another page >indicating their online status. However, when I try echoing out the >contents of the session variable, it says this: > >Notice: Undefine

Re: [PHP] Newbie: nested include and object in session

2002-11-21 Thread Ernest E Vogelsinger
At 04:30 21.11.2002, Michael Wai said: [snip] >Hi everyone, I'm a newbie on PHP and MySQL. I've two questions that want to >get some help. > >1. How to solve the problem of nested include? That's mean A include B and B >include C. Just do it, it works perfec

RE: [PHP] STRICTLY CONFIDENCIAL

2002-11-21 Thread Troy May
Oldest scam in the book. Nice try. -Original Message- From: desmond west [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 17, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: [PHP] STRICTLY CONFIDENCIAL #20 BOTHA CRESCENT, SADTON,JOHANNESBURG, SOUTH AFRICA. Tel/Fax:+:+27-834377724 E-mail:[

Re: [PHP] ill sprintf() behavior w/ HEX type

2002-11-21 Thread Chris Wesley
On Thu, 21 Nov 2002, Jason Wong wrote: > That's because it's expecting a _decimal_ and will automatically convert it to > hex for you. AH! Must've been a longer day than I thought ... dunno how that escaped me. Somehow I was reading "x - the argument is treated as in integer and presented as a

[PHP] FW: FTP_SITE and FTP_EXEC prob

2002-11-21 Thread António Godinho
Hya, I'm using a script to upload a file, and after I need to chmod it to 755. I upload the file with no prob AND I can chmod using the ftp server with a FTP client. But when I use PHP I get this error: Warning: ftp_site: Unknown SITE command. in /home/to/public_html/CriaPagina.ph

Re: [PHP] STRICTLY CONFIDENCIAL

2002-11-21 Thread Jason Wong
On Monday 18 November 2002 10:53, Troy May wrote: > Oldest scam in the book. Nice try. Please, we've all seen it before. We all know it's a scam. Really there's no need to comment each time some idiot sends one of these. The idiots won't be reading your smart comments -- it is us, the law-abidi

[PHP] apache 2.0.43 and php 4.2.2 compilation problem

2002-11-21 Thread Matthieu Le Corre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 lo, i've a working apache 2.0.43 and php 4.2.3 ... but it seems that the informix support is broken (unable to connect) so I decided to downgrade to php 4.2.2 . and i'm unble to compil :/ i get error :'( sorry for my french version of make :P a

[PHP] url - self

2002-11-21 Thread Paul Dionne
hello, I have three tables with similar formats but different information. So, I wrote one function to deal with all three. Problem is that originally this was done with one form, so I had an add button at the bottom (and delete beside each record). But the form took too long to load now I n

Re: [PHP] Still having ereg migranes

2002-11-21 Thread Marek Kilimajer
I think you should really ask at a unix list Mako Shark wrote: Heheh. Maybe I wasn't clear, or maybe I'm missing something. Well, one way without regex would be to explode() numbers on a comma and use in_array() to see if you're value exists. That should look for your number, preceded by eit

Re: [PHP] Listing a table /Limit

2002-11-21 Thread Marek Kilimajer
Simply do it like with math fields: SELECT count(*) WHERE order_column < '$mid_row_value' Marco Bleeker wrote: At 15:38 20-11-02 +0100, you wrote: I don't think this can be done without ordering the selection first. Then you can do it: 1. you need to find out the value your middle row has in

Re: [PHP] Re: SQLCODE=-930

2002-11-21 Thread Matthieu Le Corre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 oki that good i managed to compile php 4.2.2 but my informix support is still broken :/ did you manage tu connect tu ifx with 4.2.2 and apache 4.0.23 ? if yes . what's your ifx SDK version ? Le Lundi 18 Novembre 2002 17:00, Matthieu L

[PHP] Problem on OpenDir()

2002-11-21 Thread Jack
Dear all I was trying to check if a directory exist in a specific folder, but i got this error message as below : Warning: OpenDir: Invalid argument (errno 22) in C:\InetPub\wwwroot\Nedcor Internal Live\Reports\Bills Reports\page.php on line 21 here is the code :

[PHP] character ' in switch

2002-11-21 Thread Martin Hudec
Hello all, I would like to know how can I put ' character to case in switch... Situation: from flash i am getting url: index.php?action=what's new i need to pass this thing to switch like: switch ($action) { case about: code break; case what's new: <-- i want this.

RE: [PHP] character ' in switch

2002-11-21 Thread Jon Haworth
Hi Martin, > I would like to know how can I put ' character to case in switch... > > switch ($action) { >case about: >code >break; > >case what's new: <-- i want this... >code >break; Try wrapping the cases in quotes: switch ($action) { case "

[PHP] Re: Problem on OpenDir()

2002-11-21 Thread Brian McGarvie
I don't do much file-stuff with php & windows, but i think the path nees to use // not \\? "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear all I was trying to check if a directory exist in a specific folder, but i got this error message as below : Warn

[PHP] Re: character ' in switch

2002-11-21 Thread Brian McGarvie
try: case "what's new": "Martin Hudec" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello all, > > I would like to know how can I put ' character to case in switch... > > Situation: > > from flash i am getting url: index.php?action=what's new > > i need to

RE: [PHP] url - self

2002-11-21 Thread Jon Haworth
Hi Paul, > I just need to know how to get the url of the page > calling the function so I can delete the information > from the appropriate table. Does $PHP_SELF not give you what you're after? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] REPLY NEEDED

2002-11-21 Thread Peter Goggin
Where has this crap come from? Regards Peter Goggin - Original Message - From: "MICHAEL OSHODI" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 5:51 PM Subject: [PHP] REPLY NEEDED ASSISTANCE WE ARE MEM

[PHP] Re: [PHP-DB] Help with Date

2002-11-21 Thread DL Neil
Rodrigo, Is there a way to convert a date " 20/11/2002 " to a Float number in PHP, since the date starts in 30/12/1899, just like the delphi treats the dates =Check out UNIX timestamps (but watch the valid date range), =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] script seen on php.net manual

2002-11-21 Thread Pedro Furtado
hey thanx for the answer, actually yes, but it's my fault, the thing is on the other side is flash and not php, so i need to output something like this to later parse it in flash &response4:&row0=$article__2||tipo 1:&row1=art2|b|Tipo 2:&colunms 4&rows 2 but i cannot harcode anything because

Re: [PHP] Session not Registering

2002-11-21 Thread Stephen
I didn't orginially put that there. I also made it echo out the session varaible on the first page where they login and it displayed correctly. It's just when you go to a new page. The line 38 is the part where it echos out. - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTE

RE: [PHP] character ' in switch

2002-11-21 Thread David Russell
Hi Martin, Just a thought - can't you escape it? switch ($_GET['action']) { case "about": code break; case "what\'s new": <-- i want this... code break; default: break; } You would definitely need to put it into quotes (as I have above)

RE: [PHP] Session not Registering

2002-11-21 Thread David Russell
I assume that you do have a sesion_start() on the second (Target) page It needs to be present on each page using your session. David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com -Orig

RE: [PHP] character ' in switch

2002-11-21 Thread Ernest E Vogelsinger
At 13:16 21.11.2002, David Russell spoke out and said: [snip] >Hi Martin, > >Just a thought - can't you escape it? > >switch ($_GET['action']) { > case "about": > code > break; > > case "what\'s new": <-- i want this... > code >

Re: [PHP] Session not Registering

2002-11-21 Thread Ernest E Vogelsinger
At 13:42 21.11.2002, Stephen spoke out and said: [snip] >I didn't orginially put that there. I also made it echo out the session >varaible on the first page where they login and it displayed correctly. It's >just when you go to a new page. ---

RE: [PHP] character ' in switch

2002-11-21 Thread David Russell
Hi Ernest, I stand corrected. (I tend to standardise on double quotes where possible, and rarely use singles) Thanks for correcting me on this. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.Barlow

RES: [PHP] Passing Variables from one php doc to another

2002-11-21 Thread Rodrigo de Oliveira Costa
I tried to use this way but it doesnt work I think its because it is a variable that I have to pass, something like: http://www.example.com/doo.php?dah=something&dee=$somethingelse HELP Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: RES: [PHP] Passing Variables from one php doc to another

2002-11-21 Thread Bastian Vogt
hi, then you have to do it like this: http://www.example.com/doo.php?dah=something&dee= regards, Bastian > I tried to use this way but it doesnt work I think its because it is a > variable that I have to pass, something like: > > http://www.example.com/doo.php?dah=something&dee=$somethingels

Re: RES: [PHP] Passing Variables from one php doc to another

2002-11-21 Thread Jason Wong
On Thursday 21 November 2002 22:04, Rodrigo de Oliveira Costa wrote: > I tried to use this way but it doesnt work I think its because it is a > variable that I have to pass, something like: > > > http://www.example.com/doo.php?dah=something&dee=$somethingelse ___HOW___ does it not work? -- J

RE: [PHP] url - self

2002-11-21 Thread Paul Dionne
Yep, that is what I was looking for. thanks, paul Jon Haworth wrote: > Hi Paul, > >> I just need to know how to get the url of the page >> calling the function so I can delete the information >> from the appropriate table. > > Does $PHP_SELF not give you what you're after? > > Cheers > Jon

[PHP] Ereg headache: got an Aspirin

2002-11-21 Thread Mako Shark
Finally, I found y answer to my ereg/grep question. Thanks to all those who took a stab at it. You led me to the answer. For all those interested in reg-parsing comma-delimited lists, here is what I searched for: '^$' It was much simpler than I thought it would be. Thanks again!

Re: [PHP] MY CLIENT

2002-11-21 Thread UberGoober
I've had some of my posts moderated away, how do these jokers sneak them in? "Troy May" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sorry, I'm holding out for the 126 million. :) > > > > -Original Message- > From: GEORGE EMEKA [mailto:[EMAIL PROTEC

[PHP] Similar settings of encoding constants as codepage in ASP?

2002-11-21 Thread Ns_Andy
Codepage can be used to set different encoding in ASP, what about PHP? -- Regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ImageLoadFont

2002-11-21 Thread Christoph
Hi, I want to create dynamic images using php4 & php4-gd2. My problem now: in wich format the bitmap font file have to be to be loaded correctly into my script? Regards peterschen --- Liebe ist es, nach einem Bluescreen zu behaupten es gäbe keine Alternative. http://www.peterschen.de/ -- PHP

[PHP] Preg_replace question

2002-11-21 Thread David Russell
Hi all, Following on from a previous discussion, I am trying to write a "safe" strip_tags function. I start by applying htmlentities to the entire string, and then convert "allowed" tags back. One of the steps I am looking at doing is to replace something "" wit

Re: [PHP] Preg_replace question

2002-11-21 Thread Marek Kilimajer
Try xml parsing functions, start with an empty string and build it up in your handlers. In start element handler check if the tag is allowed, if yes, append it to the string together with allowed attributes, and add it to a count (so users won't be able to mess up your design), else append it u

[PHP] I'm having a problem with running scripts on IIS server

2002-11-21 Thread Davíð Örn Jóhannsson
This is the script I’m running And it results this: ?>&title1=ewrsdf&date1=21.11.2002&headline1=sfasd%20fsd%20sdfdff&full1=s df%20sdf%20sdf%20asdfdline$i=%s&full$i=%s", $title, $date, $headline, $full);} php?> , $full); } php?> Prints out all kinds of shit, php tags, variable names and st

Re: [PHP] Preg_replace question

2002-11-21 Thread 1LT John W. Holmes
> Following on from a previous discussion, I am trying to write a "safe" > strip_tags function. > > I start by applying htmlentities to the entire string, and then convert > "allowed" tags back. > > One of the steps I am looking at doing is to replace something " href="blah" onmouseover="blah">

Re: [PHP] Preg_replace question

2002-11-21 Thread Ernest E Vogelsinger
At 15:38 21.11.2002, David Russell spoke out and said: [snip] >One of the steps I am looking at doing is to replace something "href="blah" onmouseover="blah">" with "" [snip] I found it way easier not to look for

FW: [PHP] I'm having a problem with running scripts on IIS server

2002-11-21 Thread Davíð Örn Jóhannsson
And it results this: ?>&title1=ewrsdf&date1=21.11.2002&headline1=sfasd%20fsd%20sdfdff&full1=s df%20sdf%20sdf%20asdfdline$i=%s&full$i=%s", $title, $date, $headline, $full);} php?> , $full); } php?> Prints out all kinds of stuff, php tags, variable names and stuff, I’ve used this script on a

[PHP] New ImageMagick Extension v0.1a Released

2002-11-21 Thread Michael Montero
Hello all! I have release version 0.1a of an ImageMagick PHP extension. It includes everything you need to test it out and it's well documented. I support a small number of functions and am working on adding PHP functionality for everything that ImageMagick can do. I'm sending out this releas

[PHP] mysql_num_rows

2002-11-21 Thread empty
Hi guys; I have a problem (or mistake(s)); for this code 39| $result=mysql_query("slecet * from site_members where User_Name='$username'"); 40| $num_row=mysql_num_rows($result); 41| if($num_row>0) echo("error 46"); as a reult I have unsolved error in my hands :( Warning: mysql_num_ro

Re: [PHP] mysql_num_rows

2002-11-21 Thread Chris Shiflett
Your query on the previous line is failing for one reason or another. You can use mysql_error() to get the error message from MySQL, or you can place an echo statement in your code to make sure the SQL statement is what you think it is. You can also try the SQL statement yourself interactively at

RE: [PHP] mysql_num_rows

2002-11-21 Thread M.A.Bond
I suppose it's nothing to do with the spelling mistake in the sql statement (slecet should be select) Mark -Original Message- From: empty [mailto:[EMAIL PROTECTED]] Sent: 21 November 2002 15:57 To: [EMAIL PROTECTED] Subject: [PHP] mysql_num_rows Hi guys; I have a problem (or mistake

Re: [PHP] mysql_num_rows

2002-11-21 Thread Sascha Cunz
Hi, > 39| $result=mysql_query("slecet * from site_members where > User_Name='$username'"); 40| $num_row=mysql_num_rows($result); > 41| if($num_row>0) echo("error 46"); There is an typo-error in the word "slecet" which shoud look like "select" :-) -Sascha -- PHP General Mailing List (htt

Re: [PHP] mysql_num_rows

2002-11-21 Thread Marek Kilimajer
add echo mysql_error(); after line 39, it should tell you why the query failed in the future. Now I can tell you you have a typo: "slecet" => "select" empty wrote: Hi guys; I have a problem (or mistake(s)); for this code 39| $result=mysql_query("slecet * from site_members where User_Name='

[PHP] thanks :)

2002-11-21 Thread empty
ooww there is nothing "slecet" in mysql :) thanks all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML page and php

2002-11-21 Thread Martin Johansson
How do I get a html page into a string variable in php? Isnt there any function working like this: $homepage = getHtmlPage(http://www.myhomepage.com/index.html); /Newbie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MY CLIENT

2002-11-21 Thread Van Andel, Robert
Perhaps its the moderator sending them out ;) (This'll be my one and only off topic post, I just couldn't resist). Robbert van Andel -Original Message- From: UberGoober [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 5:35 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] MY CLIE

[PHP] show mysql- processing time

2002-11-21 Thread Tularis
I was wondering if anyone knew of a way to return the processing time of a mysql query via php. And NOT using the $starttime = time(); mysql_query($whatever); $endtime = time(); $processingtime = $endtime - $starttime; Does anyone please? -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: HTML page and php

2002-11-21 Thread Tularis
Martin Johansson wrote: How do I get a html page into a string variable in php? Isnt there any function working like this: $homepage = getHtmlPage(http://www.myhomepage.com/index.html); /Newbie try this: $file = file('http://www.myhomepage.com/index.html'); foreach($file as $key => $val){ ec

[PHP] crashed apache-processes eat up my cpu

2002-11-21 Thread sebastian stadtlich
Sorry it is not 100% sure that this PHP relatet, but since PHP is the only thing i run on the Server it is very likely : Every day i find strange httpd-processes that eat up my cpu power. # /top 336 nobody17 0 6012 6012 4944 R95.9 0.5 55:49 httpd 32745 nobody19 0 6324 6324

[PHP] running php on apache 2 on windows??

2002-11-21 Thread Chris Edwards
Anyone got it working? I'm getting this: C:\Program Files\Apache Group\Apache2\bin>Apache.exe Syntax error on line 183 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/php/sapi/php4apache2.dll into server: The specified procedure could not be found. -- Chris Edwards Web Ap

Re: [PHP] Session not Registering

2002-11-21 Thread Stephen
I fixed it. It was my stupidity. I forgot to call session_start on the other pages... - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 8:02 AM Subject: Re: [PHP] Ses

Re: [PHP] show mysql- processing time

2002-11-21 Thread Chris Shiflett
Well, you say you want to return the processing time of a MySQL query via PHP, but then you go on to say that you do not want to do this in PHP. :-) I would recommend Jeremy Zawodny's mytop: http://jeremy.zawodny.com/mysql/mytop/ Chris --- Tularis <[EMAIL PROTECTED]> wrote: > I was wondering if

RE: [PHP] show mysql- processing time

2002-11-21 Thread Van Andel, Robert
This is what I did. $StartTime = date("U"); $result = mysql_query($query); $EndTime = date("U"); $difference = $EndTime - $StartTime; echo "The query took $difference seconds to generate\n"; Perhaps not the most accurate but who cares about a few milliseconds. Robbert van Andel -Original

RE: [PHP] show mysql- processing time

2002-11-21 Thread Van Andel, Robert
Sorry, I didn't read the entire message. Didn't realize you were already using my suggestion. Robbert van Andel -Original Message- From: Tularis [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:28 AM To: [EMAIL PROTECTED] Subject: [PHP] show mysql- processing time I was

[PHP] Object Oriented PHP

2002-11-21 Thread Stephen
I need some books on OOP, Object Oriented PHP. Any recomendations? Thanks,Stephen Cratonhttp://www.melchior.us   "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) T

[PHP] Automatic file upload...

2002-11-21 Thread Tom Woody
I am trying to put together a script so that I can upload files to a php script, with just a URL and can't seem to get my brain around it. For example, The browser would have a url like: http://example.com/upload/fileupload.php?filename=C:\filename.txt Is there a way to do this and I'm ju

Re: [PHP] Automatic file upload...

2002-11-21 Thread Marco Tabini
Hi Tom, You can't specify a default for the file input box--that would be a security problem. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! --- Begin Message -

Re: [PHP] Automatic file upload...

2002-11-21 Thread Marek Kilimajer
No, there is no way. This is a security restriction - if it would be possible, any web page could steal files from you. Tom Woody wrote: I am trying to put together a script so that I can upload files to a php script, with just a URL and can't seem to get my brain around it. For example, The br

[PHP] php programming style

2002-11-21 Thread Beau Hartshorne
Hi, I'm curious if it's bad coding style for a function to return a value on success, or simply "false" on fail. Here's what I mean: Is this ok? Thank you, Beau -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help needed with the php.ini file

2002-11-21 Thread Pushpinder Singh Garcha
Hi all I am trying make changes with the register_global variable in the php.ini file, but I am unable to locate it. I am running Mac OS JaguarPlease help me out Many Thanks. --Pushpinder Pushpinder Singh Garcha _ Web Architect T. Falcon Napier and Associat

Re: [PHP] show mysql- processing time

2002-11-21 Thread Tularis
ok, let me rephrase that... I ment I would like to use a php-function for it, OR a mysql command... just not such a function as I put down here... Chris Shiflett wrote: Well, you say you want to return the processing time of a MySQL query via PHP, but then you go on to say that you do not want t

Re: [PHP] php programming style

2002-11-21 Thread Ray Hunter
It depends on many issues...do you have a set standard that you use when programming. 1. does it make sense to do it that way. 2. are there performance issue 3. is it understandable for maintenance by yourself or others. 4. does the function require a return value, if so which type. I think that

[PHP] Re: php programming style

2002-11-21 Thread Tularis
why wouldn't it be?? it's clean code as long as you can read it without having to do much trouble, and you have written it the shortest way possible with still enough extra stuff around to make other ppl understand it... so, I would say -> yeah, it's clean :) - Tularis Beau Hartshorne wrote:

Re: [PHP] Help needed with the php.ini file

2002-11-21 Thread Ray Hunter
You need to supply more info here for help. 1. like how is php installed: compile, rpm 2. where is php trying to look for you php.ini file ( phpinfo() path) 3. tell us what you have done to try and find the php.ini file. Then we can really help out... or just run and search for the file php.ini

[PHP] MySQL-port question

2002-11-21 Thread Jule Slootbeek
I have a problem, i know this is not the MySQL mailinglist, but i hope you guys can help me. when i type mysqladmin variables the port comes up as 0 and doesn't let people connect to my db remotely. does anyone know why this problem is, and how i can change my port? TIA Jule Jule Slootbeek [EMAI

Re: [PHP] Automatic file upload...

2002-11-21 Thread Hugh Danaher
Tom, It sounds like the file you want is online someplace. So, perhaps it's fread() that you want to use. With it, you can get the html output of a page. Hugh - Original Message - From: "Tom Woody" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 9:28 AM Subje

Re: [PHP] Help needed with the php.ini file

2002-11-21 Thread 1LT John W. Holmes
> I am trying make changes with the register_global variable in the > php.ini file, but I am unable to locate it. > I am running Mac OS JaguarPlease help me out Create a page with only on it and call it up through your browser. The first block on the page will tell you where php.ini is. If t

Re: [PHP] Automatic file upload...

2002-11-21 Thread 1LT John W. Holmes
> For example, The browser would have a url like: > http://example.com/upload/fileupload.php?filename=C:\filename.txt Hmmm...that would be fun. How about I just send you my hard drive now? You can't give values for file inputs. Otherwise, you could steal files w/o people knowing about it. ---Joh

Re: [PHP] Graph Question..

2002-11-21 Thread Jim Hatridge
HI Andrew et al... On Wednesday 20 November 2002 21:09, Andrew Brampton wrote: > Try going direct to the image's URL, this might show any PHP errors. If > that doesn't work, you can request the page via telnet and see if any > errors are appearing > > Andrew I hate to admit it but I don't understa

[PHP] OT-Laptops

2002-11-21 Thread Edward Peloke
I know this if off topic but who better to ask this question to than people who work on a computer everyday. I can't find any information online so I thought I would risk getting yelled at and ask. Does anyone have or know anything about Sotec Laptops? Thanks, Eddie -- PHP General Mailing Li

Re: [PHP] Graph Question..

2002-11-21 Thread Hugh Danaher
Jim, on the calling page change echo "\n"; to echo "something here\n"; Now, when you click on the link, the error message should show instead of the broken box. Hugh - Original Message - From: "Jim Hatridge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 7:2

Re: [PHP] Graph Question..

2002-11-21 Thread Hugh Danaher
Jim, Regarding "undefined function: imagegif()," It could be that your build of the "GD Library" doesn't include gif support. You can try replacing this function with imagejpg() or imagepng(). Imagepng() will likely be faster and sharper than imagejpg(). Hugh - Original Message - From: "J

Re[2]: [PHP] Graph Question..

2002-11-21 Thread Alexander Lazarchuk
Hello Jim, The problem is with imagegif() function. Probably, you have PHP with no GD library (available at http://www.boutell.com/gd/) Or you have GD library version 1.6 With best regards, Alexander Lazarchuk ** Alexander Lazarchuk * mail:[EM

Re: [PHP] OT-Laptops

2002-11-21 Thread Chris Hewitt
Edward Peloke wrote: I know this if off topic but who better to ask this question to than people who work on a computer everyday. I can't find any information online so I thought I would risk getting yelled at and ask. Does anyone have or know anything about Sotec Laptops? Not sure where you

RE: [PHP] OT-Laptops

2002-11-21 Thread Edward Peloke
yes but I am looking for reviews... -Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:57 PM To: Edward Peloke Cc: [EMAIL PROTECTED] Subject: Re: [PHP] OT-Laptops Edward Peloke wrote: >I know this if off topic but who better to ask this

RE: [PHP] php programming style

2002-11-21 Thread Beau Hartshorne
> I think that some of the above question might help you out. However, > from a programming standpoint i like to make sure that my functions > return the same type at least. Some feel different about this and > return various type (ie, int, strings, arrays)... I agree that it should return a cons

[PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
I apologize for being a pest about this, I'm just not getting it. I'm attempting to open a connection to NetLedger to post an XML file. I'm attempting this basic code, which is pretty much what I find everywhere: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/

[PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Xin Qi
hi there, if i have a group of checkboxes, and they have the SAME name, when they are submited into a php script, how can this php file get the value of each checkbox? since they have the same name, $_GET["checkbox_name"] only returns the last one. thanks -- PHP General Mailing List (http://

[PHP] Base 27?

2002-11-21 Thread Leif K-Brooks
I'm trying to make a fairly simple encryption thing. My idea is to use base 27 numbers (the first 27 digits are the alphabet, the 27th is the space), and then converting to base 10. Any one know of a way to do this? -- The above message is encrypted with double rot13 encoding. Any unauthorize

RE: [PHP] php programming style

2002-11-21 Thread Ernest E Vogelsinger
At 19:54 21.11.2002, Beau Hartshorne said: [snip] >I agree that it should return a consistent type. I was planning on >returning a populated array on success, or a boolean false on fail. >Instead, I will return an empty (but initialized) array on fail, and us

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Ernest E Vogelsinger
At 20:14 21.11.2002, Xin Qi said: [snip] >if i have a group of checkboxes, and they have the SAME name, when they are >submited into a php script, how can this php file get the value of each >checkbox? > >since they have the same name, $_GET["checkbox_name"]

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Adam Williams
user name=cb[] and PHP will automatically make the array. then call it with $_GET["cb"][#] Adam On Thu, 21 Nov 2002, Xin Qi wrote: > hi there, > > if i have a group of checkboxes, and they have the SAME name, when they are > submited into a php script, how can this php f

Re: [PHP] Base 27?

2002-11-21 Thread Ernest E Vogelsinger
At 20:21 21.11.2002, Leif K-Brooks said: [snip] >I'm trying to make a fairly simple encryption thing. My idea is to use >base 27 numbers (the first 27 digits are the alphabet, the 27th is the >space), and then converting to base 10. Any one know of a way

[PHP] Writing a Polling App - Need Some Advice

2002-11-21 Thread Monty
I'm writing a little polling app for a website, they want to run them each week. They will be the simple "choose your favorite" kind of multiple-choice polls. If anyone has ever written one of these, what is the best way to set up the poll questions? Do I store each question in a separate table an

Re: [PHP] plus sign has changed to space after POST

2002-11-21 Thread bhkwan
finally, I have this issue solved. I have recompiled PHP "without" this --enable-mbstr-enc-trans For those who said they have no problem with the "+" sign, tried to compile your PHP with the option above and tried it out!!! ;) I know this is not a PHP bug but I am curious how people handle th

[PHP] Re: Writing a Polling App - Need Some Advice

2002-11-21 Thread Philip Hallstrom
You're best bet is to take a look on zend.com in their application gallery and find one that does what you want :) Or at least you could see how others have done it. On Thu, 21 Nov 2002, Monty wrote: > I'm writing a little polling app for a website, they want to run them each > week. They will b

[PHP] ImageCreateFromJpeg error

2002-11-21 Thread Scott Nagel
I am trying to use the following piece of code: $img_resized = imagecreate($img_new_width, $img_new_height); $img_source = ImageCreateFromJpeg($pa_strDocroot.$pa_strReadFold."/".$this->Name); imagecopyresized($img_resized, $img_source, 0 , 0 , 0 , 0, $img_new_width, $img_new_height, $this->Width,

php-general@lists.php.net

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi BAROILLER Pierre-Emmanuel, On Sat, 9 Nov 2002 15:34:56 +0100, you wrote about "[PHP] Re: http$B$G%;%C%7%g%s$r3+;O$7$?>l9g!"(Bhttps$B$X9T$C$F$b7QB3$5$l$k$N$G$7$g$&$+!)(B" something that looked like this: >Hi ! >Could you write it in english please ? Yeah ... not alot of people here can rea

[PHP] re: No Reply From cURL

2002-11-21 Thread greg R
I don't think cURL is very intuitive. Can you at least echo a response code from your function, such as $res = curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/SmbXml";); echo $res; That should at least tell you, if nothing else, that you could successfully get into the service. If

[PHP] Forgoten

2002-11-21 Thread Cesar Aracena
Hi all, I’m quite rusty with this sessions stuff (just came from vacations) and have this strange problem with a session I’m trying to build. Along with that, I’m making my first lines of code with a new portable computer and maybe PHP or Apache is not well configured… any ideas? The code goes as

Re: [PHP] How to use string as variable name?

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi Adam Voigt, On 18 Nov 2002 13:11:30 -0500, you wrote about "Re: [PHP] How to use string as variable name?" something that looked like this: >$date = "2002-11-22"; >$myvar = "a" . str_replace("-","",$date); >$$myvar = "hi"; > >echo "$a20021122"; GREAT ... works right off ..thx a billion ...

Re: [PHP] Writing a Polling App - Need Some Advice

2002-11-21 Thread Kevin Stone
Somebody suggested downloading a pre-made script that does what you want but I say that's no way to program. Simple scripts like this one clear the mind and are good experience. Besides nobody ever got good at programming by using pre-made scripts. ;-) Okay down to basics. You can break up the

Re: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 11:55 AM, greg R wrote: I don't think cURL is very intuitive. Well, I'm glad to see someone else say that. Makes me feel less retarded. Can you at least echo a response code from your function, such as $res = curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/SmbXml

[PHP] Client IP address

2002-11-21 Thread Ron Smith
I know this is probably easily solved, but I'm trying to locate the PHP function which returns the client's IP address when they request a page from the server. I'm having no luck searching the php.net function list. Kindest regards, Ron "Yes, they were dinking with the DNS last weekend, a

Re: [PHP] Client IP address

2002-11-21 Thread Stephen
It's not a function, it's a variable: $_SERVER["REMOTE_ADDR"]; - Original Message - From: "Ron Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 3:16 PM Subject: [PHP] Client IP address > I know this is probably easily solved, but I'm trying to locat

Re: [PHP] No Reply From cURL

2002-11-21 Thread Bret L Conard
I had a devil of a time figuring out how to make it work. After searching the archives and lots of other sites I came up with the following code: (FYI - I am using authorize.net, so some of the response parameters may be different for you) HTH Bret https://secure.website.net/script_or_application"

  1   2   >