[PHP] Ad:

2002-05-29 Thread Tale . Berntsen
1000,- billigere enn SAS? 500,- i prisforskjell pr snute. I og for seg et OK tilbud, men datoene var litt klinkokos: 3 uker? Jeg tar rett og slett telefonen fatt og ringer Braathens... teil Informasjonssjef Studentsamskipnaden i Bergen 5

[PHP] mail() returned a strange error, what is this?

2002-05-29 Thread Magnus Hammar
I used the mail() function in php and it returned errors like these: -- Warning: Mail delivery program returned with exit code: 17152 in /www/htdocs/mail_webmaser.php on line 216 Warning: Mail delivery program returned: Undefined error: 0 in /www/htdocs/mail_webmaser.php o

[PHP] httpd runs forever

2002-05-29 Thread Jacob Friis Larsen
I sometimes have a httpd process that when I look at top has run for more than 100 min. Can I in some way find out why it will not stop or its url? Regards Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with example session class

2002-05-29 Thread Daevid Vincent
I'm just learning sessions, and thought the class looked interesting on this page: http://www.php.net/manual/en/ref.session.php So I have this on an index.phtml page and I can see the variables are being set and all looks good there, however upon successful "login" I wish to redirect to content.p

RE: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread Tom Rogers
Hi lines 123 are all outputting info, do the php stuff first this script below is delete.inc >and the lagi.php is .. >1::PHp >2: >3:hahahahha >4:5:require 'delete.inc'; >6:deleteCookies(); >7:printf("can do it`"); >8: >9:?> >10: >11: > >so, which one in line 4 have send anything first >please hel

RE: [PHP] Searching Many Text Documents

2002-05-29 Thread Sebastian A.
Thanks a lot for this. I will try to implement this in my site. Does anyone have any other suggestions? -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 10:06 PM To: Sebastian A. Cc: PHP General List (PHP.NET) Subject: Re: [PHP] Searching Many

Re: [PHP] generating next number... from db extraction

2002-05-29 Thread Tom Rogers
Hi You could use the auto increment feature of mysql and store the prefix and suffix as seperate fields in the database like idnum|prefix|suffix|data 1234:abc|A Then just add them together to form the complete order number. Tom At 10:27 AM 30/05/2002 +1000, Peter wrote: >hi, > >I'm

Re: [PHP] for loops

2002-05-29 Thread Jason Wong
On Thursday 30 May 2002 11:46, Peter wrote: > Just a query ... has any one else noticed this > > for($i = a; $i < z; $i++) > { > print $i; > echo "";} > > will print out a right down to yz It should only print to 'y' ... > but replace the letters with numbers eg > > for($i = 1; $i < 10; $i++)

Re: [PHP] PostgreSQL - WHILE loop working too well / WARNING: Unable to jump to row 2 on PostgreSQL...

2002-05-29 Thread Jason Wong
On Thursday 30 May 2002 11:30, Steve G wrote: Please do not reply to an existing post. Start a new one! > I do not understand why PHP is trying to pull row 2!! I want to create an > array of data and construct a table from a query. The echo of $rows shows > 2 rows, so if I'm setting my variabl

Re: [PHP] POST Format

2002-05-29 Thread Philip Olson
> I'm trying to figure out how to correct the proper format for > simulating the data sent in a POST. I believe the basic syntax > is > > ?name1=value1&name2=value2 ... > > Is this correct? That is correct for GET information, but not for POST. POST is not passed through the QUERY_STRING lik

RE: [PHP] Write permission problem

2002-05-29 Thread Martin Towell
on linux : chmod in php : chmod() http://www.php.net/manual/en/function.chmod.php the script will need write access to the directory otherwise it can't. write to it... :) -Original Message- From: Manisha [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 1:46 PM To: [EMAIL PROTE

[PHP] English translations ???

2002-05-29 Thread jon shoberg
Can anyone suggest linux based software for translating english to multiple languages ? I have a dynamic content database which I need to translate into other languages. It need to run on my linux server where I can pass a string as a system call and get back the translated output. Price r

[PHP] Write permission problem

2002-05-29 Thread Manisha
This is piece of my code, It is executing without any error but file is not getting created. I tried the read mode, it is ok. That means the directory does not have write permission. But then how to set it ? My server is Red Hat Linux and I am using PHP4. Can I set it thr PHP or do I need to

[PHP] for loops

2002-05-29 Thread Peter
Just a query ... has any one else noticed this for($i = a; $i < z; $i++) { print $i; echo "";} will print out a right down to yz but replace the letters with numbers eg for($i = 1; $i < 10; $i++) { print $i; echo "";} and it prints 1 thru to 10 and any one know a reason for this?

[PHP] Month Values in UNIX timestamps and workaround(Newbie)

2002-05-29 Thread webmaster
I began to write a function that correctly diveded up the months into their correct UNIX timestamps and wrote content from a database accordingly.   I have had an idea that maybe eaiser to implement but slower. Could one or two people tell me what the think and if it is a good idea. I am als

[PHP] PostgreSQL - WHILE loop working too well / WARNING: Unable to jump to row 2 on PostgreSQL...

2002-05-29 Thread Steve G
I do not understand why PHP is trying to pull row 2!! I want to create an array of data and construct a table from a query. The echo of $rows shows 2 rows, so if I'm setting my variable to 0 and incrementing with each loop, it doesn't make sense to me why it tries to pull row 2. It should stop

Re: [PHP] Entering password on a command line

2002-05-29 Thread Analysis & Solutions
> To increase security, I would like to not put the bind password into the > program, and instead have the user type it in. But, I'd like to have this > done so that the password is not echo'd to the screen. The one thing I can suggest is the readline functions: http://www.php.net/manual/en/r

RE: [PHP] Variable Variables

2002-05-29 Thread David Freeman
> You may want to code with E_NOTICE errors showing. To > show all levels, use error_reporting: > > error_reporting(E_ALL); Yeah, I already do that... CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Warning: Cannot add header information - headers alreadysent by

2002-05-29 Thread Miguel Cruz
Lines 1, 2, and 3 are sending text to the browser. You need to do your header operations first, THEN output the HTML. Or put at the VERY beginning of the file (before any HTML, before any blank space, before anything else). miguel On Thu, 30 May 2002, Anton Heryato wrote: > this script below

RE: [PHP] Mail Archives

2002-05-29 Thread Demitrious S. Kelly
Archives of the mailing list are available here: http://news.php.net/ Tutorials (good as books) check www.zend.com, www.hotscripts.com and www.phpbuilder.net (com?org?) -Original Message- From: Natarajan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 6:40 PM To: PHP Subject: [P

Re: [PHP] using stdin in php

2002-05-29 Thread Miguel Cruz
On Wed, 29 May 2002 [EMAIL PROTECTED] wrote: > Could somebody look at this a tell me way it does not set the > password correctly. I know it has to run at root this has been > handled. > I think my problem is with --stdin. It sets a password but it does not > set it correctly > > $cmd = "ec

RE: [PHP] POST Format

2002-05-29 Thread Demitrious S. Kelly
No you can do Index.php?name=apokalyptik&[EMAIL PROTECTED]&subscribe=n o && '; echo 'NAME: '.$name.chr(10); echo 'EMAIL:'.$email.chr(10); echo 'SUBSCRIBE:'.$subscribe; echo ''; ?> -Original Message- From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]] Sent: Wedn

Re: [PHP] Mail Archives

2002-05-29 Thread Evan Nemerson
On Wednesday 29 May 2002 18:39 pm, Natarajan wrote: > HI, > 1. Where are the mail archives of this mailing list? http://marc.theaimsgroup.com/ > 2. Any free online downloadable books ( html / pdf formats) on PHP? Not that I know of, but webmonkey has a decent tutorial, and the manual i

[PHP] POST Format

2002-05-29 Thread Jonathan Rosenberg
This is not entirely a PHP question & I should know the answer, but ... I'm trying to figure out how to correct the proper format for simulating the data sent in a POST. I believe the basic syntax is name1=value1&name2=value2 ... Is this correct? If so, how are the value's encoded? Is each v

[PHP] Only the last cookie is set!

2002-05-29 Thread Jagannath Nori
Hi all, I have the following code : ** setcookie("currentUserClass", $class, time()+3600, '', '', 0); setcookie("currentUserEmail", $emailId, time()+3600, '', '', 0); setcookie("currentUserName", $name, time()+3600, '', '', 0)

Re: [PHP] File Upload

2002-05-29 Thread Gerard Samuel
A guess, but is the tmp dir set in php.ini?? Edward Marczak wrote: > OK - I've read the manual, looked at sample codeand I sadly am > missing something. > > I'm doing (basically) this in my form: > > method="post" name="replysub" id="replysub"> > > > > On the page it's submitted to, just

RE: [PHP] generating next number... from db extraction

2002-05-29 Thread Peter
Thanks for your help John that works really well :) Cheers Peter -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, 30 May 2002 12:08 PM To: 'Peter'; 'Php' Subject: RE: [PHP] generating next number... from db extraction Okay...here's the "what they don't kn

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha
Thanks to all who responded. I have concluded that - if directory structure is fixed then we shall use relative path, so that we can copy the code as it is to different server without changing anything. But if we are not sure about the path on server - from where the files are going to be fe

[PHP] Mail Archives

2002-05-29 Thread Natarajan
HI, 1. Where are the mail archives of this mailing list? 2. Any free online downloadable books ( html / pdf formats) on PHP? Thanks -- Natarajan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Upload

2002-05-29 Thread Edward Marczak
OK - I've read the manual, looked at sample codeand I sadly am missing something. I'm doing (basically) this in my form: On the page it's submitted to, just to check the data, I did this: $lineNo = 1; echo "Dumping file info...--"; reset($_FILES); while (list ($

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Martin Towell
What I'm saying is that if these files are in the same place, relative to each other (this includes using "../") then I think it's easier to use relative paths. The exception to this would be if the relative path length is longer than the absolute path length -Original Message- From: Man

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread John Holmes
You can use an absolute path for both, or use a relative path for both. You can use ../../etc as your path. Just use whatever is easier for you to understand and code. It doesn't make a difference. ---John Holmes... > -Original Message- > From: Manisha [mailto:[EMAIL PROTECTED]] > Sent:

RE: [PHP] generating next number... from db extraction

2002-05-29 Thread John Holmes
Okay...here's the "what they don't know won't hurt them solution": CREATE TABLE (ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, Cnt CHAR(2), Quote TEXT) AUTO_INCREMENT = 20120250; Adjust your table accordingly, but the idea is that this auto_increment column will now start counting at 20120250 and

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha
e.g my directory structure is like below /usr/manisha/www/invitation - where all php files are situated /usr/manisha/incFiles - where all files are situated - from where I want to read There are also some files /usr/manisha/www/invitation/msgFiles - From this directory also I am reading som

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Martin Towell
IMO: use relative paths if the two files will be in the same place relative to each other, otherwise use absolute -Original Message- From: Manisha [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 11:51 AM To: [EMAIL PROTECTED] Subject: [PHP] File Path - Which way is better ? I am

[PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha
I am using file to read / write data. When I give file path I can give it in 2 ways. - As a Virtual path - Real physical complete path. Which way is better and in which situation ? I just want to open up discussion so that I will come to know the pros and cons for both the methods. Thanks i

RE: [PHP] generating next number... from db extraction

2002-05-29 Thread Peter
unfortunately they want letters in it ... I know it would be easier to hav auto_incroment.. and wish I could just leave it at that .. for the bulk of it i could get away with having no letters but they have requested to have the letter in the update part eg 12345 becomes 12345-A after the u

RE: [PHP] generating next number... from db extraction

2002-05-29 Thread John Holmes
Why does it have to be letters and numbers? You're just making more work. You can use an auto_increment field and not worry about it (assuming MySQL). You can also use uniqid() and md5() to make a unique string, but it'll be 32 characters long. Maybe crypt() is 16 characters...dunno, but you cou

RE: [PHP] ******************* Secure product download *******************

2002-05-29 Thread John Holmes
[snip] > If you put the file you send somewhere out of the document root, the > download location can't even be reverse-engineered. This script is the > only way to get that file. That's the key, right there. Combining that with sessions will make it so that only people with the appropriate ses

[PHP] using stdin in php

2002-05-29 Thread rdkurth
Could somebody look at this a tell me way it does not set the password correctly. I know it has to run at root this has been handled. I think my problem is with --stdin. It sets a password but it does not set it correctly $cmd = "echo $newpassword | passwd --stdin $user"; return(exec($cmd

Re: [PHP] mail() function is successful but page hangs

2002-05-29 Thread Justin French
How many emails are you sending? A batch of 100? or just one? Have you ever successfully sent an email? Have you tested using just one email address (rather than bulk)? If you sending a bulk, my guess is the process is taking longer than the maximum time allowed for a script on your server. I

[PHP] generating next number... from db extraction

2002-05-29 Thread Peter
hi, I'm making a quoting system and need to have letters & Numbers inside the quote number. Now if I was to grab the last quote number inserted into the db and then do something like //example of $quoteID value w/out letters $quoteID = 20120250; //example of $quoteID with letters //$quoteID = a

RE: [PHP] Variable Variables

2002-05-29 Thread Philip Olson
> Never mind, ${$key} was what I was looking for - my test case set the > wrong variable and that's why it didn't seem to be working. You may want to code with E_NOTICE errors showing. To show all levels, use error_reporting: error_reporting(E_ALL); This will show you undefined variables, a

Re: [PHP] Simple Mailing List

2002-05-29 Thread Bogdan Stancescu
Randum Ian wrote: >Hi there, I need to sort out a "simple" mail script which does the >following. I have started the brainstorm if someone else could help with the >missing bits, where to look, etc: > >CHECK POP3 MAIL FOR MSG: > >--> crontab, but how??? > Check out either running php from termina

RE: [PHP] Variable Variables

2002-05-29 Thread David Freeman
> I've got as far as working out that $$key will give me the > equivalent of $form1 but how do I then work out if $form1 > has a value? Never mind, ${$key} was what I was looking for - my test case set the wrong variable and that's why it didn't seem to be working. CYA, Dave -- PHP Gene

[PHP] Variable Variables

2002-05-29 Thread David Freeman
Hi All, I've been trying to figure this out based on stuff on php.net but can't seem to get a result I need. I have an array: $formarray = array ("form1" => "var1", "form2" => "var2"); And now I'm using that array to create a form (fairly abbreviated): while (list($key, $val) = each($formarra

[PHP] PHP & Dreamweaver ...

2002-05-29 Thread Peter
Howdy Peoples, Just thought I'd let those interested know that Macromedia's new version of Dreamweaver (Dreamweaver MX) now supports PHP & MYSQL, along with the other usual suspects. Cheers Peter "the only dumb question is the one that wasn't asked" -- PHP General Mailing List (http://www.p

[PHP] FTP APPLE SERVER PROBLEM

2002-05-29 Thread Alexandra Aguiar
Hi guys.. i've got a problem... i'm remaking a webftp system... i took some base of it on the web... great.. So.. one of the features is : it appears the name of a directory and how many files are in it. like that : DIR (5) == 5 files on the DIR i use $arq=ftp_nlist($connection, "$xanda"); and

Re: [PHP] ******************* Secure product download *******************

2002-05-29 Thread Shaun Thomas
On Wed, 29 May 2002, Ron Stagg wrote: > Is this even possible within the open realm of the browser? Have any of > you solved a similar problem? I welcome any ideas. Your solution is pretty easy. Assign a php script that will actually send the download. At this point, your PHP script can do

RE: [PHP] ******************* Secure product download *******************

2002-05-29 Thread Ron Stagg
John, I appreciate your advice here. Please tolerate another question: Your code example had the comment "//show download code". That is what I need. What is the "download code"? Thanks, Ron -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Wednesday

Re: [PHP] ******************* Secure product download *******************

2002-05-29 Thread 1LT John W. Holmes
Ummno they can't. pay_first.php is what you send them to if they don't have a correct session. If the session is correct, show the download page. Notice the ! in front of isset(). ---John Holmes... - Original Message - From: "Ron Stagg" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[

Re: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread 1LT John W. Holmes
> 1::PHp > 2: > 3:hahahahha Maybe it's just me, but those 3 lines look like they are sending something to the browser > so, which one in line 4 have send anything first > please help me to fixed > > regards > anton ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Simple Mailing List

2002-05-29 Thread Randum Ian
Hi there, I need to sort out a "simple" mail script which does the following. I have started the brainstorm if someone else could help with the missing bits, where to look, etc: CHECK POP3 MAIL FOR MSG: --> crontab, but how??? IF MSG CHECK FROM EMAIL: --> put mail into array then check from ma

RE: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread Ed Gorski
You need to put line 6 ahead of all the HTML, ie make it line 0. ed At 04:10 AM 5/30/2002 -0700, Anton Heryato wrote: >this script below is delete.inc >and the lagi.php is .. >1::PHp >2: >3:hahahahha >4:5:require 'delete.inc'; >6:deleteCookies(); >7:printf("can do it`"); >8: >9:?> >10: >11: > >s

Re: [PHP] ******************* Secure product download *******************

2002-05-29 Thread Ed Gorski
ugh a software pay site written in php.it makes me feel dirty... At 04:56 PM 5/29/2002 -0400, 1LT John W. Holmes wrote: >session_start(); >if(!isset($_SESSION["did_pay"])) >{ header("Location: http://www.example.com/pay_first.php";); } >//show download code > >Obviously you set $_SESSION[

RE: [PHP] ******************* Secure product download *******************

2002-05-29 Thread Ron Stagg
Yes, but unauthorized users can still just key in the URL (http://www.example.com/pay_first.php) into their browser and get around the session verification. I have toyed around with dynamically building the file when it is needed, but I need to delete it once it has been downloaded by the user. H

RE: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread Anton Heryato
this script below is delete.inc and the lagi.php is .. 1::PHp 2: 3:hahahahha 4: 10: 11: so, which one in line 4 have send anything first please help me to fixed regards anton -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 1:37 PM To:

Re: [PHP] ******************* Secure product download *******************

2002-05-29 Thread 1LT John W. Holmes
session_start(); if(!isset($_SESSION["did_pay"])) { header("Location: http://www.example.com/pay_first.php";); } //show download code Obviously you set $_SESSION['did_pay'] to a value once they, umm, pay. ---John Holmes... - Original Message - From: "Ron Stagg" <[EMAIL PROTECTED]> T

[PHP] ******************* Secure product download *******************

2002-05-29 Thread Ron Stagg
I am building a site where visitors can purchase and download software. To purchase a software product, the visitor must submit credit card info. Once the purchase has been approved, the user is given a link from which he/she may download the requested software. This link MUST only be accessible

Re: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread 1LT John W. Holmes
You can't send anything to the browser before you send a header or cookie. Apparently, lagi.php has sent something, though, on line 4. Fix that and you will be fine. ---John Holmes... - Original Message - From: "Anton Heryato" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, M

Re: [PHP] Warning: Cannot add header information - headers alreadysent by

2002-05-29 Thread Miguel Cruz
This is the number one FAQ in this list. Check the archives from any day you like and you'll see the answer. miguel On Thu, 30 May 2002, Anton Heryato wrote: > i have one function name deleteCookees that have this error message > > Warning: Cannot add header information - headers already sent

[PHP] How info is passed to $vars

2002-05-29 Thread Simon Troup
I know that if you call a page like this ... http://www.domain.com/index.php?thisvar=1&thatvar=2 ... that you get $thisvar and $thatvar to use in your script, but exactly what conditions are necessary for a "POST" and "GET" to be passed as variables into the PHP engine. I presume that there is

Re: [PHP] unsetting function

2002-05-29 Thread Miguel Cruz
On Wed, 29 May 2002, Laurent Drouet wrote: > I would like to know if there is a way to unset a function or to replace > function contents by an other ? Not natively, that I know of. If you think you'll have to do a lot of that, it's probably easier to keep the function name in a variable, and j

[PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread Anton Heryato
i have one function name deleteCookees that have this error message Warning: Cannot add header information - headers already sent by (output started at /home/reymond/html/phpreport/lagi.php:4) in /home/reymond/html/phpreport/delete.inc on line 10 the script could anybody tell me why this happe

Re: [PHP] Periods with UNIX timestamps

2002-05-29 Thread Miguel Cruz
On Wed, 29 May 2002 [EMAIL PROTECTED] wrote: > Where is the best place to find out the values in seconds(i.e. UNIX time > stamps) for standard periods of time such as one day and one week and > one month(The month thing would need to be correct for each month) This is top-secret copyrighted infor

Re: [PHP] Searching Many Text Documents

2002-05-29 Thread Miguel Cruz
On Wed, 29 May 2002, Sebastian A. wrote: > I recently have run into a situation where I must search through many text > (XML) documents. I would like to implement a search feature on my site that > can search through the XML documents I use for my pages. I will probably > need to search all the fi

Re: [PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-29 Thread Andrew Brampton
You can put your error level up to show you when you try to use a varible that hasn't be initalised yet, I tend to do that to ensure good coding, and that I don't mistype varibles etc Andrew - Original Message - From: "Andy Arbon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesda

Re: [PHP] xcopy inside of exec()

2002-05-29 Thread 1LT John W. Holmes
Try escaping your backslashes. exec('cmd /c xcopy c:\\source c:\\target'); ---John Holmes... - Original Message - From: "Adrian Christen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 12:11 PM Subject: [PHP] xcopy inside of exec() > Hi! > > I'm traying tu us

Re: [PHP] How to create this login page in a good way?

2002-05-29 Thread 1LT John W. Holmes
Hello, > Hello! > > I'm sitting here trying to create a loginpage, but it doesn't look very > nice. So now I'ld use some help to decide whether the following solution > is possible to create... > > I want to create a little script which will be included on every page > and do the following: > > 1

[PHP] Searching Many Text Documents

2002-05-29 Thread Sebastian A.
Hello, I recently have run into a situation where I must search through many text (XML) documents. I would like to implement a search feature on my site that can search through the XML documents I use for my pages. I will probably need to search all the files in a specific directory for a

Re: [PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-29 Thread Ed Gorski
Go to your php.ini and turn on full error reporting.you'll get warning message if you do not initialize varsas of php4.2.1 ed At 08:11 PM 5/29/2002 +0100, Andy Arbon wrote: >Hello, > >In general I find PHP great to work with, but the number one thing that >causes bugs for me is the fac

[PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-29 Thread Andy Arbon
Hello, In general I find PHP great to work with, but the number one thing that causes bugs for me is the fact that the interpreter doesn't throw an error if I use an undeclared variable. I have looked and I can't find any information that suggests you can make PHP force you to declare variabl

[PHP] javascript(sorry for my english)

2002-05-29 Thread burak delice
hi, why this code does no work? (explorer is giving ajavascript error) thanks. burak ozdelice http://localhost/Aksu/web/getimage.php?resim=K00.jpg $size = GetImageSize ("images/$resim"); echo ""; echo "WinName=\"";echo $resim; echo "\" "; echo "GoURL=";echo"\"images/resimgoster.php?res=";

Fw: [PHP] javascript

2002-05-29 Thread Kevin Stone
Instead of all those echo statments use the concatonation operator (.) to combine variables and quoted strings. It'll make your code much easier to read. After I cleaned up your code it worked perfectly. Looks like you may be missing a semi-colin there on line #1 of your javascript code. Other

[PHP] javascript

2002-05-29 Thread burak delice
why is that code t working? http://localhost/Aksu/web/getimage.php?resim=K00.jpg $size = GetImageSize ("images/$resim"); echo ""; echo "WinName=\"";echo $resim; echo "\" "; echo "GoURL=";echo"\"images/resimgoster.php?res="; echo $resim; echo "\"; "; echo "var hdth="; echo $size[0]; ech

Re: [PHP] determining where the computer is that posts to a db

2002-05-29 Thread Tyler Longren
Nope, no way to determine a MAC address through a browser. tyler - Original Message - From: "Tom Beidler" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 12:58 PM Subject: [PHP] determining where the computer is that posts to a db > I have a time bi

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Jonathan Rosenberg
-Original Message- > From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 29, 2002 1:40 PM > To: Jonathan Rosenberg > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] comment followed by ?> fails to parse > On Wed, 29 May 2002, Jonathan Rosenberg wrote: > > You need

Re: [PHP] determining where the computer is that posts to a db

2002-05-29 Thread Ed Gorski
Getting the mac address of a machine would be a BIG security holeso I really doubt there is. ed At 10:58 AM 5/29/2002 -0700, Tom Beidler wrote: >I have a time billing application and I need to determine where people are >logging in from to make sure they are signing in at work and not at ho

[PHP] Version of PHP and Database Type

2002-05-29 Thread Dr. Shim
Sorry about that. I'm using ODBC, and PHP version 4.2.0! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] determining where the computer is that posts to a db

2002-05-29 Thread Tom Beidler
I have a time billing application and I need to determine where people are logging in from to make sure they are signing in at work and not at home. Currently I'm logging the IP address and hostname but I don't think that's the totally sano way to do it. The work sites are using local ISP's that

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Thalis A. Kalfigopoulos
On Wed, 29 May 2002, Jonathan Rosenberg wrote: > -Original Message- > > From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 29, 2002 10:27 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] comment followed by ?> fails to parse > > > On Wed, 29 May 2002, Ja

RE: [PHP] Show an image

2002-05-29 Thread James E. Hicks III
I found a solution to this on the web somewhere. What they did was create image.php wich extracts your image from the DB and echo's it to the page after sending the correct content type header. Then in your other .php's/.html's use... James -Original Message- From: Félix García Renedo [

Re: [PHP] Not a PHP-Problem ...

2002-05-29 Thread Tyler Longren
Try the geektools w hois proxy at www.geektools.com: http://www.geektools.com/cgi-bin/proxy.cgi tyler - Original Message - From: "Marcel Besancon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 11:38 AM Subject: [PHP] Not a PHP-Problem ... > Hi everybody, > >

Re: [PHP] Show an image

2002-05-29 Thread Tyler Longren
Is the image's location on the server saved in 'FIELD' or is the actual image saved in 'FIELD'? tyler - Original Message - From: "Félix García Renedo" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 12:08 PM Subject: [PHP] Show an image Hello everybody,

[PHP] Show an image

2002-05-29 Thread Félix García Renedo
Hello everybody, I want to know how to show an image saved into a field of a database into a web page. I tried to print but it shows ascii codes. Thanks in advance.

[PHP] mail() function is successful but page hangs

2002-05-29 Thread Phil Schwarzmann
So it looks as if the mail() function seems to work for me but whenever the script is executed, it web page just hangs! Why do you think the web page keeps hanging up (after a couple minutes the user eventually gets a 'page not found' error - at least i think that's the error), but the script st

[PHP] Re: PLEASE: Second request...

2002-05-29 Thread Marcel Besancon
Hi Shane, > Second request... Please, any help out there for where I can download the best GD > module for PHP 4.0.6 on my WIN 2000 IIS box. maybe this can help you http://kromann.info/php4.php Bye, Marcel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] PLEASE: Second request...

2002-05-29 Thread Stuart Dallas
Shane <[EMAIL PROTECTED]> wrote: > Second request... Please, any help out there for where I can download > the best GD module for PHP 4.0.6 on my WIN 2000 IIS box. A quick (about 2 seconds!!) search on Google found this: http://php.weblogs.com/php_gd Full search results: http://www.google.com/

[PHP] PLEASE: Second request...

2002-05-29 Thread Shane
Second request... Please, any help out there for where I can download the best GD module for PHP 4.0.6 on my WIN 2000 IIS box. Thanks folks! -- Howdy crew... I have a client's ISP that is running php 4.0.6 on WIN IIS but does NOT have a version of GD installed. My questio

[PHP] Not a PHP-Problem ...

2002-05-29 Thread Marcel Besancon
Hi everybody, this is not a PHP-problem. I just need ti know the whois-servers for the following tld's. .info, .net. As everybody knows the whois question for example .com has to be send to "whois.networksolutions.com". I hope anybody knows a source where to find some of the adresses. Thank

RE: [PHP] newbie: redirecting a POSTed form

2002-05-29 Thread Jonathan Rosenberg
I'm not aware of any simpler method. Are you unable to install a stand-alone executable on the server you are using? > -Original Message- > From: PeterV [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 29, 2002 11:28 AM > To: Jonathan Rosenberg; [EMAIL PROTECTED] > Subject: RE: [PHP] ne

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Jonathan Rosenberg
-Original Message- > From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 29, 2002 10:27 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] comment followed by ?> fails to parse > On Wed, 29 May 2002, Jason Wong wrote: > > Yes this hightlights another shortcoming

[PHP] How to create this login page in a good way?

2002-05-29 Thread Victor Spång Arthursson
Hello! I'm sitting here trying to create a loginpage, but it doesn't look very nice. So now I'ld use some help to decide whether the following solution is possible to create... I want to create a little script which will be included on every page and do the following: 1 does the user come fr

[PHP] xcopy inside of exec()

2002-05-29 Thread Adrian Christen
Hi! I'm traying tu use the xcopy commando from win 2000 under php4, to move folders: But it does not work ... also passthru() does not give any (expected) answer? Where i'm wrong? Thanx for your answers! Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: DNS-less Connections With PHP?

2002-05-29 Thread Manuel Lemos
Hello, On 05/28/2002 11:13 PM, Dr. Shim wrote: > Could anybody explain to me (or even give me a link to a place explaining) > the creation of "DSN-less" connections? I've extensivly searched Google with > this, but I couldn't find anything that was of any help to me. I know how to > do this in AS

[PHP] LDAP problems Apache 1.3.22 PHP 4.2.1

2002-05-29 Thread Oakes, Edward B
I am having problems with Apache occasionally giving me a segmentation fault when making ldap calls from php. I am currently using openldap-2.0.23, Apache 1.3.22 and PHP 4.2.1. My php program is being used to authenticate a user against several Microsoft Active Directory Servers. It works fla

RE: [PHP] mail() function

2002-05-29 Thread Ed Gorski
you mean return str_replace('ignorance','knowledge'); At 04:34 PM 5/29/2002 +0100, James Holden wrote: >knowledge > >-Original Message- >From: Ed Gorski [mailto:[EMAIL PROTECTED]] >Sent: 29 May 2002 16:26 >To: r; [EMAIL PROTECTED] >Subject: Re: [PHP] mail() function > > >lol.what doe

RE: [PHP] mail() function

2002-05-29 Thread James Holden
knowledge -Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED]] Sent: 29 May 2002 16:26 To: r; [EMAIL PROTECTED] Subject: Re: [PHP] mail() function lol.what does that return? At 09:08 PM 5/29/2002 -0700, r wrote: >That may and may not work, I would suggest you add the RTFM(

Re: [PHP] mail() function

2002-05-29 Thread Stuart Dallas
Ed Gorski <[EMAIL PROTECTED]> wrote: > lol.what does that return? Usually a more knowledgable programmer occasionally with a sense of acheivement attached. -- Stuart > At 09:08 PM 5/29/2002 -0700, r wrote: >> That may and may not work, I would suggest you add the RTFM() >> function, then it

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes
Le Mercredi 29 Mai 2002 16:55, 1LT John W. Holmes a écrit : > It's probably your register_globals setting. with it off, you have to use > the HTTP_*_VARS or _* variables where * is GET, COOKIE, or POST. With it > on, those are still available, but you also have the form element names > registered.

  1   2   3   >