[PHP] show something

2002-02-05 Thread val petruchek
Hello, list! I've php script that works for seveeral minutes (3-5) - it indexes my site and when page is indexed it echoes a one-row table (page bla.bla.bla indexed). But browser shows it only when it gets all the page. I want it to show line by line... I know it can be done in perl (www.tracert

Re: [PHP] mysql fails

2002-02-05 Thread val petruchek
> Suppress the error message: > $result = @mysql_query("sql statement",$db); DL Neil, thank you: INSERT IGNORE is exactly what i need. You helped me greatly! Matt, thaks you for help too, but my non-perfect english doesn't allow me to express my thoughts correctly. Thanks! Valentin Petruchek (

[PHP] Sessions and Classes

2002-02-05 Thread PHP-List
What is the proper way to transfer class properties through-out my pages... let's say i have a ShoppingCart Class and i have methods like addToCart(id, qty) and deleteFromCart(id) also i have properties like CartItems("id" => array(), "qty"=> array()) this is what i do... //when the user enters

[PHP] Mysql

2002-02-05 Thread Roman Duriancik
Pleae help me ! I need delete record from table user.mysql in mysql database, i log on in mysql like root and I log on on linux server like root. But when I write command : delete from user where user=''; mysql send me error message : ERROR 1036 Table 'user; is read only ! Thans for y

Re: [PHP] Checkboxe problem

2002-02-05 Thread Mike Maltese
just use iseet(); if(isset($private)){ //do stuff } - Original Message - From: "Gaylen Fraley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 8:41 PM Subject: [PHP] Checkboxe problem > I have a form with 1 checkbox and have coded it like this: > > > >

[PHP] Fw: why !^ in email?

2002-02-05 Thread nina
- Original Message - From: "YY" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, February 06, 2002 1:29 PM Subject: why !^ in email? > why appear !^ in email when I send HTML email with mail() function? It works > w/ those HTML codes, but I've no idea why there are some "!"

[PHP] Re: Using strings in switches

2002-02-05 Thread Justin Garrett
Try it. But to answer your question, yes. Don't forget to put quotes around your strings in the case statements. switch($name){ case "beesly": break; } "Phantom" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The manual shows that you can use s

[PHP] Using strings in switches

2002-02-05 Thread phantom
The manual shows that you can use switches with numeric values but is it also possible to use strings? Is this possible? If not, what can I do? Just a bunch of if statements? "; break; case Fred Flinstone: echo "Yabba Dabba Do"; break; default: echo "Do not

RE: [PHP] Checkboxe problem

2002-02-05 Thread Niklas Lampén
There is no way. How would you then know if the checkbox was checked or not? I use 'em like this and then check if $private is "myValue" or not. If you really have to get some data thru, use hidden inputs. Niklas -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] breaking out of two loops

2002-02-05 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 20:19, Daniel Grace wrote: > "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message > > > > From the manual: > > > >break accepts an optional numeric argument which tells it how > >many nested enclosing structures are to be broken out of > > > > You can find this

[PHP] Checkboxe problem

2002-02-05 Thread Gaylen Fraley
I have a form with 1 checkbox and have coded it like this: When the form is submitted, $HTTP_POST_VARS[private] only exists IF checkbox is checked. It doesn't exist otherwise, which is causing a problem because there are several other elements before and after. What happens is the value AFTER

Re: [PHP] Convert 24hr to 12hr

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 18:44, Gary wrote: > Hello All, > Can someone please RTFM me so I can convert MySQL 24 hour time to 12 > hour time. > TIA > gary Use MySQL's date_format() function with the %r specifier in your query: shanna% mysql Reading table information for completion of table a

Re: [PHP] << Previous n Articles

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 12:02, jtjohnston wrote: > Jason, > > I'm not ssure I follow. > $offset is the number i read in in my > $limit is the number displayed. > $num_rows is the number of rows in my database. Correct. > What are you doing with $previous? $previous would be my string, no

Re: [PHP] << Previous n Articles

2002-02-05 Thread jtjohnston
Jason, I'm not ssure I follow. $offset is the number i read in in my $limit is the number displayed. $num_rows is the number of rows in my database. What are you doing with $previous? $previous would be my string, not the previous offset? Could you show me again? > > if(!$offset) > > { > > $of

Re: [PHP] << Previous n Articles

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 09:59, jtjohnston wrote: > I'm using this code to create a "Next n Articles >>" on my index.page > from my mysql database. > I worked most of it out myself. Then I got some help. It works. I > thought I understood my own code enough to be able to construct a "<< > Pre

[PHP] Convert 24hr to 12hr

2002-02-05 Thread Gary
Hello All, Can someone please RTFM me so I can convert MySQL 24 hour time to 12 hour time. TIA gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] modDb Contribution

2002-02-05 Thread Vincent - D. Ertner
Hi PHPers, in late 2001 I had a customer that was interested in a kind of universal (my)SQL module for PHPNuke / phpWebsite. Thus I ordered the development and - as fair as life is - the customer went straight into bankruptcy. Now I have a first beta of "modDb" - as we call it - and almost no ne

[PHP] autoindex

2002-02-05 Thread jtjohnston
I want to reset the autoindex in a mysql table using php if I can. I found this. Can anyone help? http://www.mysql.com/doc/m/y/myisamchk_other_options.html J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Dynamic Dropdown menu question.

2002-02-05 Thread jtjohnston
Michael, I think you're trying to kill yourself coding. here's what I do for myself: Select Someone EM."\">".$mydata->FirstName." ".$mydata->LastName."\n"; } mysql_close($myconnection); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] << Previous n Articles

2002-02-05 Thread jtjohnston
I'm using this code to create a "Next n Articles >>" on my index.page from my mysql database. I worked most of it out myself. Then I got some help. It works. I thought I understood my own code enough to be able to construct a "<< Previous n Articles". I guess not. My coding skills need help. So ho

[PHP] RePOST: Sessions and Classes

2002-02-05 Thread PHP-List
What is the proper way to transfer class properties through-out my pages... let's say i have a ShoppingCart Class and i have methods like addToCart(id, qty) and deleteFromCart(id) also i have properties like CartItems("id" => array(), "qty"=> array()) this is what i do... //when the user enters

Re: [PHP] date(), time() different to system time

2002-02-05 Thread Anth Courtney
On Tue, 5 Feb 2002, DL Neil wrote: Hello DL, > =some of the better-looking amongst us are not guys (and then some of us are...) Sorry! :) > Check out the meaning of "EST". > Sixteen hours behind NSW, Australian time would make it New York time wouldn't it? *trumpet fanfare* Thanks for that.

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread bvr
Lose the single quotes, quoting a single variable is nonsense. Quotes are used to define strings, it is a feature (called substitution) of PHP that allows you to use a variable within a string. The reason it doesn't work is that this subtitution is only performed on strings enclosed in "'s (dou

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Jeff Sheltren
Hi, looking at your sql statement, it seems like you are always setting my_job_id and job_id to the same value for each row in the table. "select job_id AS my_job_id" is just putting the value of job_id in a variable called my_job_id. Could you tell us the structure of your mysql table please

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 16:23, Michael O'Neal wrote: > Hi. > > I'm working on an "edit" page where the pull down menu is populated from a > database. I can't figure out how to print "selected" when that particular > record is the one associated with the current ID. Can anyone help? > > Here's my

[PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Michael O'Neal
Hi. I'm working on an "edit" page where the pull down menu is populated from a database. I can't figure out how to print "selected" when that particular record is the one associated with the current ID. Can anyone help? Here's my current code: $title"; } $num = @mysql_num_rows($result);

[PHP] safe mode/mkdir problem - HELP!

2002-02-05 Thread Roberto P.Martins Jr
Hello! I'm trying to create a directory, let's say: /some/dir. My script (create_dir.cgi) is located at the cgi-bin directory and begins with #!/usr/bin/php. So it's like any other script, isn't it? The problem is: running php in safe mode with the script permissions: rwxr-xr-x 8 ro

Re: [PHP] How do I keep form inputs from being cleared - Please Help!

2002-02-05 Thread Miles Thompson
http://www.thickbook.com choose the tutorial for a form with custom error messages. Miles Thompson At 06:40 PM 2/5/2002 -0500, SpamSucks86 wrote: >I have a registration form and if a user enters bad information and the >php script generates an error, I want the user to be able to hit back >and

Re: [PHP] date(), time() different to system time

2002-02-05 Thread DL Neil
Hey Anth, > Hey guys, =some of the better-looking amongst us are not guys (and then some of us are...) > I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1 > installed as a DSO. > > Everything is working fine, except that the output from any date() or > time() references is 16 h

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Ryan F. Bayhonan
Hello again Peter, I describe my reply below. > I must run it as Apache module. Can someone tell me how do I change > the setting to run as an APACHE module instead? I'll be replying to this question in a Windows Operating System setting. You have 2 option in installing PHP as in Win OS, eithe

[PHP] How do I keep form inputs from being cleared - Please Help!

2002-02-05 Thread SpamSucks86
I have a registration form and if a user enters bad information and the php script generates an error, I want the user to be able to hit back and have his inputs still there. Most websites I've ever used do this, but for some reason, my form loses all its data when the back button is pushed. This

Re: [PHP] MySQL selecting the maximum value from a column

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 15:12, Melanie Gann wrote: > Thank you all you listeners out there. I'll try to be respectful of your > time and patience, and apoligize in advance for my "greeness" - I am 2 > weeks into PHP/MySQL. > > I am trying to select the higest value from the column Thought_Num below

RE: [PHP] Can anyone jog my memory on HTTP_REFERER & Javascript "location:replace"?

2002-02-05 Thread Lazor, Ed
If I understand what I think you're asking, you're trying to access the results in Javascript of something the PHP script processed... use your php script to spit out some javascript. For example: print "\n"; print "$Result = ".$Results.";\n"; print ""; -Original Message- From: Scott

RE: [PHP] MySQL selecting the maximum value from a column

2002-02-05 Thread Martin Towell
what happens if you do this? $result = mysql_query("SELECT MAX(Thought_Num) as Thought_Num FROM quotes",$db); I'm thinking that the column name in your original query is being called "MAX(Thought_Num)" and not "Thought_Num". Martin -Original Message- From: Melanie Gann [mailto:[EMAIL P

[PHP] MySQL selecting the maximum value from a column

2002-02-05 Thread Melanie Gann
Thank you all you listeners out there. I'll try to be respectful of your time and patience, and apoligize in advance for my "greeness" - I am 2 weeks into PHP/MySQL. I am trying to select the higest value from the column Thought_Num below. But it returns nothing. If I change my select to some

RE: [PHP] How do I display variables in text boxes when the value of a drop down menu changes?

2002-02-05 Thread Martin Towell
to "access" php var in javascript, you'll need to set up javascript vars with the values of the php vars you want to use. eg. alert(foobar); // will display nothing - not set yet foobar = ""; alert(foobar); // now will display "testing" remember, to get the vars back t

[PHP] date(), time() different to system time

2002-02-05 Thread Anth Courtney
Hey guys, I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1 installed as a DSO. Everything is working fine, except that the output from any date() or time() references is 16 hours behind the system time (and hwtime) on the machine. The machine gets its time from an ntp server w

[PHP] Re: Books on PHP

2002-02-05 Thread Manuel Lemos
Hello, Ronald D Wahlen wrote: > > Hello, > > I am new to PHP and was wondering if anyone can point me the right direction > with > PHP urls and books to learn how to develop web sites using PHP. I read some > of the information on www.php.net web site and have the PHP Bible. Look here for a lo

[PHP] How do I display variables in text boxes when the value of a drop down menu changes?

2002-02-05 Thread Don
Hi, I have a PHP script that displays a form. On one section of the form, there is a drop down menu followed by a few text boxes. I'd like to alter the values of the text boxes when the user changes the selection in the dropdown menu. What I've done is create 10 arrays (the drop down menu ha

[PHP] mktime() problem

2002-02-05 Thread toni baker
How can I make sure the user enters a date in format mm/dd/ and the date must be between the year 1600 and 2038. The script below meets the criterion above, except mktime() or strtotime() does not validate year 1600 dates. Any suggestions? Thanks $dateparts = explode('/', $Date); $month =

Re: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Yasuo Ohgaki
Trun off "register_globals", then it should work with track vars. -- Yasuo Ohgaki Travis Simpson wrote: > Hey, > > I changed it from: > > $HTTP_SESSION_VARS["$key"] = $value; > > To: > > session_register("$key"); > $key = $value; > > And now it works fine. > > At first, when I wrote the $k

[PHP] RE: 72dpi with gdlibrary2?

2002-02-05 Thread Andrew Chase
IANAGE (I Am Not A GD Expert), but as far as I know the GD functions dealing with image size don't concern themselves with the resolution of an image in terms of dots per inch, just with the number of pixels. Since most uses of the GD library functions in PHP will have to do with creating/manipul

Re: [PHP] Books on PHP

2002-02-05 Thread LaserJetter
I'll second that comment on the documentation with PHP. I bought the Definitive HTML Reference a few years back as an HTML reference because there was no single place where you could get a high quality refernce for all the HTML, CSS and JavaScript commands. The online documentation is pretty good,

[PHP] Re: File Upload -- File Trailer Partial

2002-02-05 Thread Michael Kimsal
Richard Lynch wrote: > Please Cc: me -- I can't keep up with anything like the full volume of > PHP-General any more and have only lurked for quite some time :-( > I guess I'm seeking reassurance that: > > A) File upload not known to be broken > B) move_uploaded_file completely finishes and

[PHP] Curl Support Not Compiling

2002-02-05 Thread Gabriel Richards
I'm trying to get PHP to compile with CURL support (on my Linux server), but it's not working and I'm not getting an error message. I've installed curl correctly I think. /usr/local/include/curl contains curl.h easy.h and other header files. /usr/local/lib has libcurl.a. I said ./configure --wit

Re: [PHP] whic OS is under?

2002-02-05 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 05:45, Ivo Stoykov wrote: > Hi group: > > Is there a way to guess which OS the script is running? I couldn't find > anything in the manual about this. > > Thank you > > Ivo The constant PHP_OS will tell you. For a list of all currently defined constants, try http://www.p

[PHP] POST to SSL Server without CURL?

2002-02-05 Thread Gabriel Richards
Thank you for your very helpful guidance to this point! My host doesn't have the CURL module installed and it is unlikely they will do it (PHP running on NT). Apparently I can't just fsockopen("www.ups.com", 443); ??? Is there another way? Gabe -- PHP General Mailing List (http://www.php.n

[PHP] File Upload -- File Trailer Partial

2002-02-05 Thread Richard Lynch
Please Cc: me -- I can't keep up with anything like the full volume of PHP-General any more and have only lurked for quite some time :-( I'm consistently seeing file uploads get only the trailing N bytes of the file if the file is over a certain size. This is on applications that worked flawle

[PHP] Re: whic OS is under?

2002-02-05 Thread LaserJetter
There is something. Its one of the enironment vars I think. Look for UNAME or U something. I'm not sure if this gives the current OS or the OS on which PHP was compiled though. "Ivo Stoykov" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi group: > > Is th

RE: [PHP] Books on PHP

2002-02-05 Thread Kevin Stone
I got started with a book called, "PHP and MySQL Web Development" by Luke Welling and Laura Thomson, published by SAMS. This book is clearly written with the "self-taught" programmer in mind, tearing apart numerous real-world examples and explaining relevant concepts in depth. It does not go int

Re: [PHP] Duplicate e-mails

2002-02-05 Thread Analysis and Solutions
Hi Anthony: Anthony Rodriguez wrote: > > The following php script sends two (2) e-mails to each addressee. Why? I'll bet the email addresses in question are listed in the table twice. Open up a MySQL command line prompt and enter "select * from con_inf;" to make sure. To keep this from happe

[PHP] Books on PHP

2002-02-05 Thread Ronald D Wahlen
Hello, I am new to PHP and was wondering if anyone can point me the right direction with PHP urls and books to learn how to develop web sites using PHP. I read some of the information on www.php.net web site and have the PHP Bible. Thanks, Ron -- PHP General Mailing List (http://www.php.ne

[PHP] Duplicate e-mails

2002-02-05 Thread Anthony Rodriguez
The following php script sends two (2) e-mails to each addressee. Why? \n"); }; mysql_free_result($result_1); mysql_close($connection); header ("location:done.htm"); exit; ?> Anthony Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] Re: HowTo Send HTTP POST from Within Scrip

2002-02-05 Thread Julio Nobrega Trabalhando
It's usually done with fsockopen();, and curl module functions for SSL servers. There are a few classes for each method, on the most tradicional snippets and clasess websites. I enjoyed using one called Snoopy. Also the manual pages comments are very helpful (both on fsockopen(); related func

RE: [PHP] HowTo Send HTTP POST from Within Scrip

2002-02-05 Thread Johnson, Kirk
Search the archives on "PostToHost", or also go here: http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6 http://marc.theaimsgroup.com/?l=php-general&m=92353052714384&w=2 I think if you also search on "UPS" you will find discussion of this exact problem. Good luck! Kirk > -Ori

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Johnson, Kirk
This suggests that register_globals was set to 'off' in the first case and 'on' in the second case. The lines below are perfect examples of how to change the code when changing the register_globals setting in php.ini. Kirk > -Original Message- > From: Travis Simpson [mailto:[EMAIL PROTEC

Re: [PHP] Check if var is a domain name

2002-02-05 Thread Mike Frazer
Your reg-ex wouldn't quite work. Remember, .info, .name, .coop and other new TLDs are out or are coming out soon. A limit of {2,3} would rule them all out as invalid. It's only really possible if you have a list of all available TLDs and compare in part to that. There are like 130 TLDs too, so

[PHP] Re: Links to other pages

2002-02-05 Thread Mike Frazer
You're server will only parse PHP files that come from your server's doot cirectory or one of the virtualhost root directories, and then only when called through the right protocol. If you call a file directly from a drive (in this case, F), you aren't accessing it through the server, and therefo

[PHP] HowTo Send HTTP POST from Within Scrip

2002-02-05 Thread Gabriel Richards
Hi eveyone. I'm trying to build an application to interface with UPS Online Tools server. I have to send it an XML formatted request via HTTP POST, and I'm not sure how. Normally, PHP receives such requests when a user clicks a button on a form I created, but how do I initiate a POST from with a

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Peter Ruan
Ryan, I just tried it with my Linux box and I get the authentication box...which is good sign. So it looks like a PHP in MS Windows (the 'fabulous' windows) setting which from the error.log file indicates as well. /** error message listed in error.log **/ [Mon Feb 04 22:36:30 20

RE: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
Thanks for all your help, but I figured out what I did wrong I was calling the memberNotes field using echo $get_detail->Fields("memberNotes") so when I replaced $memberNotes in the script with $get_detail->Fields("memberNotes") it worked like a charm If ($get_detail->Fields("memberNotes"))

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Travis Simpson
Hey, I changed it from: $HTTP_SESSION_VARS["$key"] = $value; To: session_register("$key"); $key = $value; And now it works fine. At first, when I wrote the $key = $value... It made no sense... I was just doing it because I didn't know what else to try. And it actually works ;) I figured it w

[PHP] Links to other pages

2002-02-05 Thread Morten Nielsen
Hi, I have a link on my page that looks like this: $CFG->dirroot= "f:/Inetpub/wwwroot/mymarket2"; Login The link is displayed right on my page, but when I press it a dialog box is saying that I am downloading the php file and wether I want to open or save it. Can anybody tell me what is wrong?

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 02:53, Edward R. Bailey wrote: > Sorry -- Here it is > > >$notes = " size=-1>Notes:"; >} else { > $notes = ""; >} > ?> > > Then I call $notes using -- > > echo ($notes) I meant your *whole* script -- never mind, have you tried ec

RE: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
Sorry -- Here it is Notes:"; } else { $notes = ""; } ?> Then I call $notes using -- echo ($notes) > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 05, 2002 1:39 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Ea

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 02:38, Edward R. Bailey wrote: > I used echo($notes) at the bottom of the page and the output of $notes > prints reardless of whether or not the db field $memberNotes contains > any data. It seems to me that $notes is always acting as if $memberNotes > always contains

RE: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
I used echo($notes) at the bottom of the page and the output of $notes prints reardless of whether or not the db field $memberNotes contains any data. It seems to me that $notes is always acting as if $memberNotes always contains data. Is their some way to invoke $notes only if $memberNotes return

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 02:14, Edward R. Bailey wrote: Please keep the discussion on the list! > Thanks for responding! Yes the "memberNotes" database field only > contains information in about a third of the records so I wanted to hide > the entire field and label when their was no releve

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 01:52, Peter Ruan wrote: > Hi Jason, > Yeap, I ran 'phpinfo()' Server API=CGI. I look at the manual and you are > right, I must run it as Apache module. Can someone tell me how do I change > the setting to run as an APACHE module instead? Well, you don't change t

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 00:03, Edward R. Bailey wrote: > Hi, > > I am working on a page the displays the output of a query in a table and > I only want to show the field labels that have corresponding output from > the database. I am only really concerned with the last label in the > table.

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Peter Ruan
Hi Jason, Yeap, I ran 'phpinfo()' Server API=CGI. I look at the manual and you are right, I must run it as Apache module. Can someone tell me how do I change the setting to run as an APACHE module instead? Thanks, -Peter "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED

Re: [PHP] add value to serialized array?

2002-02-05 Thread Bas Jobsen
Hello, OKay, when i replace the last rows with: $fp=fopen("test.txt","r"); flock($fp,1); $array=array_merge($array,unserialize(fread($fp,filesize("test.txt"; flock($fp,3); fclose($fp); it works. But now i want to place this in a class, and it goes wrong again. Hope you can help, thanks,

Re: [PHP] What can I ask here?

2002-02-05 Thread Dave
Don't forget about www.phpguru.org www.hotscripts.com Two other great sites for information and sample scripts. Dave "Jason Lotito" <[EMAIL PROTECTED]> wrote in message 037201c1ae61$b7e25a10$3b0a@JASON">news:037201c1ae61$b7e25a10$3b0a@JASON... > You can also find good information for P

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
Girish, After a bit of searching around it appears that this is a bug of early versions of PHP, re-introduced in PHP v4.0.6 (the version I was using). I have upgraded to 4.10 and ImageTTFText now works fine. Neil Girish Nath wrote: > Hi > > I had similar problems when just specifying the font

Re: [PHP] Check if var is a domain name

2002-02-05 Thread Jeff Sheltren
Hi, I would use a regular expression to check it. This is a pretty general one, but I think it should do the trick. It searches for 1 or more upper or lowercase letters, followed by a literal dot, followed by 2 or 3 lowercase letters. Of course there are valid domains that would not match t

Re: [PHP] PHP / MYSQL security bug

2002-02-05 Thread Analysis and Solutions
Hi Folks: Gerard Onorato wrote on the PHP-GENERAL mailing list: > > Security Advisory DW020203-PHP > Release: 3rd February 2002 > PHP Safe Mode Filesystem Circumvention Problem > > ... snip ... > > FIX > Currently, no fix exists. > ... snip ... > A suggested fix for the PHP developers might be

RE: [PHP] PHP / MYSQL security bug

2002-02-05 Thread James Cox
The PHP developers are aware of this, and are working with MySQL to make it safer. it should be noted that PHP safe mode, whilst making the environment generally safer, is not an easy-answer to webserver security. The only real solution is to learn about better security and configuration. --jame

Re: [PHP] What can I ask here?

2002-02-05 Thread Jason Lotito
You can also find good information for PHP here: www.phpdeveloper.org www.phpbuilder.com www.newbienetwork.net www.phpbeginner.com www.php.net // of course =) www.devshed.com Jason Lotito Programmer & Developer Clockmedia Inc. Designing Tomorrow's Games, Today! 1-877-625-6256 514-908-2800 Fax: 5

Re: [PHP] What can I ask here?

2002-02-05 Thread Girish Nath
Hi You'll find the mailing list archive an excellent source of info : http://marc.theaimsgroup.com/?l=php-general&r=1&w=2 Regards :) Girish -- www.girishnath.co.uk - Original Message - From: "Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 4:07 PM

[PHP] What can I ask here?

2002-02-05 Thread Scott
Just want to make sure I am in the right forum... I am new to PHP and will be doing alot of coding with it in the near future. So I will be asking alot of newb questions... Thanks, Batch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Check if var is a domain name

2002-02-05 Thread Brandon Orther
Hello, Does anyone know a function or how I could make a function to check a variable for being a valid domain name without the "www. " In fron of it? Ex. $var = "mynewdomain.com" that would be TRUE Ex2. $var = "www.mynewdomain.com" that would be FALSE Ex3. $var = "My Gr

[PHP] Re: PHP module build problem

2002-02-05 Thread Anas Mughal
I just saw a posting on PHPBuilder that states that Apache 1.3.14 has changed alloc.h to ap_alloc.h. So, file renaming is suggested. Maybe that could fix the problem. (I will give it a try...) I would be open to any other suggestions... Thanks. --- Anas Mughal <[EMAIL PROTECTED]> wrote: > I

[PHP] PHP / MYSQL security bug

2002-02-05 Thread Gerard Onorato
Maybe I missed the thread but I was wondering if anyone has seen this report or done any testing on it. We tested it and it seems a pretty valid problem. Can anyone comment on a fix that may be in the works? Gerard -

[PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
Hi, I am working on a page the displays the output of a query in a table and I only want to show the field labels that have corresponding output from the database. I am only really concerned with the last label in the table. The label is called "Notes" and the corresponding field in the database

Re: [PHP] Getting variables from a text file

2002-02-05 Thread Girish Nath
Hi It looks like a querystring, so read the contents of the file into a variable, then use the parse_str() function on that variable, you can specify if you want them to be stored in an array too. http://www.php.net/manual/en/function.parse-str.php Regards Girish -- www.girishnath.co.uk

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
Hi Girish. Thanks for the suggestion. I have an Apache alias pointing to my site, along the lines of: Alias /input "P:/Projects/data_input" and have placed the ttf files within this directory (where the php script is located as well). I've tried placing the ttf files in a sub-directory as well -

RE: [PHP] testing for cookies on the server side (again, still can't get my head around it)

2002-02-05 Thread Johnson, Kirk
> So what's the flow of code to test for cookies on the server > side? I'm > pretty sure that the only way is to set a cookie, then test for it. That is pretty much it. On the first page request to your application, if PHP encounters a session_start() in your code, it will return a cookie named

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Girish Nath
Hi I had similar problems when just specifying the font file in the same directory eg ./arial.ttf but got it to work okay when i used the full path eg : $fontfile = "/apache/htdocs/arial.ttf"; ImageTTFText($im, 20, 0, 3, 3, $text_colour, $fontfile, "My text"); Regards Girish -- www.girishnat

[PHP] PHP module build problem

2002-02-05 Thread Anas Mughal
I am trying to build PHP3 into apache 1.3. I have vanilla PHP and Apache sources. When I do the final Apache 'make', I get an error message complaining about not able to find target for alloc.h. The 'alloc.h' file is declared as a dependency for 'mod_php3.o' in the Makefile in folder 'src/modules/

[PHP] Mysql

2002-02-05 Thread Roman Duriancik
Pleae help me ! I need delete record from table user.mysql in mysql database, i log on in mysql like root and I log on on linux server like root. But when I write command : delete from user where user=''; mysql send me error message : ERROR 1036 Table 'user; is read only ! Thans for y

Re: [PHP] Change of Language

2002-02-05 Thread Edward van Bilderbeek - Bean IT
check out: setlocale() Greets, Edward - Original Message - From: "Nicolas Llamosas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 4:13 PM Subject: [PHP] Change of Language > How can in change the language in my site? (spanish) > for example using the fun

[PHP] Change of Language

2002-02-05 Thread Nicolas Llamosas
How can in change the language in my site? (spanish) for example using the function date. (LANG?) Thanks Nicolás Llamosas _ MSN Photos es la manera más sencilla de compartir, editar e imprimir sus fotos favoritas. http://photos.la

[PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
Hi there, I am trying to use the ImageTTFText function to output some text onto an existing image. Problem being though that the text does not get outputted. I have placed the ttf file 'arial.ttf' within the same directory as my script. Here is a snippet of my code: Header("Content-Type: ima

[PHP] Getting variables from a text file

2002-02-05 Thread David Orn Johannsson
I have this text file I have to retreve infromation from, in the fallowing format: date1=1/1/2002&title1=some title&headline1=some headline&full1=full article&date2=2/1/2002&title2=some title& and so on   what would be the best thing for me to do to if I was to get the values of all

Re: [PHP] How to get the URL into a var?

2002-02-05 Thread J.F.Kishor
hi, I don't know whether this will solve your problem, but the following prints the full path of the file that is being used. $uri = getenv('REQUEST_URI'); $path = $HTTP_SERVER_VARS["PATH_TRANSLATED"]; // This prints /~user/subapp/test.php echo "
$uri
"; // This prints /h

RE: [PHP] How do I find double values in an associative array

2002-02-05 Thread Jerry Verhoef (UGBI)
http://www.php.net/manual/en/function.array-count-values.php Jerry I feel like a manual... > -Original Message- > From: Rainer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 05, 2002 2:51 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How do I find double values in an associative a

[PHP] How do I find double values in an associative array

2002-02-05 Thread Rainer
Hello group, Can anybody tell me how I easily compare values in an associative array? I would like to find double values I have for instance an array like: $foo['key1'] = 'abc'; $foo['key2'] = 'def'; $foo['key3'] = 'abc'; $foo['key4'] = 'ghi'; and I want to get the value 'abc' ... Please

[PHP] Name of file included

2002-02-05 Thread Ron Dyck
I need to access the name of a file included. ie: in index.php I've included various files, among them navigation.inc. Instead of manually typing at the top of everyfile, I'd like to use something like: === Ron Dyck WebbTech www.WebbTech.net [EMAIL P

RE: [PHP] Re: Sending files to the user...?

2002-02-05 Thread Jerry Verhoef (UGBI)
Your are on the right track. Using the Header function is the way to do it. But I guess you forget to take a look at the manual page. There are all questions that you ask answered :) So take a look http://www.php.net/manual/en/function.header.php . in short: RFC: http://www.w3.org/Protocol

[PHP] Re: Sending files to the user...?

2002-02-05 Thread Alan McFarlane
Oh, and BTW, after sending the file, I will be redirecting the user to a different page... Alan McFarlane <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The problem: > > How to I send a file to the user? Sounds simple but, assume I have a 'daily > report' opti

  1   2   >