[PHP] Re: fgets()

2002-11-03 Thread Erwin
Khalid El-Kary wrote: > hi, > i want to open a remote file using fopen() i tried both of these ways > > $filename="http://www.domain.com/filename.txt";; > $file=fopen($filename,"r"); > $filecontents=fread($file,filesize($filename)); > > this one didn't work because it's apparent that the file isn

[PHP] Re: Session cookies

2002-11-03 Thread Erwin
> When the user logs in , i create a session with session varialbles, > the session cookie is saved on clients computer. > > When i log off i say > > session_unset(); > session_destroy(); > setcookie(session_name()); > > The session in the tmp is deleted , but the cookie is still there , i > know t

[PHP] fgets()

2002-11-03 Thread Khalid El-Kary
hi, i want to open a remote file using fopen() i tried both of these ways $filename="http://www.domain.com/filename.txt";; $file=fopen($filename,"r"); $filecontents=fread($file,filesize($filename)); this one didn't work because it's apparent that the file isn't in the local file system so filesi

RE: [PHP] phpinfo

2002-11-03 Thread David Russell
Been there, done that. Didn't help... I was told (off list) that it is because php4.2.3 is compiled with Apache 1.3.24. is this possible? It is definitely Apache 1.3.27 (404 error message returned the version number), but php is not reporting as such. Thanks again David Russell IT Support Manag

[PHP] Session cookies

2002-11-03 Thread Shaun
Hi, When the user logs in , i create a session with session varialbles, the session cookie is saved on clients computer. When i log off i say session_unset(); session_destroy(); setcookie(session_name()); The session in the tmp is deleted , but the cookie is still there , i know this because wh

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread @ Edwin
Perhaps? But you don't really need the parenthesis ;) - E "Justin French" <[EMAIL PROTECTED]> wrote: > on 04/11/02 4:15 PM, @ Edwin ([EMAIL PROTECTED]) wrote: > > > Hello, > > > > Could it be that because you have a blank line between > > > >> require_once "classes/HtmlTemplate.class"; > >

Re: [PHP] Phpmyadmin HELP!!!

2002-11-03 Thread Jason Wong
On Monday 04 November 2002 07:16, Rodrigo de Oliveira Costa wrote: > Hi people, > > After I installed phpmyadmin on my computer that runs an Apache I've worked > almost everything out. The only problem I seem to have is that when I > create a Database I can't put more than 8 columns and if I do it

Re: [PHP] Re: Cookies disabled, new session ID each click!

2002-11-03 Thread Jason Wong
On Monday 04 November 2002 10:24, Steve Fatula wrote: > If you want to see a site where the small program works (and be SURE and > turn cookies off), click here: > http://www.thewebmakerscorner.com/snapmods_new/default_test.php > > > So, can anyone tell me why it does not work on MY site(s)? Any id

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Justin French
on 04/11/02 4:15 PM, @ Edwin ([EMAIL PROTECTED]) wrote: > Hello, > > Could it be that because you have a blank line between > >> require_once "classes/HtmlTemplate.class"; Shouldn't it be require_once("classes/HtmlTemplate.class"); ??? Justin -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Global Variables Off

2002-11-03 Thread @ Edwin
Hello, "Paul" <[EMAIL PROTECTED]> wrote: > OK I guess I am closer = the variable is being passed as I tested but I > guess is failing on the test: > > if (isset($_GET["error_message"])) > What do you mean by "failing on the test"? What are you trying to accomplish, btw? How are you testing it? Al

Re: [PHP] re:[PHP] uploading help please again

2002-11-03 Thread Jason Wong
On Monday 04 November 2002 11:04, rija wrote: > You might receive 2 files throught upload, > then the first file name should be $_FILES['origem'] ; > and the second file name $_FILES['origem2'] ; > > To use the different variables you can use, peer John Holmes's answer, > there aren't no full answe

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread @ Edwin
Hello, Could it be that because you have a blank line between > require_once "classes/HtmlTemplate.class"; > > if ($HTTP_SESSION_VARS[user_id]){ ? (Or even some blank lines or spaces before "require_once".) Just guessing... - E -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Threads

2002-11-03 Thread Rasmus Lerdorf
Nope On Mon, 4 Nov 2002, Khalid El-Kary wrote: > hi, > > i would like to ask about PHP threads support, is there any threads support, > how powerful, please redirect me to the right place > > thanx > > khalid > > _ > Unlimited Intern

[PHP] Threads

2002-11-03 Thread Khalid El-Kary
hi, i would like to ask about PHP threads support, is there any threads support, how powerful, please redirect me to the right place thanx khalid _ Unlimited Internet access -- and 2 months free!  Try MSN. http://resourcecenter.m

Re: [PHP] radio buttons from MySQL query?

2002-11-03 Thread John Nichel
Belay that. I didn't notice the do / while loop inside of the if statement. I don't know if this is prettier, but I would echo out the radio button in one line echo ( "" . $row["descript"] . "\n"; David Jackson wrote: OK, this works but there has to be a pretty way? John, I'm not sure wha

Re: [PHP] radio buttons from MySQL query?

2002-11-03 Thread David Jackson
OK, this works but there has to be a pretty way? John, I'm not sure what you mean about the while loop? David - Works - Operation Sticky Bun Operation Sticky Bun '; $header = mysql_query ("SELECT * FROM chart ORDER BY acct "); if ($row = mysql_f

Re: [PHP] Global Variables Off

2002-11-03 Thread rija
I think your machine is blasted - Find out an exorcist or a witch or move out to other program- - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: "'John Nichel'" <[EMAIL PROTECTED]> Cc: "'Chris Shiflett'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 04, 2002 3:0

[PHP] More on cleaning Windows characters...

2002-11-03 Thread a . h . s . boy
After considerable investigation into the form input of non-Latin 1 characters to be processed by PHP on a Linux box, I've been able to distill the issue down considerably, though a solution (and one oddity) remains confusing. I found a very helpful web page entitled "On the use of some MS Wind

Re: [PHP] radio buttons from MySQL query?

2002-11-03 Thread rija
oups ... you're right ! - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "php" <[EMAIL PROTECTED]>; "David Jackson" <[EMAIL PROTECTED]> Sent: Monday, November 04, 2002 2:57 PM Subject: Re: [PHP] radio buttons from MySQL query? > There is no reason

RE: [PHP] Global Variables Off

2002-11-03 Thread Paul
OK I guess I am closer = the variable is being passed as I tested but I guess is failing on the test: if (isset($_GET["error_message"])) Thank you for all your help Paul -Original Message- From: Chris Shiflett [mailto:shiflett@;php.net] Sent: Sunday, November 03, 2002 11:08 PM To: Paul

Re: [PHP] Global Variables Off

2002-11-03 Thread Justin French
Try these two simple tests, with the url test.php?test=foo And show us the results. Justin on 04/11/02 1:54 PM, Paul ([EMAIL PROTECTED]) wrote: > I am passing it via URL as: http://example.org/test.php?test=foo > > When I do that call to $_GET["test"] shows that variable is not set,

Re: [PHP] Global Variables Off

2002-11-03 Thread Chris Shiflett
I assume you mean that the echo statement I gave as an example shows this: The test variable is [] Right? If so, that is truly odd, especially considering you are using 4.2.3. I don't have a good answer for that ... Add this code to the top of your script to see if PHP thinks the client is pas

RE: [PHP] Global Variables Off

2002-11-03 Thread Paul
Makes no difference..I tried them both -Original Message- From: John Nichel [mailto:jnichel@;by-tor.com] Sent: Sunday, November 03, 2002 10:59 PM To: Paul Cc: 'Chris Shiflett'; [EMAIL PROTECTED] Subject: Re: [PHP] Global Variables Off Try single quotes... $_GET['test'] Paul wrote: > I

Re: [PHP] Global Variables Off

2002-11-03 Thread John Nichel
Try single quotes... $_GET['test'] Paul wrote: I am passing it via URL as: http://example.org/test.php?test=foo When I do that call to $_GET["test"] shows that variable is not set, however, when I run phpinfo() it shows value assigned to _GET. With no change in code, I turn global variables 'on

Re: [PHP] radio buttons from MySQL query?

2002-11-03 Thread John Nichel
There is no reason to put brackets behind the name of the radio element. The brackets are neccessary for multi-select elements like checkboxes, but radio buttone are a single select element. Your if statement should be a while loop. I'm sure you don't want to set this ( value=acct[] ) as the val

RE: [PHP] Global Variables Off

2002-11-03 Thread Paul
I am passing it via URL as: http://example.org/test.php?test=foo When I do that call to $_GET["test"] shows that variable is not set, however, when I run phpinfo() it shows value assigned to _GET. With no change in code, I turn global variables 'on' and the same page works.. Paul PS using php 4.

Re: [PHP] Error in code - Seems simple enough

2002-11-03 Thread rija
This is rather problem about javascript than PHP - But I think that you need to use double quotes (escaped) to distinguish query and variables in your javascript query: Try out this, It work fine for me: if(!isset($HTTP_SESSION_VARS['svUserAccess'])){ echo "Login"; } else { echo "Logout"; w

Re: [PHP] radio buttons from MySQL query?

2002-11-03 Thread rija
I don't think so, Put the bracket with your radio's name not with your the value/// For example : print "{$row['acct']}" ... and so one/ - Original Message - From: "David Jackson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 04, 2002 1:15 PM Subject: [PHP] radio butt

Re: [PHP] Global Variables Off

2002-11-03 Thread Chris Shiflett
You didn't really tell us how you're passing data or what is not working. Try this. Create a test script called test.php that looks like this: echo "The test variable is [" . $_GET["test"] . "]"; ?> Assuming this script is located at http://example.org/test.php, access this page using a URL li

[PHP] Global Variables Off

2002-11-03 Thread Paul
Ok, I have turned global vars off and I have replaced my old $HTTP_GET_VARS with $_GET[] but I seem to not get the values passed. I run the phpinfo and I see the variables being stored as _GET["variable_name"] Is calling $_GET["variable_name"] correct? If so, why would I not get the value? I use

[PHP] re:[PHP] uploading help please again

2002-11-03 Thread rija
You might receive 2 files throught upload, then the first file name should be $_FILES['origem'] ; and the second file name $_FILES['origem2'] ; To use the different variables you can use, peer John Holmes's answer, there aren't no full answer like this anywhere? to ask if file uploaded is ok uplo

Re: [PHP] Error in code - Seems simple enough

2002-11-03 Thread vernon
That's the thing, everything works but the error message keeps coming up? Runtime Error: Syntax Error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] trouble with maximum_execution_time and file upload

2002-11-03 Thread Eduardo M. Bragatto
I've send an e-mail with a doubt related with the "maximum_execution_time" variable but it has no answers, so, I'm submiting it again... I'm using a single php script to send files named upload.php, here is the source code: set_time_limit(500); copy($userfile, "log\\$userfile_name");

RE: [PHP] Error in code - Seems simple enough

2002-11-03 Thread John W. Holmes
And the error is?? > -Original Message- > From: vernon [mailto:vernon@;comp-wiz.com] > Sent: Sunday, November 03, 2002 9:28 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Error in code - Seems simple enough > > I'm having trouble with the following code dispalying an error, which I > don't u

[PHP] Images retrieved from MYSQL database using PHP becoming corrupted.

2002-11-03 Thread Darren McPhee
I have spent the last 3 days trying to figure this out. And will probably give up very soon. I have written 2 programs (which are very common PHP programs) that A) Allows me to upload image files into a MYSQL database using a simple form. And B) Allows me to retrieve and display the image using

[PHP] Error in code - Seems simple enough

2002-11-03 Thread vernon
I'm having trouble with the following code dispalying an error, which I don't understand because the code actually works (other than the error). Any ideas? Login"; } else { echo "Logout"; } ?> Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] Re: Cookies disabled, new session ID each click!

2002-11-03 Thread Steve Fatula
If you want to see a site where the small program works (and be SURE and turn cookies off), click here: http://www.thewebmakerscorner.com/snapmods_new/default_test.php So, can anyone tell me why it does not work on MY site(s)? Any ideas? Surely this is a PHP configuration issue/bug perhaps? Lo

[PHP] radio buttons from MySQL query?

2002-11-03 Thread David Jackson
How do I go about building radio buttons using the results of a MySQL query. The record layout looks like this: acct cat description I want to use acct as the value="acct" in the input statement for the radio box. The code below almost works? TIA, David $header = mysql_query ("SELECT * FROM

[PHP] FTP Search

2002-11-03 Thread Manuel Jenne
Hi, i wont to find a special Dir on many FTP Server's over PHP. For searching my Server's have an site command like "site dupe "Dirname"" But if I try it with ftp_site I get only a bool back and not the search result. With a ftp_nlist I can't search Dir's only files. And with ftp_rawlist I get

Re: [PHP] Add content thru e-mail

2002-11-03 Thread Timothy Hitchens (HiTCHO)
The simplest way to do this to setup a pop3 account and have a php script check this account at intervals via cron. Or you could write a pipe script via aliases. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] On Sun, 3 Nov 2002, Rodrigo de Oliveira Costa wrote: > Hi people, i'd like to know if t

RE: [PHP] uploading help please again

2002-11-03 Thread John W. Holmes
That's because $_FILES['origem'] is an array. It will have the following elements, where 'userfile' is 'origem' in your case: $_FILES['userfile']['name'] The original name of the file on the client machine. $_FILES['userfile']['type'] The mime type of the file, if the browser provided this info

[PHP] Add content thru e-mail

2002-11-03 Thread Rodrigo de Oliveira Costa
Hi people, i'd like to know if there is a way to add content to a database thru sending an e-mail, and if there is how it would be done. Thanks, Rodrigo

[PHP] uploading help please again

2002-11-03 Thread marcelo
Ok I'm back This script is to upload 2 image files Whit register_globals = on it Works fine script A "p.php" Jornal O Leme      

Re: [PHP] Re: Send $out embedded in a mail in HTML FORMAT

2002-11-03 Thread Kevin Fradkin
Thanks a lot!!.. finally.. i found what i was looking! nice having people who can help us! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Your opinion on globals/reference

2002-11-03 Thread rolf vreijdenberger
but what if you decide later you want more objects or globals in your function?? your parameter list could get quit long! -- Rolf Vreijdenberger De Pannekoek en De Kale W: www.depannekoekendekale.nl "Gerard Samuel" <[EMAIL PROTECTED]> schreef in bericht news:3DC54436.2090803@;trini0.org... > Somet

[PHP] Re: Cookies disabled, new session ID each click!

2002-11-03 Thread Steve Fatula
Oleg and anyone else, PLEASE READ THE POST. This is vendor software, this is what it does, it doesn't matter if it's the way you would do it, if it is the best way, or anything else. So, please tell me why the short program I uploaded as an example does or does not work for you. Steve Oleg K

Re: [PHP] Kxparse 0.2

2002-11-03 Thread Justin French
Haven't we heard about this a few times now? on 04/11/02 5:45 AM, Khalid El-Kary ([EMAIL PROTECTED]) wrote: > hi, > > i want to just tell you about the new release of Kxparse (a XML parser) > you can find everything about the new release here > > http://creaturesx.ma.cx/kxparse/ > > khalid >

RE: [PHP] Re: XSLT Sablotron output

2002-11-03 Thread Mark Charette
There's nothing to "solve"; without the complete XML doc & the XSL stylesheet, there's no way to know if in fact everything is being parsed as expected. I don't know if it's CDATA, xsl:text, a strip-spaces directive, etc. And ... I'd expect anyone using XML & XSL to double check and re-reference al

Re: [PHP] Multiple Addresses Mailer

2002-11-03 Thread Manuel Lemos
Hello, On 10/31/2002 01:53 PM, Olinux wrote: I've never met an ISP that would refuse bulk mailing, as long as you can proove that you've got concent from the receivers for the messages. My mail server handles all the concent things itself, and sofar my ISPs have not complained about the up to 3 d

Re: [PHP] Multiple Addresses Mailer

2002-11-03 Thread Manuel Lemos
Hello, On 10/31/2002 10:09 AM, -<>- wrote: You are contradicting yourself. Most mailing list programs put all recipients in Bcc: and queue only on message, so it is the same thing that you are recommending against and for it. But most listservers generate a new message for each receiver. Most

[PHP] Phpmyadmin HELP!!!

2002-11-03 Thread Rodrigo de Oliveira Costa
Hi people, After I installed phpmyadmin on my computer that runs an Apache I've worked almost everything out. The only problem I seem to have is that when I create a Database I can't put more than 8 columns and if I do it simply doesnt accept it. Another problem that it looks like I'm having i

Re: [PHP] fread() fails with large files

2002-11-03 Thread rija
Use readfile instead fread() if you've got some problem with, it looks better! Header("Content-Type: $type"); Header("Content-Disposition: attachment; filename=$downloadname"); header("Content-Length: $size"); header("Content-Transfer-Encoding: binary"); readfile($file); - Original Message -

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Chris Shiflett
Paul, Something I don't think others have mentioned yet is tht a common reason for this error is when there is an error somewhere in your script prior to the header() call. Because PHP will output the error to the screen (assuming you don't have any special error handling), it might not be you

php-general Digest 3 Nov 2002 22:57:54 -0000 Issue 1683

2002-11-03 Thread php-general-digest-help
php-general Digest 3 Nov 2002 22:57:54 - Issue 1683 Topics (messages 122547 through 122581): Send mail in HTML FORMAT 122547 by: Kevin Fradkin 122566 by: Jennifer Swofford Variables 122548 by: Bryan McLemore 122550 by: David Jackson 122553 by: Hugh Da

[PHP] Re: Send $out embedded in a mail in HTML FORMAT

2002-11-03 Thread Manuel Lemos
Hello, On 11/02/2002 10:52 PM, Kevin Fradkin wrote: I read from a template, insert data and save it as a new file with html code... i want to send that file that is the same as $out via mail embedded in it... i do $fifi = fopen ('/'.$cursada.$cuatrimestre.'/'.$registronro.'.htm', "w"); $fp = $f

Re: [PHP] Geographic IP location

2002-11-03 Thread Mika Tuupola
On Sat, 2 Nov 2002, olinux wrote: > I am looking for a way to determine the geographic > location based on IP address. I understand that 100% > accuracy is impossible. There is a Net_Geo PEAR class, which uses CAIDA data. http://pear.php.net/package-info.php?pacid=55 --

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Hugh Danaher
Paul, Got any spaces or lines above the " To: <[EMAIL PROTECTED]> Sent: Sunday, November 03, 2002 9:53 AM Subject: [PHP] Am I blind? simple 15 line code producing error > Perhaps I am blind but I have the following simple code that gets me > errors: > session_start(); > require_once ("config.inc

Re: [PHP] ASTemplate

2002-11-03 Thread Jonathan Sharp
Benchmarks? -js Adam Atlas wrote: > First post!!! Um, yeah... anyway... > > Hi people, I just got a beta of my ASTemplate code out. It's a PHP > template system that uses an XML-based format to specify template format > and text files (that can be HTML or any other text format) that make up > t

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Jason Wong
On Monday 04 November 2002 02:25, Paul wrote: > Yes, I use those in other pages with no problem..it just this page > causes some problems.. > > -Original Message- > From: Sascha Cunz [mailto:Sascha@;GaNoAn.org] > Sent: Sunday, November 03, 2002 1:03 PM > To: Paul; [EMAIL PROTECTED] > Subjec

[PHP] Re: XSLT Sablotron output

2002-11-03 Thread Daniele Baroncelli
No one replied yet, so I suppose no one was able to solve this. By the way, is there anyone that actually experienced the same situation? Cheers Daniele "Daniele Baroncelli" <[EMAIL PROTECTED]> wrote in message news:20021102212518.34728.qmail@;pb1.pair.com... > Hi guys, > > I have typed a si

[PHP] Kxparse 0.2

2002-11-03 Thread Khalid El-Kary
hi, i want to just tell you about the new release of Kxparse (a XML parser) you can find everything about the new release here http://creaturesx.ma.cx/kxparse/ khalid _ Surf the Web without missing calls! Get MSN Broadband.

[PHP] ASTemplate

2002-11-03 Thread Adam Atlas
First post!!! Um, yeah... anyway... Hi people, I just got a beta of my ASTemplate code out. It's a PHP template system that uses an XML-based format to specify template format and text files (that can be HTML or any other text format) that make up the body of its output. If you're looking for a

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Sascha Cunz
> Yes, I use those in other pages with no problem..it just this page > causes some problems.. Do you use Header('Location:...') in those other scripts? I can't see any reason inside the script you posted, that could produce this behaviour. Can you try it without the two require's, just to be sur

RE: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Paul
Yes, I use those in other pages with no problem..it just this page causes some problems.. -Original Message- From: Sascha Cunz [mailto:Sascha@;GaNoAn.org] Sent: Sunday, November 03, 2002 1:03 PM To: Paul; [EMAIL PROTECTED] Subject: Re: [PHP] Am I blind? simple 15 line code producing error

Re: [PHP] Fwd: Quarter question..

2002-11-03 Thread Jim Hatridge
Hi JS et al... Thanks! This was what I was looking for. Also thanks for the color code, much smaller! JIM On Saturday 02 November 2002 18:54, Jonathan Sharp wrote: > try this: > > -js > > > $i = 0; > while ( $myrow = mysql_fetch_array($result) ) > { > $c = ( ++$i % 2 ? 'yellow' : 'white

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Sascha Cunz
> require_once ("config.inc"); > require_once "classes/HtmlTemplate.class"; > The error is: > Warning: Cannot add header information - headers already sent by (output > started by.. ..line 6) ...on line 12 > > Line 6 is the line with if ($HTTP_SESSION_VARS[user_id]) > L

[PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Paul
Perhaps I am blind but I have the following simple code that gets me errors: The error is: Warning: Cannot add header information - headers already sent by (output started by.. ..line 6) ...on line 12 Line 6 is the line with if ($HTTP_SESSION_VARS[user_id]) Line 12 is the line starting with head

[PHP] Calendar script - help

2002-11-03 Thread Ray Healy \(Data Net Services\)
Dear All I spent days and days on this little project but still cannot get it to work (new to PHP as you might guess). I have a script which is a combination of tutorial scripts and free code to display a calendar with colour coded cells for the events on each day. The only way to enter events

[PHP] RE: Cookies disabled, new session ID each click!

2002-11-03 Thread Oleg Krogius
You do not need to add any "SID" to your links. Those will be added automatically by the php session system when needed. -Original Message- From: Steve Fatula [mailto:sfatula@;usa.net] Sent: Saturday, November 02, 2002 10:29 PM To: [EMAIL PROTECTED] Subject: Cookies disabled, new session

Re: [PHP] Send mail in HTML FORMAT

2002-11-03 Thread Jennifer Swofford
You also need to add the text/html header, such as: $headers = "Content-Type: text/html \r\n"; mail("[EMAIL PROTECTED]", "subject",$out , "From: website", $headers); jen > I read from a template, insert data and save it as a new file with html > code... > i want to send that file that is the sa

[PHP] Been looking for a tutorial on how to create themes in general

2002-11-03 Thread Kevin Myrick
Ok, like I stated in my last message, I am using PHPWebsite as my portal system. However, I would like to learn how to do custom themes, because like sooo many aspiring web designers/programmers, I got an imagination a mile long and deep. So, anyone want to point me in the right direction on a th

Re: [PHP] Re: need help with project

2002-11-03 Thread Kevin Myrick
Check out FFL on Sourceforge.net. Currently, it is still a standalone PHP app, but in the near/coming soon future they are going to have it as a PHPWebsite Module. That is nice for me, since I have just converted to PHPWebsite (would have used nuke, but it pissed me off when it wouldn't let me do

Re: [PHP] Geographic IP location

2002-11-03 Thread Gerard Samuel
Try GeoIP. http://www.maxmind.com/app/php olinux wrote: Hi all, I am looking for a way to determine the geographic location based on IP address. I understand that 100% accuracy is impossible. Does anyone know of a good software or service provider that provides quality geographic detection t

[PHP] Your opinion on globals/reference

2002-11-03 Thread Gerard Samuel
Something I just thought of about using global in a function. Mostly I global objects in a function like -> function foo() { global $bar_object; $bar_object->do_something(); } Is it better, more effiecient, if I pass it by reference, like -> function foo(&$bar_object) { $bar_object->do_s

Re: [PHP] Send $out embedded in a mail in HTML FORMAT

2002-11-03 Thread Jonathan Sharp
search google for 'phpmailer' (I think http://phpmailer.sourceforge.net) -js John W. Holmes wrote: > Search the archives or google for HTML email with PHP and you'll get a > ton of examples. You just have to send a Content-Type: header to tell > the mail reader it's HTML. > > ---John Holmes...

RE: [PHP] Session Management

2002-11-03 Thread Robert Samuel White
I already know how best to go about this. I've been up too long to explain this now. But since eNetwizard Content Management Server is an open source project, you'll be able to make use of its code if you so choose, just wait till I release the next version. ;-) Session Management for eNetwizar

RE: [PHP] Send $out embedded in a mail in HTML FORMAT

2002-11-03 Thread John W. Holmes
Search the archives or google for HTML email with PHP and you'll get a ton of examples. You just have to send a Content-Type: header to tell the mail reader it's HTML. ---John Holmes... > -Original Message- > From: Kevin Fradkin [mailto:kfradkin@;ciudad.com.ar] > Sent: Saturday, November

RE: [PHP] Session Management

2002-11-03 Thread John W. Holmes
> These were all the same assumptions I made, thanks. I knew that it was > more of an "HTTP" thing than a "PHP" thing when it came to the "blind > faith" thing... I was just hoping that was something "better out > there." I'm not willing to use session management as blindly as it is > currently

RE: [PHP] what i'm doing wrong? (mysql/php)

2002-11-03 Thread John W. Holmes
Don't use mysql_db_query() for one. Use mysql_select_db() and mysql_query(). Also, what's the structure of your table and how are you putting the user's login and password in the table. If you're getting that message, then that means there were no rows matched, plain and simple. It could be for a

[PHP] what i'm doing wrong? (mysql/php)

2002-11-03 Thread Mr. BuNgL3
I can't validate this two variables ($logintxt, $passwdtxt) ERROR!! Problemas na ligação á base de dados! "; } else { $pass=md5($passwdtxt); $sql="SELECT login,passwd FROM users WHERE (login='$logintxt') && (passwd='$pass')"; $result=mysql_db_query("mysite",$sql) or die (mysql_erro

[PHP] fread() fails with large files

2002-11-03 Thread Sora B. Harbater
Hi. I am using Linux/Apache with PHP 4.1.2. I have been experiencing this problem since upgrading from an earlier version of PHP 4. My script forces a download of a PDF file after looking up some info in a database. The code looks like this: $file="/path/to/file"; $fp = fopen($file, "r"); $

[PHP] max_ execution_time for scripts launched from command line

2002-11-03 Thread gap
Does the execution time limit apply to scripts that have been launched from the shell command line and run independent from the http server (that is, not as CGI and not through the server module)? If I give a script a shebang line (#!/usr/bin/php -q), and make it executable, will it run for as long

Re: [PHP] Variables

2002-11-03 Thread Hugh Danaher
Bryan, I don't think the variable has any value before assignment--it isn't zerro nor is it null. Check the manual for isset() and empty()' Hope this helps. Hugh - Original Message - From: "Bryan McLemore" <[EMAIL PROTECTED]> To: "PHP - General" <[EMAIL PROTECTED]> Sent: Sunday, November

Re: [PHP] how can me know the disbaled functions in php?

2002-11-03 Thread Rasmus Lerdorf
phpinfo() On Sun, 3 Nov 2002, Alawi wrote: > > How can me know? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how can me know the disbaled functions in php?

2002-11-03 Thread Alawi
How can me know?

[PHP] Re: Variables

2002-11-03 Thread David Jackson
Bryan McLemore wrote: What is a variables value before said value has been assigned a value? Thanks Bryan Wouldn't it be null or empty " "? Just a guess, David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies disabled, new session ID each click!

2002-11-03 Thread Steve Fatula
Not using trans_sid, but it is set for this example and it doesn't matter either way, intentionally putting the SID on the link myself, this is the way the vendor software is set up. So, I want someone to run this example, and see if it works for them, and if it does, what might be the reason i

[PHP] Variables

2002-11-03 Thread Bryan McLemore
What is a variables value before said value has been assigned a value? Thanks Bryan

[PHP] Send mail in HTML FORMAT

2002-11-03 Thread Kevin Fradkin
I read from a template, insert data and save it as a new file with html code... i want to send that file that is the same as $out via mail embedded in it... i do $fifi = fopen ('/'.$cursada.$cuatrimestre.'/'.$registronro.'.htm', "w"); $fp = $fifi; fputs ($fifi, $out . ""); fclose ($fifi); mail("[

php-general Digest 3 Nov 2002 08:44:23 -0000 Issue 1682

2002-11-03 Thread php-general-digest-help
php-general Digest 3 Nov 2002 08:44:23 - Issue 1682 Topics (messages 122532 through 122546): Re: Problem with is_dir function 122532 by: Andrew Brampton 122533 by: Roger Lewis XSLT Sablotron output 122534 by: Daniele Baroncelli Send $out embedded in a mail in HTML F

[PHP] RE: PHP 4.2.3 and Apache 2.0.43 on FreeBSD 4.7

2002-11-03 Thread Peter Black
Hello, I have been running into problems getting Apache 2.0.43 to work with PHP 4.2.3 as a module. The following is the error I get ... "Cannot load /usr/local/APACHE/modules/libphp4.so into server: /usr/local/APACHE/modules/libphp4.so: Undefined symbol "pthread_getspecific" Having said that, I