Re: [PHP] Cannot Print Web-based Report in Netscape

2002-11-17 Thread Jason Wong
On Monday 18 November 2002 14:57, Hakkan Lui wrote: > Dear all, > > I used PHP to generate a report on a browser, using forms. When I print the > report using Netscape->Print, a page with the following page appeared > instead of the report. > > --

[PHP] sunrise/sunset programs?

2002-11-17 Thread Adam
Does anyone know if PHP has the capabilities of being able to calculate sunrise/sunset times by entering longitude/latitude values if someone was smart enough to write code for it? If not, is there any programs/applications around that allow for times to be entered into php after values have been w

[PHP] decode

2002-11-17 Thread Roman Duriancik
Please Help me ! This is not a php problem but if someone knows how to decode this : I have document in encryption type : B*C*N**N but I don't know how do decode. for example : b abbab abbab baaba thanks roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Cannot Print Web-based Report in Netscape

2002-11-17 Thread Hakkan Lui
Dear all, I used PHP to generate a report on a browser, using forms. When I print the report using Netscape->Print, a page with the following page appeared instead of the report. -- Data Missing This

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Marenic
It works. Thank you. I can't belive I was so stupid, and obviously I was. Thanks again! :-) "Rija" <[EMAIL PROTECTED]> wrote in message 007c01c28e9b$f47c7f30$3d00a8c0@workelp3">news:007c01c28e9b$f47c7f30$3d00a8c0@workelp3... > Try to change write permission doing like the following: > - Right

Re: [PHP] imap_open

2002-11-17 Thread Rasmus Lerdorf
> The function imap_open() is for opening an connection to an IMAP > server. It doesn't operate directly on a file system and it is > ignorant of the actual mailbox implementation as this is all > abstracted by the IMAP protocol. Where the mail is stored is a > function of your IMAP server, not P

[PHP] Re: Minutes to hours/days/monthes/years?

2002-11-17 Thread Jome
> OK...I wrote this...is this what you want? > > > return english_time("64925149"); > > function english_time($minutes) > { > while ($minutes>=525600) {$years++;$minutes-=525600;} > while ($minutes>=1440) {$days++;$minutes-=1440;} > while ($minutes>=60) {$hours++;$minutes-=60;} > if ($years) { $str

[PHP] echoing date of first and last day of current week.

2002-11-17 Thread Noodle Snacks
I want to get the unix timestamps of the first and last days of this week... Currently I have this: echo 'Words for the week from '.date('jS F Y',strtotime("last sunday")).' to '.date('jS F Y',strtotime ("next saturday")).'.'; on saturday this showed the 10th to 23rd... Is there a good way to d

Re: [PHP] Display cell if dates are between 2 dates - help

2002-11-17 Thread Jason Wong
On Sunday 17 November 2002 18:31, Ray Healy \(Data Net Services\) wrote: > The startdate and endate columns are "date" format - have any ideas what i > can do ..."This seems to work BUT if the date in the database is a single number i.e. 0 to 9 it cannot dispaly it and also if the startdate or e

Re: [PHP] imap_open

2002-11-17 Thread Michael Sims
On Sun, 17 Nov 2002 21:00:13 -0500 (EST), you wrote: >i'm looking for information on how to open mailboxes stored in user >directories using imap_open. i've lookd into the c-client documentation >as well as php.net and haven't had any luck. my experience so far is that imap_open >will >just ope

Re: [PHP] Re: Problem whith query in query

2002-11-17 Thread Chris Garaffa
On Monday, November 18, 2002, at 12:07 AM, OrangeHairedBoy wrote: MySQL doesn't support queries inside queries. I think it's on their TODO list... Yup, it is. From : --Begin quote-- 1.8.2 Things That Should be in 4.1 The following features are

Re: [PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-17 Thread Jason Wong
On Monday 18 November 2002 07:34, Simon Chilmaid wrote: > Hi all > > I have a script that is currently running on my server which intercepts > messages being sent into a specific address, it is piped to this through an > alias in the aliases file. What would I need to add to this script in order >

[PHP] Re: Minutes to hours/days/monthes/years?

2002-11-17 Thread OrangeHairedBoy
OK...I wrote this...is this what you want? return english_time("64925149"); function english_time($minutes) { while ($minutes>=525600) {$years++;$minutes-=525600;} while ($minutes>=1440) {$days++;$minutes-=1440;} while ($minutes>=60) {$hours++;$minutes-=60;} if ($years) { $string[] = ( $years ==

Re: [PHP] STRICTLY CONFIDENCIAL

2002-11-17 Thread Aaron
obviously yes. the poor grammer, the uk based yahoo email account. The fact that the moron posted it to a email list. I've heard this scam before. and recieved email for it before. Lejanson C. Go wrote: scam Aaron wrote: idiot. desmond west wrote: #20 BOTHA CRESCENT, SADTON,JOHANNESBURG,

[PHP] Re: Problem whith query in query

2002-11-17 Thread OrangeHairedBoy
MySQL doesn't support queries inside queries. I think it's on their TODO list... SELECT * FROM identifisering as i > WHERE i.identifiseringid=(SELECT MAX(ii.identifiseringid) > FROM identifisering as ii > GROUP BY dprosjekt); "Lars Espelid" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED

[PHP] Re: STRICTLY CONFIDENCIAL

2002-11-17 Thread OrangeHairedBoy
Obviously the "Chief auditor of NED Bank in south africa" must need to be pretty well educated for the job. I can tell by the POS sentence "One hundred and twenty six million United States Dollars million dollars". I'm sorry...how many million United States Dollars million dollars? Right... Not t

Re: [PHP] STRICTLY CONFIDENCIAL

2002-11-17 Thread Aaron
idiot. desmond west wrote: #20 BOTHA CRESCENT, SADTON,JOHANNESBURG, SOUTH AFRICA. Tel/Fax:+:+27-834377724 E-mail:[EMAIL PROTECTED] Dear sir, In order to transfer out (USD 126 M) One hundred and twenty six million United States Dollars) from NED Bank in south africa. I have the courage to ask y

Re: [PHP] STRICTLY CONFIDENCIAL

2002-11-17 Thread Khalid El-Kary
oh i caught you, i'll go before you :-) _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] sending html email from a web-based form

2002-11-17 Thread rw
Well now, that was easy! Thank you! Quoting "John W. Holmes" <[EMAIL PROTECTED]>: ### > Here is the code that is supposed to do what I want: ### > ### > $headers = "From: \"$name $last\" <$email>\n" . "Reply-To: ### <$email>\n\n"; ### ### Try taking out the extra newline (\n) you have in the a

RE: [PHP] sending html email from a web-based form

2002-11-17 Thread John W. Holmes
> Here is the code that is supposed to do what I want: > > $headers = "From: \"$name $last\" <$email>\n" . "Reply-To: <$email>\n\n"; Try taking out the extra newline (\n) you have in the above line. Actually, the headers are supposed to be separated by \r\n, instead of just \n, also. ---John Hol

[PHP] Problem whith query in query

2002-11-17 Thread Lars Espelid
Hello, I need some help whith a mysql-query. Can anyone help? Is there a good newsgroup for mysql? Identifiseringid is the primary key of the table identifisering and is autoincrement. There is also a coloumn named dprosjekt in identifisering and some other coloumns. dprosjekt has the same value

[PHP] sending html email from a web-based form

2002-11-17 Thread rw
Here is the code that is supposed to do what I want: $headers = "From: \"$name $last\" <$email>\n" . "Reply-To: <$email>\n\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1"; mail($to, $subject, $msg, $headers) or die ("Mail not sent.!"); Instead, I get all of the raw code in the emai

[PHP] testing

2002-11-17 Thread rw
not sure how to post -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Query to select every other record

2002-11-17 Thread David Freeman
> Does anybody know of a SELECT QUERY that will select every > other record of a > table ? I want to do this so that I can display my products > in 2 columns (I > will also be using arrays of course). Don't know of a select that'll do it, but then I don't really understand why you'd want

RE: [PHP] Query to select every other record

2002-11-17 Thread John W. Holmes
Okay, stop and take a break. Now come back to the problem and ask yourself how you can display the results, two at a time on each row. After you display every second item, you want to end the row and start another one. Something like this... "; while($r = mysql_fetch_row($result)) { echo "show y

[PHP] Problem with Class - incomplete object error

2002-11-17 Thread Paul
Hi All: I have a simple page that checks for existence of object in a session. If the object is not stored in session object, it creates new one: If (isset ($_SESSION["cart"])) { $cart=$_SESSION["cart"]; } else { $cart = new ShoppingCart ();

Re: [PHP] STRICTLY CONFIDENCIAL

2002-11-17 Thread Marco Tabini
This is great! Don't anybody tell anyone... wait! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] STRICTLY CONFIDENCIAL

2002-11-17 Thread desmond west
#20 BOTHA CRESCENT, SADTON,JOHANNESBURG, SOUTH AFRICA. Tel/Fax:+:+27-834377724 E-mail:[EMAIL PROTECTED] Dear sir, In order to transfer out (USD 126 M) One hundred and twenty six million United States Dollars) from NED Bank in south africa. I have the courage to ask you to look for a reliable and

Re: [PHP] Whois Search in PHP

2002-11-17 Thread Chandu Nannapaneni
Hah, U gave just what I wanted. Good tip. /Chandu - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Chandu Nannapaneni" <[EMAIL PROTECTED]> Sent: Monday, November 18, 2002 3:42 AM Subject: Re: [PHP] Whois Search in PHP > You could just do this, if you don't mind making

[PHP] Query to select every other record

2002-11-17 Thread Darren McPhee
Does anybody know of a SELECT QUERY that will select every other record of a table ? I want to do this so that I can display my products in 2 columns (I will also be using arrays of course). The first column would show the result of the first query starting at record 1. The second column would s

Re: [PHP] how do I get for to display $_POST value?

2002-11-17 Thread Jeff Bluemel
I didn't know I could set a value on that... thanks for the info. "John Nichel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > maxlength="20"> > > Jeff Bluemel wrote: > > OK... I have the following code which works perfect. however, when submit > > is pres

Re: [PHP] how do I get for to display $_POST value?

2002-11-17 Thread John Nichel
Jeff Bluemel wrote: OK... I have the following code which works perfect. however, when submit is pressed I would like it to display the pin number in the form again. 8 Pin : Batch : Serial : -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mail

[PHP] how do I get for to display $_POST value?

2002-11-17 Thread Jeff Bluemel
OK... I have the following code which works perfect. however, when submit is pressed I would like it to display the pin number in the form again. 8 Pin : Batch : Serial : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] imap_open

2002-11-17 Thread Bill Rowell
i'm looking for information on how to open mailboxes stored in user directories using imap_open. i've lookd into the c-client documentation as well as php.net and haven't had any luck. my experience so far is that imap_open will just open a mailbox stored in /var/spool/mail. has anyone out the

[PHP] PHP Application Framework

2002-11-17 Thread Michael She
Hi all, Does anyone have a recommendation for a stable yet flexible application framework for PHP? Something similar to Midgard that will run on Windows would be nice. Thanks! -- _ _ | || __| : Michael She : [EMAIL PROTECTED] | | | ||__ | : Mobile : (519) 589-7309 |_|_

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread rija
Try to change write permission doing like the following: - Right click on the folder - Select proprieties - Click on security icon - And allow everyone to write, read, execute If you cannot access this tools, ask your administrator to allow you to do this work. - Original Message - From:

RE: [PHP] preg_replace_callback

2002-11-17 Thread Philip Olson
Please make all replies to this ONLY go to php-general, thank you. On Sun, 17 Nov 2002, John W. Holmes wrote: > "callback" should be the name of a function that determines what the > matched pattern will be replaced with. > > Maybe you just need the regular preg_replace(), instead of the on

Re: [PHP] Searching a Table

2002-11-17 Thread Justin French
READ THE MYSQL MANUAL -- IT DOCUMENTS EVERYTHING. Justin on 18/11/02 2:19 AM, Stephen ([EMAIL PROTECTED]) wrote: > Thanks, this is what I was looking for. But does it ommit common words like > 'it' or 'the?' > > > - Original Message - > From: "Marco Tabini" <[EMAIL PROTECTED]> > To: "

[PHP] PHP 4.2.3 on Apache 2.0.39

2002-11-17 Thread rija
Hi Guys I'm installing PHP 4.2.3 on Apache Server 2.0.41. If I try localhost or localhost/manual it work perfectly, Now I want to run my php program, I developed on IIS 5.0 environment, on my new Apache server I get the message below , and my browser display HTTP 400 - BAD request page, wh

RE: [PHP] coding special characters in html

2002-11-17 Thread John W. Holmes
> I'm cooking tothether a tiny php html editor right now, (textarea kind > of thing). To treat the text properly I need to encode characters like > '"', '<', '>', and friends into something that doesn't confuse the > browser. Htmlentities() or htmlspecialchars() > By the way, do you think encodi

[PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-17 Thread Simon Chilmaid
Hi all I have a script that is currently running on my server which intercepts messages being sent into a specific address, it is piped to this through an alias in the aliases file. What would I need to add to this script in order for it to firstly check for the presence of attachments to any emai

RE: [PHP] preg_replace_callback

2002-11-17 Thread John W. Holmes
"callback" should be the name of a function that determines what the matched pattern will be replaced with. Maybe you just need the regular preg_replace(), instead of the one with callback? ---John Holmes... > -Original Message- > From: Bikeman [mailto:[EMAIL PROTECTED]] > Sent: Sunday,

[PHP] preg_replace_callback

2002-11-17 Thread Bikeman
Hello. I have totally no clue at all wether I am posting in the right newsgroup here, and I was not planning on caching all messages in my (first time used, I prefer Outlook) Outlook Express before searching. So if I am disobeying all rules here ... I'm sorry ... I just am not an experienced ne

RE: [PHP] damn it... i want to tranfer data from one table to another!

2002-11-17 Thread John W. Holmes
> Why i can't tranfer data from one table to another with this code? I can't > pass "$reg" to $c and $t... : \ > thanks > > $ligacao=mysql_connect("localhost","","") or die (mysql_error()); > $real="INSERT INTO divx (titulo,cds) VALUES ('$t','$c')"; move the above line... > $temp="SELECT * F

Re: [PHP] OOP-classes in PHP

2002-11-17 Thread Hatem Ben
just change make your new class global : class overall { var $loaded; function load($class){ eval ("global \$$class;"); eval("\$$class = new $class;"); return true; } } then you can call it using $overall = new overall; $overall->load('foo'); // This should work now ;). $foo->foo(); H

[PHP] damn it... i want to tranfer data from one table to another!

2002-11-17 Thread Mr. BuNgL3
Why i can't tranfer data from one table to another with this code? I can't pass "$reg" to $c and $t... : \ thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Minutes to hours/days/monthes/years?

2002-11-17 Thread Leif K-Brooks
I'm looking for a good way to convert minutes to hours, days, or years - the largest it will fit into. For example, 120 would become "2 hours". 90 would become "1 hour and 30 minutes". Any ideas? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt

RE: [PHP] I'm in need of a PHP web host recommendation

2002-11-17 Thread Brendon G
ProHosters http://www.prohosters.com Good plans, Good Price, Great Support. I recommend the semi dedicated plans. Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] coding special characters in html

2002-11-17 Thread Marco Tabini
Sure, its htmlentities(), combined (possibly) with nb2br() http://www.php.net/manual/en/function.htmlentities.php Marco On Sun, 2002-11-17 at 17:34, Børge Strand wrote: > > Hi all, > > I'm cooking tothether a tiny php html editor right now, (textarea kind > of thing). To treat the text prope

[PHP] coding special characters in html

2002-11-17 Thread Børge Strand
Hi all, I'm cooking tothether a tiny php html editor right now, (textarea kind of thing). To treat the text properly I need to encode characters like '"', '<', '>', and friends into something that doesn't confuse the browser. I got it to work with regexps, you can see a part of the decoder belo

[PHP] OOP-classes in PHP

2002-11-17 Thread Tularis
currently I have the followig script: everything works fine, except for the fact that it doesn't seem to understand $overall->foo->foo();. It returns this error: "Fatal error: Call to a member function on a non-object in d:\apache\htdocs\classes.php on line 32" Now, I know the object is loaded,

[PHP] image size problems

2002-11-17 Thread JohnMeyer
Does anybody have any algorhythms to deal with image sizing (i.e. a picture needs to be this big). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protecting Queries

2002-11-17 Thread Alnisa Allgood
At 3:31 PM -0500 11/17/02, Stephen wrote: Since day one of me doing MySQL stuff in PHP, I've always set up my query as a variable then put it into the query function such as this: $query = "SELECT * FROM bobstuff WHERE id='1'"; $result = mysql_query($query, $connection); I've just come

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Marenic
I've tried same source on different OS and it works OK. I assume there is a BUG, for win 2000. Thank you all for help. Kind regards, Ivan "Jason Sheets" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Have you tried giving it an absolute path rather than a re

Re: [PHP] running php as cgi script

2002-11-17 Thread Jason Wong
On Monday 18 November 2002 04:55, Scott wrote: > Well, I've got a few test scripts to run by following the suggestions from > the posts. There's just one thing that's not quite right yet. The > "#!/usr/bin/php" line appears at the top of the page. For instance when I > run the following script f

[PHP] unlink and directory ownership

2002-11-17 Thread electroteque
hi guys , having permission denied errors trying to access a directory created via ftp , when i create a directory ftp it has my login username and my group where the apache server group and user is different and cant seem to have writable access to it :|, its chmodded to 777 so no idea -- PHP

Re: [PHP] Whois Search in PHP

2002-11-17 Thread Hatem Ben
well, i guess there is NO OTHER WAY to check the availability of a domain other than using whois server I use the same concept as this minimalistic sample with a full list of whois servers here http://www.dynamix-tn.com/?go=whois just parse the domain and use the suitable server and most of the t

Re: [PHP] Protecting Queries

2002-11-17 Thread Stephen
Oh, right, thanks! - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Sent: Sunday, November 17, 2002 4:05 PM Subject: Re: [PHP] Protecting Queries > No, like I said, since you set $query in your script, whatever the user > passes in is ove

Re: [PHP] Protecting Queries

2002-11-17 Thread Stephen
What I meant was something like this: The user types in the URL http://myplace/script.php?query=DELTE * FROM table WHERE id=1. The query is overwritten and the section is deleted... Is that possible? > - Original Message - > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> > To: "Stephen"

[PHP] howto pass javascript variable to php

2002-11-17 Thread Jeff Bluemel
it's easy enough to pass php variable to javascript, but doing this the other way around without a form submit, or location (passing as a php $_GET variable) seems to be a little nightmare. it's easy enough to do it with the form submit, or a location command. thanks, Jeff -- PHP General Mai

Re: [PHP] running php as cgi script

2002-11-17 Thread Scott
Well, I've got a few test scripts to run by following the suggestions from the posts. There's just one thing that's not quite right yet. The "#!/usr/bin/php" line appears at the top of the page. For instance when I run the following script from the cgi-bin: #!/usr/bin/php The phpinfo page

Re: [PHP] Protecting Queries

2002-11-17 Thread Rasmus Lerdorf
No, that it fine. User-supplied data can not override a variable defined directly in your script like that regardless of the register_globals setting. -Rasmus On Sun, 17 Nov 2002, Stephen wrote: > Since day one of me doing MySQL stuff in PHP, I've always set up my query as a >variable then put

Re: [PHP] php imap functions

2002-11-17 Thread Rasmus Lerdorf
PHP's imap functions are a thin wrapper on top of the c-client library. Your best resource would be to go check the docs for that. -Rasmus On Sun, 17 Nov 2002, Bill Rowell wrote: > > i've been doing some development using php's imap functions. i'm > wondering if its possible to use imap_open to

Re: [PHP] Protecting Queries

2002-11-17 Thread Jonathan Sharp
the issue isn't with query, it's with variables used within queries... example: $id = $_GET['id']; $query = "SELECT * FROM mytable WHERE id=$id"; and if you call this page as (or something like this): ?id='' OR 1=1 You can alter the query -js Stephen wrote: > Since day one of me doing MySQL s

[PHP] Protecting Queries

2002-11-17 Thread Stephen
Since day one of me doing MySQL stuff in PHP, I've always set up my query as a variable then put it into the query function such as this:       $query = "SELECT * FROM bobstuff WHERE id='1'";     $result = mysql_query($query, $connection);   I've just come aware of the security risks of this

[PHP] php imap functions

2002-11-17 Thread Bill Rowell
i've been doing some development using php's imap functions. i'm wondering if its possible to use imap_open to open mailboxes that are stored in a user's personal space and not in /var/spool/mail. thanks! -bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Jason Sheets
Have you tried giving it an absolute path rather than a relative one? Jason On Sun, 2002-11-17 at 12:57, Ivan Marenic wrote: > I've tried. It doesent work. > > PHP documentation for fopen function says following: > > Note: The mode may contain the letter 'b'. This is useful only on systems >

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Chris Knipe
The IIS user running the web server on NT needs read/write permissions on the file in the web server. By default, it only have read access to the file... - Original Message - From: "Stephen" <[EMAIL PROTECTED]> To: "Ivan Mareniæ" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sen

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Marco Tabini
Do you get any error messages? On Sun, 2002-11-17 at 14:57, Ivan Marenic wrote: > I've tried. It doesent work. > > PHP documentation for fopen function says following: > > Note: The mode may contain the letter 'b'. This is useful only on systems > which differentiate between binary and text fil

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Marenic
I've tried. It doesent work. PHP documentation for fopen function says following: Note: The mode may contain the letter 'b'. This is useful only on systems which differentiate between binary and text files (i.e. Windows. It's useless on Unix). If not needed, this will be ignored. I've tried all

Re: [PHP] Write file can't work ?!? :-(

2002-11-17 Thread Stephen
wb is not a permission. Try putting just w. - Original Message - From: "Ivan Mareniæ" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 17, 2002 2:47 PM Subject: [PHP] Write file can't work ?!? :-( > Hi. > > I am trying to create little counter: > I can't open file for

[PHP] Write file can't work ?!? :-(

2002-11-17 Thread Ivan Mareniæ
Hi. I am trying to create little counter: I can't open file for writing. I've tried different params: "w", "r+", "wb" ... nothnig works I am using IIS 5.0 , and I have set permitions to read & write files on server. = source code === if(is_writable("counter.txt")==TRUE)

Re: [PHP] preg_match_all - how does it work?

2002-11-17 Thread Jason Wong
On Monday 18 November 2002 01:09, Randall Perry wrote: > That was my understanding. Question is, why don't my print commands > work...or...how do you access 2 dimensional arrays in php? print_r() or var_dump() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

php-general Digest 17 Nov 2002 18:43:16 -0000 Issue 1710

2002-11-17 Thread php-general-digest-help
php-general Digest 17 Nov 2002 18:43:16 - Issue 1710 Topics (messages 124771 through 124809): Re: Fractions 124771 by: Jason Wong Re: Display cell if dates are between 2 dates - help 124772 by: Jason Wong 124785 by: Ray Healy \(Data Net Services\) Serialization of r

Re: [PHP] Whois Search in PHP

2002-11-17 Thread Hatem Ben
this is what the whois server return exactly for Google (using whois.internic.net): Whois Server Version 1.3 Domain names in the .com, .net, and .org domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. GOOGLE.COM.IS.THE.

Re: [PHP] Uploading images to Mysql

2002-11-17 Thread Marco Tabini
Sorry--I should have read ALL your code... Try taking a look at this manual page: http://ca.php.net/manual/en/features.file-upload.php It explains how to handle file uploads. Your file name should appear in $_FILES['form_data']. On Sun, 2002-11-17 at 12:54, Marco Tabini wrote: > Seems to me $f

Re: [PHP] Uploading images to Mysql

2002-11-17 Thread Marco Tabini
Seems to me $form_data might be undefined or empty. Could be a problem related to register_globals if that value is coming from an HTML form. Try $_REQUEST['form_data'] instead. Marco On Sun, 2002-11-17 at 13:58, William Glenn wrote: > Hey all, need some quick help. I have some code I was trying

[PHP] Uploading images to Mysql

2002-11-17 Thread William Glenn
Hey all, need some quick help. I have some code I was trying to get to work but I keep getting this error: Warning: fopen("", "rb") - Success in /home/digital/public_html/upload_test.php3 on line 18 Warning: stat failed for (errno=2 - No such file or directory) in /home/digital/public_html/upl

Re: [PHP] error handling

2002-11-17 Thread Rasmus Lerdorf
Try this. In your php.ini file: display_errors = Off log_errors = On track_errors = On Then in your code: $php_errormsg = false; ob_start(); ... your code ... if($php_errormsg) { ob_end_clean(); // Error - discard buffer echo "An error occurred - webmaster notified"; }

[PHP] Whois Search in PHP

2002-11-17 Thread Chandu Nannapaneni
Hi guys, I have just downloaded whois2.php from http://www.easydns.com/~markjr/whois2/ It's working great except for certain domains, for ex : google.com is being shown as available. I am in need of a good PHP script which gives me accurate results about availability of domains. /Chandu

Re: [PHP] can I retrieve jsp varibable with get or post???

2002-11-17 Thread Jeff Bluemel
ok - the more I look at this the more I'm a bit lost. passing the variables from php to java makes sense. however, from your scripts you listed it is only possible to pass jsp variables to php by opening a new page, or by activating a form. is there a way to pass jsp variables to php while a scr

Re: [PHP] preg_match_all - how does it work?

2002-11-17 Thread Randall Perry
That was my understanding. Question is, why don't my print commands work...or...how do you access 2 dimensional arrays in php? > Hi Randall, > > If you look closely at the definition of preg_match_all(), you'll see > that it generates an array of arrays--that's because, for each match, it > gener

Re: [PHP] I'm in need of a PHP web host recommendation

2002-11-17 Thread Jason Sheets
I think this thread has gone on a while but ... I personally recommend pair (http://www.pair.net) to everyone who asks. They have an excellent infrastructure, excellent support, excellent hosting plans and they have been doing web hosting for years (and making a profit at it). They own their hard

Re: [PHP] gd library

2002-11-17 Thread Jason Sheets
Hello, YOu will need to provide some more information like your configure line, the errors that you are receiving. Did you specifcy --with-gd=/path/to/gd/install or just --with-gd? What errors did you receive? --with-gd=/path-to-gd works fine with me with FreeBSD 4.7-STABLE, gd2 and PHP 4.2.3 an

Re: [PHP] preg_match_all - how does it work?

2002-11-17 Thread Marco Tabini
Hi Randall, If you look closely at the definition of preg_match_all(), you'll see that it generates an array of arrays--that's because, for each match, it generates an array that corresponds to the result of a single call to preg_match, then puts all the resulting array into another array. If you

Re: [PHP] Searching a Table

2002-11-17 Thread Stephen
Thanks, this is what I was looking for. But does it ommit common words like 'it' or 'the?' - Original Message - From: "Marco Tabini" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Saturday, November 16, 2002 10:47 PM Subject: Re: [PHP] Searc

[PHP] preg_match_all - how does it work?

2002-11-17 Thread Randall Perry
I have some experience in using regular expressions in Perl, and have been able to use preg_match in php, but am having a problem with preg_match_all. I'm trying to extract data from an HTML table. Here's my preg_match call that correctly grabs the 1st row of data in the table. It grabs 4 columns

[PHP] error handling

2002-11-17 Thread Mattia
When the display_errors is Off, and the output of the page comes all in the end, or when you're using some template engine or some output buffer function (ob_start()), no output is displayed to the screen! I would like to tell a message to the use in case of failure of the scripy, without giving th

[PHP] How do I get email address of sender

2002-11-17 Thread AKHIL KODALI
Hi, How to I get from e-mail address using imap function. I was able to retrieve the name only. imap_fetch_overview doesn't provide this facility. -- AKHIL K 200101009 Room No. 15 BH-2 IIIT -- Look

Re: [PHP] Searching a Table

2002-11-17 Thread Stephen
http://www.melchior.us is not the site I am talking about. The site I'm talking about is not yet up. - Original Message - From: "Rick Widmer" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Sent: Saturday, November 16, 2002 11:56 PM Subject: Re: [PHP] Searching a Table > At 10:40

[PHP] Re: Calling $PATH_INFO

2002-11-17 Thread OrangeHairedBoy
When you press F5 it's probably resubmitting the contents of the form, including the value of the submit button. You might want to use sessions to control what they submit, and how ofter they submit on the server side. Lewis "Mr. Bungl3" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">ne

[PHP] Re: POSIX and PCRE help

2002-11-17 Thread OrangeHairedBoy
Probably none of the standard headers, but perhaps a custom header defined by the user. It's allowed for in RFC 822 and I'd like to support it. Why do you ask? Do you have a solution? "Aaron" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In what case would y

[PHP] Calling $PATH_INFO

2002-11-17 Thread Mr. BuNgL3
I'm with a little problem... i have this php code and when i lick F5 (refresh) it keeps adding files do database... i think "if ($Submit)" is not doing what i want! My propose is clicking on submit it adds me the $titulotxt and $cds to the database using $PATH_INFO. How must i do to resolve my prob

[PHP] gd library

2002-11-17 Thread A3-Mail Proxy Handler
Hi, I am trying to add gd support to my php configuration. But I could not manage... Here is the versions: php 4.2.3, gd 2.0.7, slackware 8.1, apache 1.3.27 in the make of php, php gives error with gd librarys... (sorry, I cannot give errors now, I cannot simulate the situation for now) Is this

RE: [PHP] PHP search engines

2002-11-17 Thread Khalid El-Kary
hi, It depends on the data storage system you use, and the more you get deeper with it the more you get it more customized for your own site, i mean that when you do it with the natural PHP APIs it's better rather than obtaining a ready-made search system, however if you want to use a ready-mad

RE: [PHP] PHP search engines

2002-11-17 Thread Richard Pijnenburg
I have created my own search engine. It searches in a mysql database, sins all the text from the site is in the database. Richard Pijnenburg Klik-on Internet Solutions > -Original Message- > From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] > Sent: Sunday, November 17, 2002 11:59 AM > To

Re: [PHP] PHP search engines

2002-11-17 Thread [EMAIL PROTECTED]
Hello! PS> So I would like to make a search engine for my site. Can you use PHP to PS> do this? Or is another language/application/whatever more appropriate?? PS> If so, can you give me links to where I can find information on this PS> topic. http://php.net/mnogo http://mnogosearch.org ===

[PHP] PHP search engines

2002-11-17 Thread Phil Schwarzmann
So I would like to make a search engine for my site. Can you use PHP to do this? Or is another language/application/whatever more appropriate?? If so, can you give me links to where I can find information on this topic. Thanks!!

Re: [PHP] Display cell if dates are between 2 dates - help

2002-11-17 Thread Ray Healy \(Data Net Services\)
Dear Jason The startdate and endate columns are "date" format - have any ideas what i can do Thanks for yout help Ray - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 17, 2002 6:22 AM Subject: Re: [PHP] Display cell if dates are b

[PHP] post files array and registered globals off

2002-11-17 Thread electroteque
hi i need to do a foreach on post files array ie _REQUEST['photo'] or _POST['photo'] doesnt work only _FILES['photo'] works and if i do a foreach on this it gets the 5 associated array values for it not on the input value array ? say i had 2 input files i should get a count of 2 not 5 :| --

  1   2   >