Re: [PHP] php in free()

2001-12-18 Thread Jan Maska
I'm not sure which way you create the connection, but I suppose that you use FSockOpen.. This is a buggy function, as far as I know.. Zend promised to take care of it in the 4.0.4 release of PHP, but since that nothing has changed, apparently. I had the same problem some week ago. In the end I

Re: [PHP] php in free()

2001-12-18 Thread Andrey Hristov
This is because the reading from socket is blocked_read by default. So there is fuinction socket_set_blocking() and also socket_set_timeout(). I had the same problem so as workaround set_time_limit(0) but the script works for 40 !! seconds. My aim was to get some header so I didn't read from

[PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov
First ?php var_dump($PHPSESSID); var_dump(phpversion()); ? NULL string(5) 4.0.4 So I think that the problem is that you haven't started any session. Before session starting PHPSESSID is NULL. That is my opinion. PHPSESSID by default is get as GET parameter. Do you have any GET parameter

[PHP] Parse error: parse error in/test/put_file.php on line 14???

2001-12-18 Thread Alex Elderson
Hi, What do i wrong? I get this err: Parse error: parse error in /test/put_file.php on line 14 put_file.php begin- ?php if ($submit) { include('include.php'); $pos = strrpos($file, \); if ($pos === FALSE) { $pos = strrpos($file, /); if ($pos === FALSE) {

Re: [PHP] Parse error: parse error in/test/put_file.php on line 14???

2001-12-18 Thread Andrey Hristov
The problem is here $pos = strrpos($file, \); must be $pos = strrpos($file, \\); Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Alex Elderson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 18,

[PHP] Parsing syntax to add a HTML line break

2001-12-18 Thread steph
I have a form to be used for data submission and to be added to MySQL. How do I parse the syntax so that it automatically inserts a HTML line break whenever a carriage return is present?? Thanks. Another PHP newbie, Steph

php-general Digest 18 Dec 2001 10:26:41 -0000 Issue 1059

2001-12-18 Thread php-general-digest-help
php-general Digest 18 Dec 2001 10:26:41 - Issue 1059 Topics (messages 78009 through 78050): Re: mySQL INSERT question 78009 by: Philip Hallstrom 78018 by: Mike Krisher Re: electronic postcard recommendation? 78010 by: Philip Hallstrom 78012 by:

RE: [PHP] electronic postcard recommendation?

2001-12-18 Thread Rosser, Chris
After trying many different postcard scripts in search for one that even comes close to my requirements, I eventually came across Sendcard (http://www.sendcard.f2s.com/) earlier this year. Easy install, easily customisable... highly rec'd. Chris }:) -Original Message- From: Brian

Re: [PHP] Parsing syntax to add a HTML line break

2001-12-18 Thread Pavel Jartsev
[EMAIL PROTECTED] wrote: I have a form to be used for data submission and to be added to MySQL. How do I parse the syntax so that it automatically inserts a HTML line break whenever a carriage return is present?? Thanks. Another PHP newbie, Steph One possibility is to use

[PHP] Re: Parsing syntax to add a HTML line break

2001-12-18 Thread Arve Bersvendsen
wrote in 000f01c187af$60d6c900$d536cca6@vaio:">news:000f01c187af$60d6c900$d536cca6@vaio: I have a form to be used for data submission and to be added to MySQL. How do I parse the syntax so that it automatically inserts a HTML line break whenever a carriage return is present?? nl2br

Re: [PHP] Error handling

2001-12-18 Thread Neil Freeman
What warnings are you receiving? Many can be avoided by doing various checks: e.g. if (!isset($some_variable)) ...some error code else ...all is well others which may be useful: function_exists() file_exists() HTH Neil Yoel Benitez Fonseca wrote: Hi! There is in PHP some way

[PHP] PHP + Smarty question.

2001-12-18 Thread Alexander Deruwe
Using Smarty templates (it is my guess this question is valid for other template engines aswell), is there a way to pass an array to the template, then stuff it in a hidden form field and retrieve it in another PHP source file as an array? is_array() does not seem to detect the object is an

[PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Julio Nobrega Trabalhando
Hi again, Here are a few updates (error_reporting(E_ALL)): $_SESSION['PHPSESSID']; // Undefined index PHPSESSID error ?=SID? // Doesn't work. Not even a undefined variable. // echo $SID doesn't either But: echo session_id(); // works! Thanks Andrey for the remainder, but session were

[PHP] Persistent connection to Oracle with OCI

2001-12-18 Thread Berlina
Hi again to everybody, first sorry for my poor english. im trying to use persistents connections to an Oracle Database through PHP, for manageing transactions, and have some problems. My Schema: * Web Server: Apache 1.3.20 on a Linux RedHat 7.0 * PHP: 4.0.6 compiled with oracle module

[PHP] Can php make a authentication to Apache?

2001-12-18 Thread Alex Elderson
Hi, Is there a way to make a login script that make a php session and also make a apache session? I am using ldap Authentication for php en apache but the users must give a username and password for php and for apache! I can do it so: login to apache with a popup login window and look if the

RE: [PHP] Can php make a authentication to Apache?

2001-12-18 Thread Simos Varelakis
perhaps this link helps you http://www.phpsecurepages.f2s.com/ -Original Message- From: Alex Elderson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Can php make a authentication to Apache? -- PHP General Mailing List

[PHP] Passing through Array's to another script

2001-12-18 Thread gkin
I want to pass through an array with content to another script. The array is correctly filled with data. To do this I use the following code: FORM METHOD='post' ACTION='script.php?xtabel = ? print($xtabel); ?' The content of the array is not recognised in the script.php. What is the best way to

[PHP] addslash/stripslashes

2001-12-18 Thread TD - Sales International Holland B.V.
Hey there, I was once told I need to use addslashes and stripslashes on data I get from the web and insert into the database. I'd like to know why?!?! See I know that with other languages you could use special chars to hack/crack the database, but even without add/strip slashes I can't seem

Fwd: Re: [PHP] Passing through Array's to another script

2001-12-18 Thread TD - Sales International Holland B.V.
-- Forwarded Message -- Subject: Re: [PHP] Passing through Array's to another script Date: Tue, 18 Dec 2001 22:01:53 +0100 From: TD - Sales International Holland B.V. [EMAIL PROTECTED] To: gkin [EMAIL PROTECTED] On Tuesday 18 December 2001 14:43, you wrote: Ok I'm a newbie

RE: Re: [PHP] Passing through Array's to another script

2001-12-18 Thread Jerry Verhoef (UGBI)
Maybe you should take a look at serialize and unserialize? http://nl.php.net/manual/nl/function.serialize.php http://nl.php.net/manual/nl/function.unserialize.php With serialize you translate a variable to a string. With unserialize you translate it back to the original variable Jerry Verhoef

Re: Re: [PHP] Passing through Array's to another script

2001-12-18 Thread Julio Nobrega Trabalhando
Well, there's a small difference between form's GET/POST and passing variables using the ? on urls. I don't know the techinal details of it, but it's possible. I guess, on this particular case, the form method is POST. When the next page is loaded (the action target), you put some GET

Re: [PHP] Passing through Array's to another script

2001-12-18 Thread Jon Haworth
If you need to POST a form, but include some variables, you can use hidden fields. form action=script.php method=post input type=hidden name=a value=foo input type=hidden name=b value=bar input name=c /form Assuming someone now enters baz into the input called c, your POST data is

Re: [PHP] Passing through Array's to another script

2001-12-18 Thread Julio Nobrega Trabalhando
However, you can't do this: form action=script.php?a=foob=bar method=post input name=c /form Because a b won't get submitted. Well, like I said, I don't understand very well, but things after the ? are available on the action page, even if the method is POST. Here's a tested example

[PHP] HTML Email

2001-12-18 Thread Gerard Onorato
Okay I know I must be overlooking somethign super obvious but I am trying to send a simple HTML email. It works in Netscape mail, Pegasus etc however in Outlook and Outlook express it actually places the Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 7bit in the

Re: [PHP] HTML Email

2001-12-18 Thread Richard S. Crawford
The very first thing you need to do when thinking about a way to send HTML e-mail is to take plenty of aspirin and lie down until the urge passes and you feel sane again. HTML e-mail bad. Plain text good. At 06:51 AM 12/18/2001, Gerard Onorato wrote: Okay I know I must be overlooking

RE: [PHP] HTML Email

2001-12-18 Thread Richard Heyes
Okay I know I must be overlooking somethign super obvious but I am trying to send a simple HTML email. It works in Netscape mail, Pegasus etc however in Outlook and Outlook express it actually places the Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 7bit

Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov
$PHPSESSID is only available if the session is started before current executed script. Regards, Andrey - Original Message - From: Julio Nobrega Trabalhando [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 1:45 PM Subject: [PHP] Re: $PHPSESSID on PHP 4.1.0 Hi

Re: [PHP] HTML Email

2001-12-18 Thread jimtronic
It looks fine to me. The only difference is that I use Content-Transfer-Encoding: quoted-printable, which shouldn't make much of a difference here. A very small misplacement of a newline character or even a space can cause things not to work correctly. Your best course of debugging is to send

Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Julio Nobrega Trabalhando
Yes, I know. But the problem is PHP 4.1.0, or maybe something on the new php.ini that comes with. My scripts were echo'ing $PHPSESSID fine before it. -- Julio Nobrega. Um dia eu chego la: http://sourceforge.net/projects/toca Andrey Hristov [EMAIL PROTECTED] wrote in message

Re: [PHP] HTML Email

2001-12-18 Thread Gerard Onorato
Eureka! That seems to have fixed the problem. Now to test on the Mac clients. G On Tue, 18 Dec 2001 23:11:31 +0100, TD - Sales International Holland B.V. wrote: On Tuesday 18 December 2001 15:51, you wrote: Ok, just a guess here I'm not that familiar with writting my own headers What

RE: [PHP] addslash/stripslashes

2001-12-18 Thread Don Read
On 18-Dec-2001 TD - Sales International Holland B.V. wrote: Hey there, I was once told I need to use addslashes and stripslashes on data I get from the web and insert into the database. I'd like to know why?!?! See I know that with other languages you could use special chars to hack/crack

[PHP] PHP module for modem???

2001-12-18 Thread Scott Fletcher
Hi! Is there any module or software that I can use and compile it with PHP for working with hte modem??? For example, I have cURL but it is a seperate software and can be compile with PHP for certain things like FTP, Internet socket, etc. So, is there ever one for the modem? Thanks,

Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov
register_globals is recommended to be off in the new release. But if you put binaries from a package and didn't changed the ini - register_globals is probably on. Regards, Andrey - Original Message - From: Julio Nobrega Trabalhando [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

[PHP] GetImageSize Problem

2001-12-18 Thread seoz
Hello, I'm PHPer from Korea. I have a problem with GetImageSize function. I wanted to know some information about BMP image. So, I tried to use GetImageSize on PHP 4.0.5 , Linux. But, it didn't work. GetImageSize function returned nothing. Then, I tried it on PHP 4.0.6, Windows2000. Ooops.. I

Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Julio Nobrega Trabalhando
Yes! That's it. I was accessing vars using new methods, but I forgot $PHPSESSID was supposed to have globals on. So simple, yet I have flooded the list with messages. Thanks Andrey, I think it's better next time look at all possible options ;-) -- Julio Nobrega. Um dia eu chego la:

RE: [PHP] PHP module for modem???

2001-12-18 Thread Nathan Cassano
There aren't any modem modules that I am aware of but if you are using UNIX you can just open the modem device and talk to it directly. What is your application that would need to use a modem? ? /* Something like this */ $fp = fopen(/dev/modem, rw); fwrite($fp, ATA); echo fgets($fp, 128)

[PHP] Arrays/Hashes

2001-12-18 Thread TD - Sales International Holland B.V.
Hey there, sortta simple question... Is it just me or can't you access hashes within strings? This works... print(Some text $myarray[0]BR\n); This doesn't print(Some text $myhash['mykey']BR\n); i'm asking in relation to databases (not that that matters). If i fetch a row from the database I

Re: [PHP] PHP module for modem???

2001-12-18 Thread Charles Williams
This would require that your httpd user (nobody? depends on your setup) has read/write access to said device (which is normally not the case). In such a case you would need to filter it through sudo or some such. chuck - Original Message - From: Nathan Cassano [EMAIL PROTECTED] To:

Re: [PHP] Arrays/Hashes

2001-12-18 Thread jimtronic
I've noticed this, too. There are at least two things you can do to make them work... print(Some text {$myhash['mykey']}BR\n) or print(Some text .$myhash['mykey'].BR\n) jim Hey there, sortta simple question... Is it just me or can't you access hashes within strings? This works...

Re: [PHP] 'Select All'

2001-12-18 Thread Shane Wright
Hi Martin, Excellent, thanks for your help :) Regards -- Shane On Monday 17 Dec 2001 10:15 pm, Martin Towell wrote: you _can_ reference it by name - try this: script function my_select(type) { frm = document.forms.test; ele = frm[mycheckbox[]]; len = ele.length;

[PHP] Announcement: Smarty template engine 1.5.2 available

2001-12-18 Thread Monte Ohrt
http://www.phpinsider.com/php/code/Smarty/ Version 1.5.2 - - added Smarty object as fifth argument for template resource functions (Monte) - fixed a bug with incorrectly combined cache and compile id in clear_cache(). (Andrei) - fixed bug in

Re: [PHP] PHP module for modem???

2001-12-18 Thread Scott Fletcher
What application would I need to use this. In this case, no appication. Just writting the PHP code on the webpage that would work with the modem and stuffs like that. Scott Nathan Cassano [EMAIL PROTECTED] wrote in message

[PHP] php mail problems

2001-12-18 Thread Mike Jarosch
Hello, Using a Solaris box with php 4.0.6 I am having a problem sending mail using mail(). Sendmail is installed and works. Php.ini points to sendmail. What do the -t and -i options do? Are they required? Any ideas what could be wrong? Here is my code: if( mail( myemailaddresshere, Test,

[PHP] Re: Problem with fopen / url

2001-12-18 Thread Chris Lee
sounds like php is having a problem resolving the dns. could be 1 of a 100 things ... try putting the IP of the machine in vs the domain name. -- Chris Lee [EMAIL PROTECTED] Martin Leclair [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have a

[PHP] Re: Remote image

2001-12-18 Thread Chris Lee
how those remote servers destinguish where the images are coming from is from the Referr header. play around with getting the data manually using fopen()/fwrite()/fread() and your done. not so easy eh, well it works. -- Chris Lee [EMAIL PROTECTED] Martin Kampherbeek [EMAIL PROTECTED]

[PHP] Re: online editor

2001-12-18 Thread Chris Lee
online editor? you got 1mb free? no? buy a floppy. install ultraedit, it's the best editor around imho. -- Chris Lee [EMAIL PROTECTED] R. Lindeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... can someone help get a online editor thanx R. Lindeman

[PHP] Re: Passing through Array's to another script

2001-12-18 Thread Chris Lee
foreach( $array_name as $pos = $val ) echo input type=hidden name='array_name[$pos]' value='$val' ; or use sessions. -- Chris Lee [EMAIL PROTECTED] Gkin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I want to pass through an array with

[PHP] Re: sessions

2001-12-18 Thread Chris Lee
take a look at my session.egn file. http://www.mediawaveonline.com/examples/ -- Chris Lee [EMAIL PROTECTED] Anthony [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need some help with sessions. I read the sections in the manual and searched for

[PHP] Re: Cookie Retrieval

2001-12-18 Thread Chris Lee
I know this isnt answering your question, but skip cookies and goto sessions, easier to work with. now the answer to your question, you need to set the domain and path on your setcookie() setcookie('name', 'value', $exp, '/', $SERVER_NAME); -- Chris Lee [EMAIL PROTECTED] Steve Osborne

[PHP] Re: php sessions limit

2001-12-18 Thread Chris Lee
its irrelevant. now there is a file system dependancy. in linux is inodes, not enough and you'll have some problems, win2k I dont know. -- Chris Lee [EMAIL PROTECTED] Aaustin [EMAIL PROTECTED] wrote in message

[PHP] Re: Single character input on command line

2001-12-18 Thread Chris Lee
take them from the arguments list $argv[] I know its not what you asked, its just what I answered. -- Chris Lee [EMAIL PROTECTED] August Zajonc [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Interested in getting a single character at a time on the

[PHP] Re: http referer problems

2001-12-18 Thread Chris Lee
break it down. if ( $ef != 'nm' ) echo a : $efbr; else echo b : $ef br; if ( $HTTP_REFERER != 'http://www.globalhealth.org/news/article.php3?id=1526' ) echo c : $HTTP_REFERERbr; else echo d : $HTTP_REFERERbr; now you can see where the bug is. -- Chris Lee [EMAIL PROTECTED]

[PHP] Re: Logout problem

2001-12-18 Thread Chris Lee
Header(WWW-Authenticate: Basic realm='$SERVER_NAME' ); Header(HTTP/1.0 401 Unauthorized); is the proper http auth hearders, change the realm and you'll have to re-authenticate. -- Chris Lee [EMAIL PROTECTED] J.F.Kishor [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Header redirecting with POST

2001-12-18 Thread Chris Lee
2k is alot of data to be sending using GET or POST, just leave it on the server in a session variable. redirect server 2000 bytes - client GET client 2000 bytes - server or via sessions redirect server 50 bytes - client GET client 50 bytes - server -- Chris Lee [EMAIL PROTECTED] Jim

[PHP] Re: need some help

2001-12-18 Thread Chris Lee
I'll try and answer your questions as will the rest off the forum Im sure, just post away. -- Chris Lee [EMAIL PROTECTED] Melva Garcia [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am looking for a mentor to help me along with using php and mysql i

[PHP] Re: max # of characters for links to work in emails?

2001-12-18 Thread Chris Lee
a good guess would be every email client does it differnetly. unfort Id have to say try it yourself. Id imagine its long enough that you shouldnt have to worry about it, but I could be wrong. -- Chris Lee [EMAIL PROTECTED] Tom Churm [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Using @file

2001-12-18 Thread Chris Lee
haha, I bet it cant resolve, and I doubt it works on other machines :) www.myserver,com www.myserver.com see the diff? ditch the comma and put a period in insted :) trust me it happens to the best of us. -- Chris Lee [EMAIL PROTECTED] Jeff Lewis [EMAIL PROTECTED] wrote in message

[PHP] Re: Rational Rose plugin for generating php code ?

2001-12-18 Thread Chris Lee
configure --help ie. nope, nothing there. -- Chris Lee [EMAIL PROTECTED] Arne Brune Olsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Does anyone know if there is a module for rational rose for generating php code from UML diagrams ? Arne --

[PHP] Re: What is the best way to reorder table columns...temp tables?

2001-12-18 Thread Chris Lee
man that is nasty, but imho because of the constant in and out of php echo a href='$PHP_SELF?reports.php?userid=$useriddate_start=$date_startdate_end=$ date_endorder_by=trans_per_req%20descgroupby=$groupbytype=otherdaterange =$daterange'link /a ; I came across this same problem, I hate the

[PHP] Re: PHP and plugin detection

2001-12-18 Thread Chris Lee
it has to be done via javascript. javascript = clientside php = serverside if the plugins are on the clientside then javascript is needed. and no, sorry, I dont know how. -- Chris Lee [EMAIL PROTECTED] Daniel Reichenbach [EMAIL PROTECTED] wrote in message

[PHP] preg_grep() and limit parameter

2001-12-18 Thread Andrei Zmievski
Does anyone see a need for a limit parameter to preg_grep() that would limit the number of array entries returned? -Andrei * My wishlist: http://www.amazon.com/exec/obidos/wishlist/2Q2DIPY7BZLSH/ * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: Still need help with miscount

2001-12-18 Thread Chris Lee
need more info buddy. does this query work at the mysql command prompt? show us an example, show us 10 records and accual query being exec and what the returned result is and what you think it should be. -- Chris Lee [EMAIL PROTECTED] Fîk ì?çìsâî [EMAIL PROTECTED] wrote in message

[PHP] Re: Text file busy

2001-12-18 Thread Chris Lee
try php.ca or any of the other mirrors when php.net is down. I bet you got that file your running open in an editor eh? close the file in the editor then run the file, no problems. -- Chris Lee [EMAIL PROTECTED] Boaz Yahav [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: including outside pages

2001-12-18 Thread Chris Lee
include() will not handel ssl. include() on a remote site obv. will not transer access to the variables to the remote site. your best bet is to encode your session, session_encode(), and either store it in a common mysql table that both servers have access to (best method) or to pass it in the

[PHP] Re: Header error while creating an Image

2001-12-18 Thread Chris Lee
you dont have output buffering on, check php.ini or add it manually to an .htaccess. -- Chris Lee [EMAIL PROTECTED] J.F.Kishor [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hello, I'am trying to create an image using php image functions it gives a

[PHP] Re: MySQL Native Function in PHP Query Not Working?

2001-12-18 Thread Chris Lee
that command doesnt even work from the mysql command prompt for me, Ive never used LAST_INSERT_ID(), but it dont work for me. try it on your mysql command prompt. -- Chris Lee [EMAIL PROTECTED] Ise [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello,

[PHP] Re: PHP module for modem???

2001-12-18 Thread Chris Lee
configure --help in other words, no. but there is nothing from stopping you from writing a module :) im sure there are others out there that would like such a feature, ie for fax's -- Chris Lee [EMAIL PROTECTED] Scott Fletcher [EMAIL PROTECTED] wrote in message [EMAIL

RE: [PHP] preg_grep() and limit parameter

2001-12-18 Thread Jack Dempsey
only thing i could think up would be if a user is dealing with huge amounts of text and only needs to have the first ten returned, returning/continuing past that would be wastefulnot confident on how often this would really happen and what the actual difference would be... Jack

Re: [PHP] Smarty: Modifiers and $smarty

2001-12-18 Thread Andrei Zmievski
I found this message on php-general list, and I'm cross-posting the reply to Smarty list. I see a couple of issues with passing Smarty object to modifiers. 1. You want to use _current_file and _current_lineno member variables, but they are only defined in Smarty_Compiler class, and what

[PHP] php htpasswd

2001-12-18 Thread jtjohnston
I'm sure question has been asked. How can I edit a htpasswd (apache) file using a php script? Does anyone have a piece of code? I would like to see the crypted passwords, but will live without. Thanks, J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] php htpasswd

2001-12-18 Thread Jack Dempsey
not sure i follow...you open it with php do whatever you need and close it...its just a text file... -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 1:00 PM To: [EMAIL PROTECTED] Subject: [PHP] php htpasswd I'm sure question has been

[PHP] sql password

2001-12-18 Thread Jeremiah Jester
Im attempting to install mysql. The service started and everything seems to be going ok except for that I can't set the root password for the mysql server. Whenever i type: I get the following error: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] php htpasswd

2001-12-18 Thread jtjohnston
Jack, not sure i follow...you open it with php do whatever you need and close it...its just a text file... It's not just a text file delimited by a colon. You can indeed just type: user:password but it should be: user:crypt(password) When I perled, I knew how to database a text file

[PHP] sql password

2001-12-18 Thread Jeremiah Jester
Im attempting to install mysql. The service started and everything seems to be going ok except for that I can't set the root password for the mysql server. To reset password i type: /usr/bin/mysqladmin -u root -p mypassword Then I get the following error: /usr/bin/mysqladmin: connect to

Re: [PHP] php htpasswd

2001-12-18 Thread Chris Lee
? include_once('cookie.egn'); include_once('database.egn'); function bad_passwd() { echo You have entered an invalid password.br\n; exit(); } if ( isset($PHP_AUTH_USER) AND isset($PHP_AUTH_PW) AND $peop_r = fetch_db_value('people_manager', WHERE username = '$PHP_AUTH_USER' AND

[PHP] Email-based PHP-Script

2001-12-18 Thread J.Mueller, pro.vider.de GmbH
Hello List, I'm currently trying to setup a script which is processing incomming emails. So I setup PHP as CGI and did configurate the email like robot |/path/to/the/script.php The little testscript I tried looks like that: ? $fp = fopen(php://stdin,r); while (!feof($fp)) { $BUFFER =

Re: [PHP] Email-based PHP-Script

2001-12-18 Thread Attila Strauss
Hi http://www.linuks.net/robot.phps best regards attila strauss Hello List, I'm currently trying to setup a script which is processing incomming emails. So I setup PHP as CGI and did configurate the email like robot |/path/to/the/script.php The little testscript I tried looks like

[PHP] Error while calling a function

2001-12-18 Thread J.F.Kishor
hi all, I have got a problem, when I execute the following script it gives a Fatal error, could any one tell me why is it ?, If this is a silly problem please execuse me but, plz do reply me. The script is - html body ? if(!$Phone) { ? form action=?echo $PHP_SELF?

[PHP] how to get postscript to work with php/gd?

2001-12-18 Thread Joelmon2001
Does anybody know? I know gd I edit the makefile and can support older version of freetype however, for certain reasons I can't install freetype 2, and I was considering postscript fonts Does anybody know from experience how to get gd/php working with them? the goal is just better font

[PHP] while...if statements???

2001-12-18 Thread Jay Fitzgerald
Does anyone know why this isn't working?? What I am trying to do is display photos from a database based on each month. This part works fine when I set it to the current month of December (today) as that is when I uploaded the photos. However, when I manually set the date to a month that has

[PHP] Re: [PHP-DB] while...if statements???

2001-12-18 Thread Jim Lucas
I would do a mysql_num_row(); on your results to see if it returning anything at all. Jim - Original Message - From: Jay Fitzgerald [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 12:08 PM Subject: [PHP-DB] while...if

Re: [PHP] Error while calling a function

2001-12-18 Thread Steve Cayford
I don't know all the details about how PHP compiles a program, but having your function definitions in an if-else statement that may not be executed looks suspicious to me. You've got if(!$Phone) { do something } else { function is_phone() { ...blah, blah...} } is_phone($Phone); If

Re: [PHP] Error while calling a function

2001-12-18 Thread Jim Lucas
Try putting a closing ? php tag just before the final HTML. Jim - Original Message - From: J.F.Kishor [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 5:26 AM Subject: [PHP] Error while calling a function hi all, I have got a problem, when I

[PHP] Working with designers...

2001-12-18 Thread Mike Eheler
Hi There, I'm looking for some community feedback on being a coder working with designers. Techniques that work that allow my php-inept page/graphic designer comrade make changes to the layout of the page without destroying my code, or requiring me to make any changes whatsoever. Or what is

[PHP] Re: sql password

2001-12-18 Thread Mike Eheler
yeah if you just installed, root doesn't have a password.. so you need to not specify -p (this tells the server to try and authenticate with an empty password, as opposed to attempting to authenticate with no password.. there is a difference): mysqladmin -u root password mypassword Mike

Re: [PHP] Working with designers...

2001-12-18 Thread jimtronic
I try to seperate the php code from the html as much as possible. So, if a page is dynamic, have php figure out the dynamic parts first, put them into variables such as $html, or $pull_down_menu, or whatever. Then all that needs to replaced in the html is that section. HTML coders aren't

Re: [PHP] Working with designers...

2001-12-18 Thread Mike Eheler
They sound like good ideas, with one quisp.. the sites are currently being designed in *shudder* Dreamweaver. They absolutely refuse to chop files up into header/footer includes, and they want to be able to do all their colour customisation through their beloved .css files. Mike Jimtronic

[PHP] Re: while...if statements???

2001-12-18 Thread Chris Lee
because the while() statement works like this - do something while x is true. if x is not true dont do anything. - do something while conent is in the db. if there is no conent in the db dont do anything. your if() statement is never run if there is no content. $return =

Re: [PHP] Error while calling a function

2001-12-18 Thread Fred
Steve is right on the money. Your function definitions are inside a conditional if statement which means that they may or may not be parsed. Your call to the function, on the other hand, is not within that same conditional if statement. That means your functions is getting called

[PHP] 4.10

2001-12-18 Thread Mark
Hi, I'm trying to build php 4.10 with Ming support. (the ming I get from cvs that is supposed to work with 4.10) I build ming and follow the instructions in the Readme file. then I move into php and go: ./configure --with-apache=../apache_1.3.22 --with-gd --with-ming=../ming I get the following

Re: [PHP] Working with designers...

2001-12-18 Thread Fred
Yikes! You mean they don't use a text editor to for html? Seriously, you do have two choices here and I certainly prefer the one suggested below. You may have to talk to the project manager about the designer's refusal to allow thier precious dreamweaver source files to be chopped up. On the

[PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread M
Hello, I posted a question some days ago, but no answers received. I notice many people discussing OPEN_BASEDIR apache restriction here, but all discussion are from server admin point of view. Let me ask question in another way: Is it possible to tell HTTP FORM command the complete

[PHP] 4.10

2001-12-18 Thread Mark
sorry, jumped the gun on that last one... Hi, I'm trying to build php 4.10 with Ming support. (the ming I get from cvs that is supposed to work with 4.10) I build ming and follow the instructions in the Readme file. then I move into php and go: ./configure --with-apache=../apache_1.3.22

Re: [PHP] Working with designers...

2001-12-18 Thread Mark
well, you don't have to wade through all that html, just put an include() in there to a file that has all the php in it. then dreamweaver should leave it alone. really if they don't want to chop the files up into header/footer that shouldn't bother you, it makes their job harder since they have

[PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi
Hello, folks! I installed PHP4 on Windows 98 with PWS4. When I try to run a very simple script, I got a just one line error message One of the library files needed to run this application cannot be found. The script is very simple: ? phpinfo(); ?, so I don't think the error has anything to do

Re: [PHP] Working with designers...

2001-12-18 Thread Steve Osborne
As a designer and a coder, I have always found that it is easiest to have the layout of the page done before adding the dynamic content. If the layout is done correctly, it should not be necessary to put in sample data that has to be removed after. After joining the workforce, as a database

[PHP] Re: postgres session handling

2001-12-18 Thread Yasuo Ohgaki
You have bug in your session handler script. In code exchange at zend.com, you can find mine. Search HTTP section. BTW, I'll add pgsql session handler module. Anyone could use PosrgreSQL for session storage w/o writing script from 4.2.0. It's written in C and more efficient ;) James Gregory

[PHP] Re: postgres session handling

2001-12-18 Thread Yasuo Ohgaki
For reference, I attached README for pgsql session save handler. It's NOT in 4.2.0-dev, yet. James Gregory wrote: I have need to get php to use postgres to store session information. I've changed the directive in php.ini and written a set of functions that should do the job and I've made

[PHP] Crashing in Win2K with IIS and latest PHP installed when loading an open page...

2001-12-18 Thread Martin Hughes
Help!!! If I'm editing a php file have it open (or have recently done so) in notepad sometimes when i do reload or open the file in IE6 my computer pauses for a second, then shuts itself off with a resounding click of the hard disks and promptly restarts. I don't think it's a disk problem - it

[PHP] JavaScript php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Martin Hughes
How could I write the function windowPopup(XX) where XX is a variable that can change from link to link, for a popup info window to load a php file with the variable XX in the url? So the link would look like: a href=javascript:windowPopup(XX);Link Text/a and I want that link to open the page

  1   2   >