Re: [PHP] How to send POST info without a form?

2002-10-03 Thread Philippe Saladin
How can I submit POST information to a php file without using an HTML form? You would try this function (from Rasmus Lerdorf) function PostToHost($host, $path, $data_to_send) { $fp = fsockopen($host,80); fputs($fp, POST $path HTTP/1.1\n); fputs($fp, Host: $host\n); fputs($fp,

[PHP] MySQL Problem

2002-10-03 Thread OrangeHairedBoy
Hi everyone! I can't figure out why this doesn't work. The call to the CONNECT function works and it connects with no problem, and it does save the Resource ID in $this-DBLink[]...however, when CHOOSEDB is called, the Resource ID just saved is gone. $this-DBLink is just empty, and I can't figure

[PHP] -=-=-=- PHP help about Java SSL -=-=-=-=-

2002-10-03 Thread EMIN CALIKLI
Hi , I 'm using RedHat 7.2 +Apache 1.3.20 + Java 1.4.0 + PHP 4.2.1 (compiled with Java support) . I configured php for using Java. I wrote some Java code which uses SSL certificate . I can run my code from CLI (Command Line Interface) and it works fine but when I try to run from browser it

[PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
You know...maybe I should mention where this code is... I have my main file which loads using 'require.once' a second file called 'everything.php'. Inside everything.php is a class called 'mainclass' which is called by the mail file. This class ('mainclass') loads the MySQL class from the

[PHP] Re: counting number of records in a MySQL table; how do I get the result?

2002-10-03 Thread OrangeHairedBoy
Hi! $result=mysql_query(select count(*) as count from AuthNum); $a_row=mysql_fetch_object($result); $NumberOfRows=$a_row-count; if ($NumberOfRows) { /* There is at least one row */ } else { /* There are no rows */ } Hope this helps (especially the as count part in the

[PHP] Re: MORE Problems with PHP as CGI and Flash !!!!!!!!!!

2002-10-03 Thread Brian McGarvie
Yes... get him to download the latest plug-in, IE 5.0 to IE 5.5 even are weired with dynamic content even it it's a form built up from php... Neway... I suggest that he should upgrade the flash plug-in and/or IE. Rebekah Garner [EMAIL PROTECTED] wrote in message

Re: [PHP] no errors ?

2002-10-03 Thread gamin
Yes, Short tags should be On, cause ? phpinfo(); ? results in the exptected page. Still unable to understand why this is happening, here are some of the following code snippets with the errors: ?php somejunk; somemorejunk; anotherlineofjunk; ? NO ERROR REPORTED FROM PHP [results in the

Re: [PHP] Re: MySQL Problem

2002-10-03 Thread Tom Rogers
Hi, Thursday, October 3, 2002, 6:01:53 PM, you wrote: O You know...maybe I should mention where this code is... O I have my main file which loads using 'require.once' a second file called O 'everything.php'. O Inside everything.php is a class called 'mainclass' which is called by the O mail

Re: [PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
I thought someone might mention that, but that is actually correct. The problem is that the variable assigned on the line $this-DBLink[$MyVars[NAME]] = mysql_connect( $MyVars[HOST] , $MyVars[USERNAME] , $MyVars[PASSWORD] ); dissapears and can't be retreived on the line mysql_select_db(

Re: [PHP] using fopen() to download remote files

2002-10-03 Thread Marek Kilimajer
The server never sends you somethink you don't request. Simply get the page and there will be no images. If you would want to do the oposite you would have much more trouble. Rusty Small wrote: I have written a script in which the main purpose is to download html pages from multiple web

Re: [PHP] How do you strip Header Info from displaying on your browser?

2002-10-03 Thread Marek Kilimajer
Throw out everything untill you get second empty line Phil Powell wrote: If you go to http://valsignalandet.com/feedback.php you can get a clearer indication of what I am trying to get rid of. Following is my function using to produce the stuff up there, which I don't want, instead, I either

[PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
Here's a simplier version...and I'm still having a problem with it. It's driving me insane!!! :) class MySQL { function SET ( ) { $this-MYVAR = Hello World!; } function RETREIVE ( ) { print $this-MYVAR; } } $helpme = new MySQL; $helpme-SET; $helpme-RETREIVE; /* Prints NOTHING */

[PHP] Re: Trouble with understanding arrays

2002-10-03 Thread OrangeHairedBoy
Why don't you just wright your own little debug thing? foreach ($TickersCurrent as $Ticker=$Value) { print $Ticker - $Valuebr\n; } ::Lewis Christopher J. Crane [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am having problems with arrays. I

[PHP] Export email addresses from Outlook Express with PHP

2002-10-03 Thread Arnaud Castéran
Do you think it is possible to export email addresses from Outook Express with PHP. I looking for a script using COM but i only found exemples for MSOutlook. What i want to do is an address book for each members of my site (www.universemail.net a directory of email addresses) : if they have

[PHP] newbie question

2002-10-03 Thread Remon Redika
I am newbie in php I have var $query_string in my address page. I want get value of query string. For example I give string on my query string like www.mypages.com?var=numberx I just want get a value of var or numberx I usually do this var on asp request.querystring(var) , so I'll get the value

RE: [PHP] newbie question

2002-10-03 Thread M.A.Bond
It depends on the version of PHP, in older versions you just use the variable name ie in your example just use $var to access it's contents. In new versions, with register globals turned off use $_GET['var'] to access it ie: Print $_GET['var'] Will print numberx Thanks Mark -Original

Re: [PHP] newbie question

2002-10-03 Thread Scott Houseman
This is very simple To access variables from GET form, which you would use request.querystring( ) for in ASP, use the $_GET array in PHP, e.g. $var = $_GET{'var'} To access POST form values, which you would use request.form( ) for in ASP, use the $_POST array in PHP e.g. $var = $_POST{'var'}.

Re: [PHP] Incrementing the value

2002-10-03 Thread Uma Shankari T.
Hello, PNa href=Delay.php?hid=?php echo $_GET['hid']+1; ?img PNsrc=Gif/nextque.gif PN border=0/a i have written code such that initially it will display the value correspond to the value 1..after every click it will increment the value 2,3...so on..but now it is displaying the value 1

[PHP] RE: Incrementing the value

2002-10-03 Thread Tim Ward
I think you mean ++$hid, otherwise the value is inserted before it is incremented, and why not change to $_GET[hid] for future compatibility and just to make sure. Are there any scoping issues we don't know about, e.g. is this snippet within a function? Tim Ward www.chessish.com -Original

[PHP] Re: using fopen() to download remote files

2002-10-03 Thread gamin
Rusty Small [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have written a script in which the main purpose is to download html pages from multiple web servers. I'm using the fopen() function to download these pages. I would like to be able to download only

Re: [PHP] Inheritance and a class function: on what class was it called?

2002-10-03 Thread Debbie Dyer
I have just double checked my facts and in both Java and C++ you cannot access members of an ordinary class without first instantiating the class. In both cases the only way you can do so is if that class contains a member specifically declared as being special ie a class member as opposed to an

[PHP] Thank's

2002-10-03 Thread Remon Redika
Okay, IC thank's :) Scott Houseman writes: This is very simple To access variables from GET form, which you would use request.querystring( ) for in ASP, use the $_GET array in PHP, e.g. $var = $_GET{'var'} To access POST form values, which you would use request.form( ) for in

[PHP] mysql problem

2002-10-03 Thread BB
I seem to have a php-mysql problem on my new Sun Qube3 (RH Linux). php works fine, mysql works fine, apache works fine, only the combination of the three seems troublesome. php does not recognize commands like mysql_connect() when trying to start phpMyAdmin I get: cannot load MySQL extension In

[PHP] Just cant figure out how this could be happening...

2002-10-03 Thread Owen Parker
hi all have a really simple query: $twowksworth = mysql_query(SELECT updates.MODELCODE, updates.SETNO, updates.FRPICNO, updates.TOPICNO, updates.CPOSTDATE, updates.ZIPFILENAME, updates.TOTPICS, models.MODELNAME FROM updates LEFT JOIN models ON updates.MODELCODE = models.MODELCODE WHERE

Re: [PHP] Just cant figure out how this could be happening...

2002-10-03 Thread Chris Wesley
SELECT CURDATE() - 14 ... this isn't doing what you think it's doing. The CURDATE() function returns a string like 2002-10-03. Subtracting 14 from that gets you 20020989 as a result from MySQL. Pretty useless, right? If that ever worked for you, it was a total coincidence. Try this instead:

Re: [PHP] using fopen() to download remote files

2002-10-03 Thread Jason Wong
On Thursday 03 October 2002 15:00, Rusty Small wrote: I have written a script in which the main purpose is to download html pages from multiple web servers. I'm using the fopen() function to download these pages. I would like to be able to download only the source (text) and no binary data

Re: [PHP] mysql problem

2002-10-03 Thread Marek Kilimajer
Look into the logs, they should be more verbose. How did you install the three. BB wrote: I seem to have a php-mysql problem on my new Sun Qube3 (RH Linux). php works fine, mysql works fine, apache works fine, only the combination of the three seems troublesome. php does not recognize commands

RE: [PHP] Re: MySQL Problem

2002-10-03 Thread Ford, Mike [LSS]
-Original Message- From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: 03 October 2002 09:39 Here's a simplier version...and I'm still having a problem with it. It's driving me insane!!! :) class MySQL { function SET ( ) { $this-MYVAR = Hello World!; }

RE: [PHP] MORE Problems with PHP as CGI and Flash !!!!!!!!!!

2002-10-03 Thread Jay Blanchard
[snip] It is a Flash site that uses PHP for dynamically updating text in some text fields. If I can direct you to the Stallions menu---pick a horse. A page should load that has a picture of a horse on the left hand side and a green box on the right. The box on the right is dynamic text field.

RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread Jay Blanchard
[snip] Or another way if you don't want a result when it's zero. $rslt = mysql_query(SELECT count(*) as cnt FROM tbl having cnt 0); [/snip] $result = mysql_query(SELECT * FROM tbl); $number_of_rows = mysql_num_rows($result); You don't have to do the count in the SQL, as John said earlier a

Re: [PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
Well, that's just a typo...of course there should be a () to make it call a function... The whole point to my postings is that I can't get the darn variable to stay in place!!! Look where it says Prints NOTHING. Does anyone know why it doesn't print Hello World??? ::Lewis Mike Ford [EMAIL

[PHP] Two PHP questions

2002-10-03 Thread Liam . Gibbs
First of all, what exactly is get/set_magic_quotes_runtime? (I know what a get/set function does, and I know what magic_quotes does, but I'm unclear about what magic_quotes_runtime is as opposed to _gpc). Does it get the magic_quotes setting at runtime, before anything has been

[PHP] problem: readdir returns old (cached) directory listing

2002-10-03 Thread sergey
After calling unlink for a specific file in a directory on a Linux system, the file is deleted but subsequent calls to readdir return old directory listing until the script finishes. The next time I execute the script, it does not list the deleted file. But I need to reread directory just after

Re: [PHP] Two PHP questions

2002-10-03 Thread Justin French
on 03/10/02 10:55 PM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Secondly, is there any way of counting how long in pixels my page runs? Basically, my situation is this: I want to know if my page runs more than a screen and a half (or so... still deciding) of the user's screen so that I

[PHP] PHP Generated web pages

2002-10-03 Thread Peter Goggin
I want to transfer from a web page to a transient page to display a message and carry out some database updates and then transfer back to the original page after a pause of 5 seconds. Is this possible using php? Regards Peter Goggin -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread Jason D
An alternative way is to add a primary or unique key and make the code snippet like this: mysql_query(INSERT ignore into AuthNum (FirstNum, LastNum, NextNum, KeyField) VALUES (1,2,3,1),$dblink); mysql_query(Update AuthNum Set FirstNum = 1, LastNum = 2, NextNum = 3,$dbLink); If there is a

[PHP] Informix Connection

2002-10-03 Thread Mark Colvin
I have php 4.1.2 running on a linux 7.2 box. I want to make a connection to an Informix 7.2SE database running on a HP-UX 10.2 box. My issues are as follows - 1) Do I need informix software of any description running on the linux web server? 2) Can I configure the php informix modules into and up

[PHP] Novice Question

2002-10-03 Thread ThinkNetSolutions
Hello, I don't know if I'm in the right place to ask for help or not... First...I am not a hardcore coder...I'm a designer - so I'm still trying to learn the other side. :) I am being hosted on a Windows 2000 server. It supports PHP. I have a simple script (refer a friend) on a Linux server that

Re: [PHP] Novice Question

2002-10-03 Thread Justin French
Run a small phpinfo() script on both servers... take note of the version numbers being used, and take not of the config setting register_globals on both... my guess is that register_glabals is set to OFF on your local machine, being a newer install. If it isn't that, it may be an issue with the

Re: [PHP] Novice Question

2002-10-03 Thread Liam . Gibbs
First...I am not a hardcore coder...I'm a designer - so I'm still trying to learn the other side. :) I am being hosted on a Windows 2000 server. It supports PHP. I have a simple script (refer a friend) on a Linux server that works. The same script will not work on this Windows server. What's an

Re: [PHP] Informix Connection

2002-10-03 Thread Adam Williams
Speaking form experience, get ready for a few headaches on this. edit /usr/informix/etc/sqlhosts and have it look like this: demo_on onipcshmon_hostname on_servername demo_se seipcpipse_hostname sqlexec archives1 setlitcp archives1.mdah.state.ms.us sqlexec

Re: [PHP] Two PHP questions

2002-10-03 Thread Liam . Gibbs
U, it's too hard to tell -- if not impossible!! There are too many variables... font size, leading, etc etc to calculate how long your page will be and then you'd have to get information back about screen size/resolution from javascript (yuk). I thought there might be a way to compare

[PHP] how to redirect from one page to an other page in PHP ?

2002-10-03 Thread Iguider
Hi please how to redirect from one page to an onther in php ? ( like it is in ASp : redirect(../index.asp) exemple switch (condition1) { case 1; go to page page1.php; case 2; go to page page2.php; } thanks in advance

RE: [PHP] how to redirect from one page to an other page in PHP ?

2002-10-03 Thread Liam . Gibbs
I think this is what you'll want. switch (condition1) { case 1; header(Location: page1.php); case 2; header(Location: page2.php); } You need to be careful that you haven't output anything beforehand or you'll get an error message. Even having a blank line before the ?PHP tag will screw

Re: [PHP] Setting date fields in mysql queries

2002-10-03 Thread Brad Harriger
I ran the query in PhpMyAdmin. It work fine. It still doesn't work when I try to run it in another script. Frank wrote: Hi, it's a great tip to install PhpMyAdmin - or phpPgAdmin for PostgresSQL - this will only take you at most half an hour even for a newcomer. You can then

[PHP] Automatically (or dynamically ) displaying parts of web forms

2002-10-03 Thread Gregory Hernandez
Hello everyone. Does anyone know of PHP scripts dealing with dynamically displaying parts of forms? For example: A user chooses option 'C' of question 2, which then instructs the user to continue with question 5 (skipping questions 3 and 4). This being the case, the user does not need to see

Re: [PHP] Novice Question

2002-10-03 Thread 1LT John W. Holmes
Question: Does PHP4 code have to be written differently for Windows servers? If so, is there a code resource describing the differences? (the only information I can find is on installation on Win servers) No, not really. There are a few functions that won't work on windows because they

Re: [PHP] PHP Generated web pages

2002-10-03 Thread 1LT John W. Holmes
I want to transfer from a web page to a transient page to display a message and carry out some database updates and then transfer back to the original page after a pause of 5 seconds. Is this possible using php? Yes ---John Holmes

Re: [PHP] Two PHP questions

2002-10-03 Thread 1LT John W. Holmes
First of all, what exactly is get/set_magic_quotes_runtime? (I know what a get/set function does, and I know what magic_quotes does, but I'm unclear about what magic_quotes_runtime is as opposed to _gpc). Does it get the magic_quotes setting at runtime, before anything has been

Re: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread 1LT John W. Holmes
$result = mysql_query(SELECT * FROM tbl); $number_of_rows = mysql_num_rows($result); You don't have to do the count in the SQL, as John said earlier a SELECT COUNT(*) FROM tbl will always return one row, even if the value of the row is 0. Of course you could always test for that.

[PHP] Does anyone knows File Maker

2002-10-03 Thread Webmaster MBTRADINGCO
I ran yesterday into a company that wants me to implement a solution with PHP and File Maker. I don't even know if it is possible, so I was wondering: A) Does anyone has any experience with filemaker? b) Can PHP save data from internet via ODBC to a database (other than the ones it supports) in

[PHP] mcrypt vs. libmcrypt

2002-10-03 Thread Scott Fletcher
I saw on Google search result about PHP and mcrypt. I read the manual on http://php.net/mcrypt and it spoke about downloading libmcrypt and use the php configure option, --with-mcrypt= for libmcrypt-2.x.x. So, on the Google search result, one of hte posting talk about using both the libmcrypt

Re: [PHP] reg exp matching/replacing

2002-10-03 Thread Jason D
Jen, Don't use eregi_replace when str_replace will do. $contents = str_replace($matches[0][$i], $blah, $contents); Also the dots should be escaped or gif and jpg without dots before them will be matched. preg_match_all('{\/*[A-z0-9_/-]+(\.gif|\.jpg)}', $contents, $matches);

[PHP] progessive jpg

2002-10-03 Thread Sephiroth
Hi, there a way to determine if the uploaded image is a standard jpeg or a progressive image? I'm looking at the GD documentation but i can't find anything -- --- Alessandro Crugnola [sephiroth] Flash | PHP Developer http://www.sephiroth.it Team Macromedia Volunteer for Flash

Re: [PHP] Does anyone knows File Maker

2002-10-03 Thread Bill Leonard
There is something out there called FXPHP which might fill your needs: http://www.iviking.org/ on 10/3/02 11:23 AM, Webmaster MBTRADINGCO at [EMAIL PROTECTED] wrote: I ran yesterday into a company that wants me to implement a solution with PHP and File Maker. I don't even know if it is

[PHP] Complete development software

2002-10-03 Thread Ray, James A
Other then Abriasoft, is there another complete software package that contains PHP, MYSQL, APACHE and PERL for Windows? Thank you Jim

RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread Jay Blanchard
[snip] $result = mysql_query(SELECT * FROM tbl); $number_of_rows = mysql_num_rows($result); You don't have to do the count in the SQL, as John said earlier a SELECT COUNT(*) FROM tbl will always return one row, even if the value of the row is 0. Of course you could always test for that.

[PHP] Glaring problem with libmcrypt!!!

2002-10-03 Thread Scott Fletcher
Hi! I ran through the phpinfo and here's the result. That's explain why I'm unable to get most of the mcrypt functions to work. Features like mcrypt_module_open, mcrypt_list_algorithms, mcrypt_get_block_size, etc. So, what's the problem here? PHP bugs? Please spill your gut out on this one

Re: [PHP] Complete development software

2002-10-03 Thread Scott Houseman
http://www.nusphere.com/ On 10/3/2002 4:51 PM, Ray, James A wrote: Other then Abriasoft, is there another complete software package that contains PHP, MYSQL, APACHE and PERL for Windows? Thank you Jim -- //// // Scott Houseman

[PHP] DATE_FORMAT (MySQL function)

2002-10-03 Thread Mark Colvin
I'm not sure if this is a php or mysql issue but I run the following query from a php script - $query = select d1.code, d1.type, d1.descr, d1.grouptype, d1.cusref, d1.stock, d1.minstock, d1.appmeth, d1.supplier, d1.suppref, d1.leadtime, d1.price, d1.reorder, d1.code1, d1.code2, d1.notes, d1.usr,

RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread Jay Blanchard
[snip] I still think it's more effecient to use two queries in your case. One with a COUNT(*) to get total records, and one with a LIMIT to just get the 40 you want. With a smaller table, it may not matter, but with large tables, you could be using up a lot of resources by selecting everything,

Re: [PHP] MORE Problems with PHP as CGI and Flash !!!!!!!!!!

2002-10-03 Thread Jennifer Swofford
FEI, it works fine on my IE6/WinXP. :) (And NS7.) Rebekah, When I click link to go to the second index (using IE6, WinXP) at http://www.overbrookfarm.myiglou.com/index2.html my browser hangs and I never get the menus. However it all works fine in Mozilla 1.0 on the same platform.

Re: [PHP] DATE_FORMAT (MySQL function)

2002-10-03 Thread Maurits Lawende
Hi, You could try this query... $query = SELECT `d1.code`, `d1.type`, `d1.descr`, `d1.grouptype`, `d1.cusref`, `d1.stock`, `d1.minstock`, `d1.appmeth` , `d1.supplier`, `d1.suppref`, `d1.leadtime`, `d1.price`, `d1.reorder`, `d1.code1`, `d1.code2`, `d1.notes`, `d1.usr`, `d1.usr`, `d1.cusname`,

[PHP] force download and file size issue

2002-10-03 Thread christian haines
hi all, i have successfully created a download script to force a user to download, however attempting to download large files causes an error saying that the file cannot be found. my code header(Cache-control: private); header(Content-Type: application/force-download; name=\$file\);

[PHP] Re: Two PHP questions

2002-10-03 Thread Owen Parker
Hi firstly, magic quotes have something to do with how your php server interprets the embedded php commands, or at least that's what I took it too be. I dont really know the details but it is definitely a setting in your php.ini. Maybe you can research it to your needed detail from that.

Re: [PHP] force download and file size issue

2002-10-03 Thread Rasmus Lerdorf
readfile() On Fri, 4 Oct 2002, christian haines wrote: hi all, i have successfully created a download script to force a user to download, however attempting to download large files causes an error saying that the file cannot be found. my code header(Cache-control: private);

RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread John W. Holmes
[snip] I agree that COUNT is an optimized return, but for a situation where you are retrieving data from the query for whatever use it is more efficient to use mysql_num_rows() to return the count of this particular query than it would be to issue a second query, no? Yes, it all depends

Re: [PHP] Export email addresses from Outlook Express with PHP

2002-10-03 Thread Marek Kilimajer
You still can tell members to upload their address books and use this class to get addresses from the files: http://www.phpclasses.org/browse.html/package/778.html Arnaud Castran wrote: Do you think it is possible to export email addresses from Outook Express with PHP. I looking for a script

RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread Jay Blanchard
[snip] I think we're arguing with each other even though we agree on everything. :) [/snip] I prefer to think of it as healthy discussion :^] It is like two quantum physicists discussing light, with one leaning towards the particle side and the other leaning towards the wave side. They agree on

Re: [PHP] HYML Forms to Validate?

2002-10-03 Thread Justin French
Check out Kevin Yank's article on webmasterbase.com/sitepoint.com Cheers, Justin on 04/10/02 3:27 AM, Stephen ([EMAIL PROTECTED]) wrote: Hello, I've been reading tutorials lately on user authentication in PHP and they all are for the HTTP way of authentication. How can I use the same

[PHP] Calling Files from a different directory

2002-10-03 Thread Rick Beckman
I have a page set up that loads the contents of a text file into an HTML template using PHP. (i.e. something.com/page.php?include=1 where 1 is a simple no-extension text file in the same directoy as page.php). Is there a way to modify the PHP code in the template page to search for the included

[PHP] Is there a difference in this??

2002-10-03 Thread Roberto Ramírez
I dont get the difference between this two instructions... mail([EMAIL PROTECTED], Subject, Message) or die(It suck); mail($mailto,$subject,$content) or die(It suck); Im just getting a server error on the second instruction... I've checked the vars with the is_string() function and all are

Re: [PHP] no errors ?

2002-10-03 Thread gamin
GOT IT, basically in a script like this ? kadsf; kasdjfdsfj;garbage; ? php treats these as contants, and issues a notice saying that undefined constants are being used. The default setting for the php.ini file is : error_reporting = E_ALL ~E_NOTICE thus all notices are not displayed.

Re: [PHP] Is there a difference in this?

2002-10-03 Thread Leif K-Brooks
Try echoing those vars in the loop to see if their values are correct... Roberto Ramírez wrote: I dont get the difference between this two instructions... mail([EMAIL PROTECTED], Subject, Message) or die(It suck); mail($mailto,$subject,$content) or die(It suck); Im just getting a server

[PHP] fopen() limit

2002-10-03 Thread gamin
Hi, what sort of size limtis does fopen() have on a Linux based system ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing PHP

2002-10-03 Thread Dan
I am trying to create a message board. I setup a windows 2000 server and installed IIS. In order to setup this messageboard i need to have PHP installed. I downloaded the PHP installer and tried to run it but i get a error message stating that there was a missing OCX component and it cant

[PHP] Re: using fopen() to download remote files

2002-10-03 Thread Rusty Small
Thanks for the help. I made the assumption that all data from each page was being downloaded but it is not. I do have one other question. I've used microtime() to test how long it takes to download each page and have noticed that some pages may take as long as 45 seconds to download!!! I know

[PHP] Solution to MORE Problems with PHP as CGI and Flash !!!!!!!!!!

2002-10-03 Thread Rebekah Garner
I wrote in a message: Here is the URL to a project that is far as I am concerned was finished. http://www.overbrookfarm.myiglou.com It is a Flash site that uses PHP for dynamically updating text in some text fields. snip. There should already be text inside of it. I see it. snipMy client

[PHP] Re: using fopen() to download remote files

2002-10-03 Thread gamin
Rusty Small [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for the help. I made the assumption that all data from each page was being downloaded but it is not. I do have one other question. I've used microtime() to test how long it takes to download

[PHP] Include

2002-10-03 Thread Matias Silva
This might sound like a dumb question but I just need verification so that I can convince myself that I'm going insane! I have this error in which I include 3 files (common_html.inc, common_db.inc, common_functions.inc) well I have a clean() function in the common_functions.inc file. But it

[PHP] Re: Include

2002-10-03 Thread Philip Hallstrom
To my knowledge you can include as many files as you want. If by commenting out the clean() function, I'd say you have a syntax error in that function and you're just not seeing the error message. Turn on full error reporting and see what happens. -philip On Thu, 3 Oct 2002, Matias Silva

[PHP] time of day

2002-10-03 Thread Bryan Koschmann - GKT
Hello, I was wondering if anyone has a good example of a way to do this. Kinda lame, but like if the time is between 8am and 12pm, say good morning, between 12pm and 6pm, say good afternoon, and so on. I know this is probably pretty trivial, but I just wanted to see what ideas where out there.

Re: [PHP] HYML Forms to Validate?

2002-10-03 Thread Stephen
Thanks! But, are there any others? This doesn't really explain the whole multiple page part... - Original Message - From: Justin French [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED]; PHP List [EMAIL PROTECTED] Sent: Thursday, October 03, 2002 12:33 PM Subject: Re: [PHP] HYML Forms to

Re: [PHP] time of day

2002-10-03 Thread Kevin Stone
PHP can give you the server time, but for this I think it would be better to have the user's local time, in which case Javascript would provide a better solution. -Kevin - Original Message - From: Bryan Koschmann - GKT [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Thursday,

[PHP] Re: Mime Types

2002-10-03 Thread Manuel Lemos
Hello, On 10/03/2002 07:41 PM, Php List wrote: Hi, Is it possible to get a mime type of a file? I need to be able to attach files, but I won't always know the mime type of what is being attached. I could look at the extension of the file for a general Idea, but I wouldn't know if a .jpg

[PHP] Thumbnail with GD

2002-10-03 Thread net php
Hi, I am pretty lost.. I am trying to create a php thumbnail with php without using any *sql database.this script was supposed to open a directory then read it resize the images without losing quality and displays it on screen. ok, here is what I am trying to do and its now working:

RE: [PHP] Calling Files from a different directory

2002-10-03 Thread John W. Holmes
I have a page set up that loads the contents of a text file into an HTML template using PHP. (i.e. something.com/page.php?include=1 where 1 is a simple no-extension text file in the same directoy as page.php). Is there a way to modify the PHP code in the template page to search for the

Re: [PHP] HYML Forms to Validate?

2002-10-03 Thread Peter J. Schoenster
On 3 Oct 2002 at 12:27, Stephen wrote: I've been reading tutorials lately on user authentication in PHP and they all are for the HTTP way of authentication. How can I use the same system but with forms instead of that ugly pop-up box? Of course the best solution for this is mod_perl (for

Re: [PHP] Calling Files from a different directory

2002-10-03 Thread Rick Beckman
Sarcasm aside, I do have the script set up (although I didn't note so in the last response) to not accept files with '.' or '..' in the path. The URL can accept directories within the one the PHP script is in, but not in a different path or any directory above its own (i.e., the server files).

[PHP] Looking for feedback

2002-10-03 Thread Erich Kolb
I have setup a web-frontend to the PHP.net Usenet/Mailing List Groups. Could anyone take a look and give me some recommendations on enhancements? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Generated web pages

2002-10-03 Thread John W. Holmes
What have you tried so far? Just make your PHP page that shows the message and does the updates... Then use a META-REFRESH to redirect after 5 seconds... ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 10:25 PM

Re: [PHP] time of day

2002-10-03 Thread Michael Sims
On Thu, 3 Oct 2002 14:43:37 -0700 (PDT), you wrote: Hello, I was wondering if anyone has a good example of a way to do this. Kinda lame, but like if the time is between 8am and 12pm, say good morning, between 12pm and 6pm, say good afternoon, and so on. I know this is probably pretty trivial,

Re: [PHP] force download and file size issue

2002-10-03 Thread christian haines
thanks rasmus, i have tried read file but it gave me the same issues as fpassthru.. both cap on the memory_limit directive withint the php.ini file any other suggestions maybe? cheers christian Rasmus Lerdorf wrote: readfile() On Fri, 4 Oct 2002, christian haines wrote: hi all, i

[PHP] Re: Glaring problem with libmcrypt!!!

2002-10-03 Thread Jeff Bluemel
yea - I'm having the exact same problem - trying to use that nice little piece of encrypt /decript stuff that was posted earlier Scott Fletcher [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! I ran through the phpinfo and here's the result. That's explain

[PHP] Looking for feedback

2002-10-03 Thread Erich Kolb
Sorry for the ID10T, the address is: http://www.phpdiscuss.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: using fopen() to download remote files

2002-10-03 Thread Cliff Small
Thanks for the help Gamin. I've been reading some posts and have noticed that lots of people are having the same problem as I. I'm using php 4.1.2 which came with redhat 7.3. I think that there was a bug in 4.1.2 regarding fopen() and unusually long delays with HTTP files. I may try and

Re: [PHP] force download and file size issue

2002-10-03 Thread Rasmus Lerdorf
readfile() reads 8k blocks at a time and dumps them out. It does not read the entire thing into ram, so that wouldn't be what was causing you to hit a memory limit. You must have done something else wrong then. -Rasmus On Fri, 4 Oct 2002, christian haines wrote: thanks rasmus, i have

[PHP] recent encrpyt decrypt code... (problems)

2002-10-03 Thread Jeff Bluemel
I've seen a few other post on this, and it sounds like there is more then one of use that is trying this script. I've got it so that I can use the commands, but I still get errors on the page... here is what I have done. I downloaded libmycrpt from

Re: [PHP] Looking for feedback

2002-10-03 Thread Justin French
I'd really appreciate it if you masked email address with javascript or something... or perhaps only showed email address' to logged in and confirmed users... I already have my email address plastered all over the marc archives... one more means twice as much spam :) Justin on 04/10/02 2:44

[PHP] No ouput until program end, why?

2002-10-03 Thread Jean-Christian Imbeault
I am running a PHP program under Linux on the command line. The problem I have is that I get no output to the screen until the program finishes. I have lots of echo statements throughout the program to help me debug but none of them are printed until the program finishes, which is really a

  1   2   >