[PHP] Re: Option value

2002-10-16 Thread BAROILLER
you can do this with javascript calls. Uma Shankari T. [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hello, Is it possible to extract the value option which item name selected..for example i am having list of soap brand in the options..is it possible that to tell

RE: [PHP] Re: PHP XML

2002-10-16 Thread Simon Taylor
To me this is a lot of work and processing for limited benefits, a simple db abstraction layer provides you with a divide between you db queries and the presentation of your site, what benefits do you see in doing this? Cheers Simon -Original Message- From: Alexandru COSTIN

[PHP] test

2002-10-16 Thread BAROILLER Pierre-Emmanuel
only to see if i can post messages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fedex rate calculator

2002-10-16 Thread arvind
Hi Dwalker, Fedex has changed the site after sep 22 2002.Most of the scripts i got where for the http://rate.dmz.fedex.com/servlet/RateFinderServlet?orig_country=USlanguage =english link which does not work any more. Arvind Dwalker [EMAIL PROTECTED] wrote in message

[PHP] Want to exclude first 10 records from table

2002-10-16 Thread Manisha
I am having forum table. First 10 records are treated as Current postings and rest are treated as Archive. I know how to take first 10 select * from forum order by postdate desc LIMIT 10 But I do not know how to take postings excluding above 10. I do not want to make use of loop rather I

Re: [PHP] Fedex rate calculator

2002-10-16 Thread dwalker
It may be too soon for anyone to have gotten around to the task of putting together a new PHP script for the new rates. Has EVERYTHING changed or just a few things? Will FEDEX help you out? THIS E-MAIL MESSAGE AND ALL ATTACHMENTS TRANSMITTED HEREWITH ARE TRADE SECRET AND/OR CONFIDENTIAL

[PHP] File upload and php... not a beginner question...

2002-10-16 Thread Baroiller Pierre-Emmanuel
Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php function. But... It's a slow method for multiple files huge files transfert. I'm currently working on a big photo album tool, and I want to provide user the

RE: [PHP] File upload and php... not a beginner question...

2002-10-16 Thread David Freeman
I'm currently working on a big photo album tool, and I want to provide user the ability to upload a lot of jpeg files in one time... The big problem with form is it's too slow... Does anyone know how to by-pass this ( with java or other tools )? It's primarly slow because

[PHP] Re: Need help with HTTP-Authentication

2002-10-16 Thread BAROILLER
Hi, a simple question.. :) how do you do ? You can use 2 methods : with a .htaccess file on your webserver, updated with your table fields or a direct authentification with http headers and a little bit of php... Tell me more? may be I could help you. Regards, P.E. Baroiller Davy Obdam [EMAIL

[PHP] file upload and php (Not a begginer question!)

2002-10-16 Thread Baroiller Pierre-Emmanuel
Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php function. But... It's a slow method for multiple files huge files transfert. I'm currently working on a big photo album tool, and I want to provide user the

Re: [PHP] Want to exclude first 10 records from table

2002-10-16 Thread Jason Wong
On Wednesday 16 October 2002 14:44, Manisha wrote: I am having forum table. First 10 records are treated as Current postings and rest are treated as Archive. I know how to take first 10 select * from forum order by postdate desc LIMIT 10 But I do not know how to take postings excluding

[PHP] Re: Want to exclude first 10 records from table

2002-10-16 Thread arvind
Try this, To retrieve all rows from a certain offset upto the end of the result set, you can use -1 for the second parameter: mysql SELECT * FROM table LIMIT 95,-1; # Retrieve rows 96-last. Manisha [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am having

Re: [PHP] Re: Need help with HTTP-Authentication

2002-10-16 Thread dwalker
direct authentication with http headers ?php file://if some_variable is NOT set then redirect to some other location session_start(); if (!isset($HTTP_GET_VARS[some_variable])) { header( 'Location: http://www.yourfavoritepage.com/login.php?v=nogo' ); } ? html !-- Your html code goes

[PHP] test..

2002-10-16 Thread BAROILLER
don't replay, thanks.. It's only to see if i can post messages... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Want to exclude first 10 records from table

2002-10-16 Thread Smith, Benjamin
select * from forum order by postdate desc LIMIT 10, -1 Assuming you are using MySQL of course. See the official documentation for further assistance: http://www.mysql.com/doc/en/SELECT.html -Original Message- From: Manisha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 October 2002

Re: [PHP] Installing PHP 4.2.3 with Apache 2.0.43 on WinXP Home Edition

2002-10-16 Thread Kjartan Mannes
Wednesday, October 16, 2002, 6:27:12 AM, Reginald Alex Mullin wrote: I've been trying to get PHP working on my WinXP machine for the past few days now, but have been unsucessful. The Apache web server itself starts and works fine (without PHP), but whenever I try loading the PHP module, it

Re: [PHP] How to use imap?

2002-10-16 Thread Kjartan Mannes
Wednesday, December 4, 2002, 8:15:26 AM, ns_andy wrote: I've imap-2001a.tar downloaded, but don't know how to get it work? I am using Windows 2k , Can I have the steps of installation of imap? If you are running it on Windows just load the extension php_imap.dll in your php.ini:

Re: [PHP] $_SESSION

2002-10-16 Thread Paonarong Buachaiyo
Please, I' also have some question about $_SESSION. Simple, how can we earse all $SESSION variable except one or two variables. Beacuse i want to show some error message in my login form when login failed. i want to destroy all other $_SESSION variable (about 10) except $_SESSION['errmsg'] and

RE: [PHP] Re: PHP XML

2002-10-16 Thread Joshua Alexander
To me this is a lot of work and processing for limited benefits, a simple db abstraction layer provides you with a divide between you db queries and the presentation of your site, what benefits do you see in doing this? I have to agree with Simon. I am at a loss when it comes to seeing any

[PHP] Pass trough streaming of files

2002-10-16 Thread David Nordenberg
Hello I wonder if it is possible to do some kind of pass trough streaming of a file in PHP without making the content go through the mmap process? IE I want to make a PHP file that reads a mp3 file and sends it to the listning client, possibly winamp but mmap caches the whole mp3 file before

[PHP] Bubble windows

2002-10-16 Thread Jason End
Remember those bubbles windows php.net used to have? What are those actually called? Any tutorials that show how to make them? thanks, Jay __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- PHP

RE: [PHP] Re: PHP XML

2002-10-16 Thread José León Serna
El mié, 16-10-2002 a las 10:22, Joshua Alexander escribió: I have to agree with Simon. I am at a loss when it comes to seeing any benefit to XML that doesn't involve data exchange between at least two parties. I've spent the last two years building database-backed websites, so I'm

[PHP] Read XML file

2002-10-16 Thread Christian Ista
Hello, Look the code below. The code work I can see on the screen the value of each tags (except SOFT, no need it). I'd like now put the value in a 2 dimensions array, for each tag, first cell the tag name, and the value in the second cell. Could you tell me the change to do ? Thanks,

[PHP] Script optimisation

2002-10-16 Thread Tony Crockford
Hi, I'm sure this is an RTFM, but I'm not sure where I should be looking. is it quicker for PHP to execute ? echo $var ? in blocks of html or to echo all of the html and only have one ? and ? I'm using a PHP script to write a lot of html files to hard disk and the script execution time is

RE: [PHP] Bubble windows

2002-10-16 Thread Jon Haworth
Hi Jason, Remember those bubbles windows php.net used to have? What are those actually called? Any tutorials that show how to make them? http://www.php.net/manual/en/faq.misc.php#faq.misc.popup HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] local IP script question

2002-10-16 Thread Jon Haworth
Hi, I'm running Apache/PHP on my machine (WinXP Pro).. I want to create a local php script that detects my ISP's assigned IP address and add a port to it (e.g.: http://xxx.xxx.xxx.xxx: ).. If the machine that's running Apache is the same as the machine that gets an IP from your ISP,

[PHP] How to convert the text file into pdf file in php

2002-10-16 Thread Jack
Dear all I want to make a script which will ask php to convert the source file into pdf file format n then save it to somewhere else, but i don't know if php can do such thing, so could you pls help me on this? Thx a lot Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Re: PHP XML

2002-10-16 Thread Simon Taylor
Sure in this context I agree with you, but how often do you have a website which needs to publish in many different formats? I have designed and built websites for a while and have never come across such an application. But if I were ever I would definitely invest the effort that is required, but

[PHP] Re: Script optimisation

2002-10-16 Thread Brian McGarvie
depending on the requirements of your script, it is quicker to use ? echo $var; ? as required, this is because php essentially ignores all the html tags untill a ? ... ? is found for which php does it's stuff... if you use ? ... code ... large echo ...; statements here and there... ? PHP has

Re: [PHP] Script optimisation

2002-10-16 Thread Timothy Hitchens
This an issue that many people in the PHP community face each day. I would suggest these first very basic ones: If you have strings that are echo/parsed that you use double quotes but when the string contains no variable replacement use singles. If you are writing files of considerable size

RE: [PHP] Script optimisation

2002-10-16 Thread Simon Taylor
Tony, I am not sre which is faster, but I am pretty sure you wouldn't be able to measure it in milliseconds.. Cheers Simon -Original Message- From: Tony Crockford [mailto:[EMAIL PROTECTED]] Sent: 16 October 2002 10:48 To: Php-General@Lists. Php. Net Subject: [PHP] Script optimisation

RE: [PHP] How to convert the text file into pdf file in php

2002-10-16 Thread Simon Taylor
Jack, This is in the manual under pdf functions and you will need this library. http://www.pdflib.com/pdflib/index.html Cheers Simon -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: 16 October 2002 10:56 To: [EMAIL PROTECTED] Subject: [PHP] How to convert the text file

RE: [PHP] Re: PHP XML

2002-10-16 Thread José León Serna
El mié, 16-10-2002 a las 11:02, Simon Taylor escribió: Sure in this context I agree with you, but how often do you have a website which needs to publish in many different formats? I have designed and built websites for a while and have never come across such an application. But if I were ever

[PHP] http://pear.php.net/

2002-10-16 Thread Tariq Murtaza
check out the error http://pear.php.net/ Error: DB Error: connect failed: [nativecode=Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP XML

2002-10-16 Thread Joshua Alexander
I still wouldn't use XML for this. I mean, all the articles are in the database, and I'm already using PHP to pull them out and format them into html, right? I can just as easily use PHP to put them into all those other formats. So again, why waste time with XML unless I need to feed these

RE: [PHP] Re: PHP XML

2002-10-16 Thread José León Serna
El mié, 16-10-2002 a las 11:13, Joshua Alexander escribió: I still wouldn't use XML for this. I mean, all the articles are in the database, and I'm already using PHP to pull them out and format them into html, right? I can just as easily use PHP to put them into all those other formats. In

RE: [PHP] Re: Script optimisation

2002-10-16 Thread Tony Crockford
As I said at the start, it very much depends on what is required for a particular script... Here's an area I'm struggling with: (it's a breadcrumb trail building a href from variables according to which page I'm creating): ?php //index echo a href=\, $urltoitem, /tm, $cat1_ref, /lv,

[PHP] Random open_basedir -effection?

2002-10-16 Thread Ville Mattila
Folks, I've noticed that I got open_basedir restriction in effect warnings randomly in a random situations. I've seen this error appearing whether the script is using filesystem or not. And the weirdest thing: I don't have any open_basedir restrictions set! Just a second ago I got following

Re: [PHP] passing mysql_error() out put to a different page?

2002-10-16 Thread Marek Kilimajer
And also on the folloving page use echo htmlspecialchars(stripslashes($_GET['err_value'])); John W. Holmes wrote: Well, the die() function takes a limited number of parameters, which as you noted is why it doesn't like the assignment of the mysql_error() and the header

[Fwd: Re: [PHP] Re: PHP XML]

2002-10-16 Thread Tariq Murtaza
Can u elaborate more about ISO standards. i mean, if u could explain more about using Xml in DMS with ISO standards with small examples Best ragards José León Serna wrote: El mié, 16-10-2002 a las 11:02, Simon Taylor escribió: Sure in this context I agree with you, but how often do you have

Re: [PHP] Inserting a variable into a mysql_query() statement

2002-10-16 Thread Marek Kilimajer
You very likely need to use $_REQUEST[hidden_manuf_id] in your first example, which is almost correct otherwise( for security reasons, also put single quotes around it) Phil Clark wrote: I'm trying to insert the variable $hidden_manuf_id into a mysql_query() statement. If i do this:

Re: [Fwd: Re: [PHP] Re: PHP XML]

2002-10-16 Thread José León Serna
El mar, 15-10-2002 a las 23:16, Tariq Murtaza escribió: Can u elaborate more about ISO standards. i mean, if u could explain more about using Xml in DMS with ISO standards with small examples AFAIK there is no especific request to use XML to be compliant with ISO standard, the ISO specifies

Re: [PHP] How to convert the text file into pdf file in php

2002-10-16 Thread Jason Wong
On Wednesday 16 October 2002 16:56, Jack wrote: Dear all I want to make a script which will ask php to convert the source file into pdf file format n then save it to somewhere else, but i don't know if php can do such thing, so could you pls help me on this? If you've compiled PHP with

Re: [PHP] File upload and php... not a beginner question...

2002-10-16 Thread Marek Kilimajer
Well, you can use form target=_blank onSubmit=document.location='please_be_patient_and_dont_close_the_new_window.html' Baroiller Pierre-Emmanuel wrote: Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php

[PHP] netscape http user agent pattern thing.

2002-10-16 Thread Noodle Snacks
I am just finish off a site. An of course the css rendered really badly with netscape... Fixed that with the: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] netscape user agent name...

2002-10-16 Thread Noodle Snacks
Accidently hit the send shortcut... I am just finish off a site. An of course the css rendered really badly with netscape... Fixed that with the: style type='text/css' @import url(style_sheets/?=$skin[0][0]?); /style trick. One or two of the images looks really bad with the simpler css. I am

RE: [PHP] netscape user agent name...

2002-10-16 Thread Jon Haworth
Hi, my question is does Netscape 4.x send Netscape 4.x or mozilla something? It sends Mozilla/4.7 [en] (WinNT; I) (varies with version, language and OS, obviously). I use this to sniff Netscape 4: if (strstr($_SERVER[HTTP_USER_AGENT], Mozilla/4.) !strstr($_SERVER[HTTP_USER_AGENT], MSIE))

Re: [PHP] netscape user agent name...

2002-10-16 Thread Duncan Hill
On Wed, Oct 16, 2002 at 09:50:06PM +1100, Noodle Snacks wrote: my question is does Netscape 4.x send Netscape 4.x or mozilla something? Copy sent offlist, so here's a copy for the list. Google returns: http://www.psychedelix.com/agents.html -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Installing PHP 4.2.3 with Apache 2.0.43 on WinXP Home Edition

2002-10-16 Thread Ford, Mike [LSS]
-Original Message- From: Reginald Alex Mullin [mailto:[EMAIL PROTECTED]] Sent: 16 October 2002 05:27 To: '[EMAIL PROTECTED]' LoadModule php4_module C:/PHP/sapi/php4apache.dll AddModule mod_php4.c As you're trying to use Apache 2.0.43, this won't work -- there's a different .dll

[PHP] Trouble with \\ and form

2002-10-16 Thread Christian Ista
Hello, I'm trying the example1 give in xml_parse_into_struct section here : http://www.php.net/manual/en/function.xml-parse-into-struct.php works fine. But know I'm trying to change the file name moldb.xml by a file name come from a form input type=file . I receive from the form

RE: [PHP] $_SESSION

2002-10-16 Thread Ford, Mike [LSS]
-Original Message- From: Paonarong Buachaiyo [mailto:[EMAIL PROTECTED]] Sent: 16 October 2002 09:04 To: [EMAIL PROTECTED] Simple, how can we earse all $SESSION variable except one or two variables. Any way to do it except unset($_SESSION['xx1']); unset($_SESSION['xx2']);

Re: [PHP] Re: PHP XML

2002-10-16 Thread Stas Maximov
The benefit would be in dividing business logic from presentation layer. Stas. - Original Message - From: Simon Taylor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 7:35 AM Subject: RE: [PHP] Re: PHP XML To me this is a lot of work and processing for

Re: [PHP] Random open_basedir -effection?

2002-10-16 Thread Marek Kilimajer
Don't you have any *auto_append_file* set? Ville Mattila wrote: Folks, I've noticed that I got open_basedir restriction in effect warnings randomly in a random situations. I've seen this error appearing whether the script is using filesystem or not. And the weirdest thing: I don't have any

Re: [PHP] Trouble with \\ and form

2002-10-16 Thread Marek Kilimajer
Easy way is stripslashes(), just watch out you don't put stripslashed field input into the database Christian Ista wrote: Hello, I'm trying the example1 give in xml_parse_into_struct section here : http://www.php.net/manual/en/function.xml-parse-into-struct.php works fine. But know I'm

Re: [PHP] Re: PHP XML

2002-10-16 Thread Geoff Hankerson
Ultimately it's about flexibility and seperating content from presentation.Even if you don't have sites that need to be output into multiple formats you will almost cetainly need to redesign some or all of the presentation at some point even if it is only in html. Have you ever had your

[PHP] fopen url problems

2002-10-16 Thread Karl Phillipson
Anyone know what the error means in this snippet? I am attempting to check if a given .asf file exists on another server but get no further than this error. Not sure what 'message too long' refers to. PHP version is 4.2.1/Apache 2/FreeBSD Thanks. Warning:

[PHP] function to update mysql tables?

2002-10-16 Thread Simon De Deyne
Hi, I'm not sure if this is entirely php related, but I was wondering if there is a PHP function or a way to automatically update one table with values from another more extended table (automatically checking the common columns) and inserting new rows if they don't exist in the first table.

Re: [PHP] PHP XML

2002-10-16 Thread Chris Boget
Do you realize more benifit for the back end processes when using XML that makes any additional time it takes to display a page to the user worth it? Just ask the user if they really want to wait longer for something they can't even see, just so you can use the latest buzzword in

[PHP] Creating a voting system.

2002-10-16 Thread Thomas Goeminne
Hello, I am making a page where people can vote for their favourite image. People can give points from 1 to 5. I want the votes counted in a table in my mysql dbbase called votes. How do I make such a system? thank you for helpfull hints. -- PHP General Mailing List (http://www.php.net/)

[PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
Let's say you have a simple PHP file that just displays a random number. When the user hits the submit button, the page will reload and display another random number. How often do you need to call mt_srand(); ? Just once? Or each time the page gets reloaded?

Re: [PHP] Creating a voting system.

2002-10-16 Thread bbonkosk
Have you by chance read any documents or tutorials? I know there are many helpful ones at places like phpbuilder.com, and many others. This list is more helpful when you have a specific question to be answered, this is too open ended. -Brad Hello, I am making a page where people can

Re: [PHP] seeding using mt_srand();

2002-10-16 Thread bbonkosk
What Version :-) Check the manual, it has an interesting note: Note: Since PHP 4.2.0 it's no longer necessary to seed the random number generator before using it. HTH -Brad Let's say you have a simple PHP file that just displays a random number. When the user hits the submit button, the

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Jon Haworth
Hi Phil, How often do you need to call mt_srand(); ? As of version 4.2.0 you don't have to call it at all. If your PHP installation is an earlier version than that, call it once per script, before generating any random numbers, e.g: mt_srand($seed); $randomA = mt_rand(); $randomB =

[PHP] PHP from behind a proxy-server ??

2002-10-16 Thread Rob
hi, i'm trying to get phpMySetiStats (phpmysetistats.sourceforge.net) running on my NT4 box (Apache 2.0.39, PHP 4.2.3 and MySQL 3.23.52). problem is that i am behind a proxy server and can not get the 'file' function to work to retrieve my stats from the Berkeley server ... i've searched the

Re: [PHP] PHP from behind a proxy-server ??

2002-10-16 Thread Timothy Hitchens
Make a direct call using sockets... eg simulate being a web browser and use the proxy.. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] Rob wrote: hi, i'm trying to get phpMySetiStats (phpmysetistats.sourceforge.net) running on my NT4 box (Apache 2.0.39, PHP 4.2.3 and MySQL 3.23.52).

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
Yeah, I read that,I'm using PHP 4.04...so I do need to see the random generator. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 11:35 AM To: Phil Schwarzmann; [EMAIL PROTECTED] Subject: Re: [PHP] seeding using mt_srand(); What

[PHP] Re: How to use imap?

2002-10-16 Thread Ns_Andy
please kill. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
So I need to call it each time the page gets reloaded I guess I can't just have the user load a file called generate.php which has the mt_srandand then keep calling random.php (which has mt_rand) without calling generate.php right? -Original Message- From: Jon Haworth

Re: [PHP] seeding using mt_srand();

2002-10-16 Thread Jason Wong
On Wednesday 16 October 2002 20:46, Phil Schwarzmann wrote: So I need to call it each time the page gets reloaded I guess I can't just have the user load a file called generate.php which has the mt_srandand then keep calling random.php (which has mt_rand) without calling generate.php

[PHP] Show indexes

2002-10-16 Thread Liam . Gibbs
Is there a way in PHP to list all of the indexes in an SQL database? Or is it only through SQL that this can be done? (Or can it?) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Jon Haworth
Hi Phil, How often do you need to call mt_srand(); ? once per script, before generating any random numbers I can't just have the user load a file called generate.php which has the mt_srandand then keep calling random.php (which has mt_rand) without calling generate.php

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Jon Haworth
Hi Phil, I'm doing everything correct, although my random numbers don't seem totally random. There are two reasons for this. Firstly, you might not be seeding mt_srand() with a sensible seed - if you always use 23 as your seed, you'll always get the same sequence of random numbers. You're

[PHP] Blank PHP pages...

2002-10-16 Thread Angel Gabriel
... I've got PHP working, on my server, I know this because I used that small PHP script that shows all the variables, and that worked fine. The problem seems to be that every other script shows me a blank pages. I'm using redhat 7.3, and I installed PHP, MySQL and Apache from RPM's and they are

Re: [PHP] Re: PHP XML

2002-10-16 Thread Adrian Slusarczyk
Using XML can also make sense for smaller projects where a 'real' DB just isn´t available on the server. I am developing a CMS for our student magazine. Over the last 16 months or so, we used CGI /Perl for processing and stored the data in plain text files.In these article files, I would use

RE: [PHP] Blank PHP pages...

2002-10-16 Thread Jay Blanchard
[snip] ... I've got PHP working, on my server, I know this because I used that small PHP script that shows all the variables, and that worked fine. The problem seems to be that every other script shows me a blank pages. I'm using redhat 7.3, and I installed PHP, MySQL and Apache from RPM's and

Re: [PHP] Show indexes

2002-10-16 Thread Stas Maximov
First get all the table names in your db: mysql_query(show tables from [your_db_name]); Then crawl thru the table list and get index information for each of them: mysql_query(show index from [your_table_name]); HTH Stas - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] Re: PHP from behind a proxy-server ??

2002-10-16 Thread J Wynia
You can use the CURL module to do this fairly easily as it has a proxy setting. Some example code available at: http://www.phpgeek.com/articles.php?content_id=29 Rob wrote: hi, i'm trying to get phpMySetiStats (phpmysetistats.sourceforge.net) running on my NT4 box (Apache 2.0.39, PHP

[PHP] $_FILES posting limited to 5?

2002-10-16 Thread Jason Young
I'm going to approach this question in a different way, in case some people were put off by the complexity of it yesterday. For all those who don't know my question from yesterday, I have a form where I can upload up to 9 files at a time. Unfortunately, only the first 5 of those files are

[PHP] Re: $_FILES limited to 5? (Server versions)

2002-10-16 Thread Jason Young
Just wanted to let everyone know: PHP version is 4.2.1 Apache is 1.3.24 Running WindowsXP Pro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Inserting a variable into a mysql_query() statement

2002-10-16 Thread Rick Emery
$query = DELETE FROM product WHERE manufacturer=\$hidden_manuf_id\; mysql_query($query,$bb) or die(mysql_error()); or: mysql_query(DELETE FROM product WHERE manufacturer=\$hidden_manuf_id\, $bb); = Phil Clark wrote: I'm trying to insert the variable

[PHP] Re: Creating a voting system.

2002-10-16 Thread Baroiller Pierre-Emmanuel
take a look on php website, there is a lot of scripts for this : http://www.hotscripts.com others. Regards. P.E. Thomas Goeminne [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hello, I am making a page where people can vote for their favourite image. People can give

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Juhan Kundla
Ühel ilusal päeval [16-10-2002 16:48] kirjutas Jason Young: I'm going to approach this question in a different way, in case some people were put off by the complexity of it yesterday. For all those who don't know my question from yesterday, I have a form where I can upload up to 9 files

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Timothy Hitchens
IE can only have two concurrent connections open... eg if you have a http 1.1 connection open for say a ongoing cgi/php call (ping or traceroute) then you make another call for the same script and then a further call to the server the last call will just sit there spinning it's wheeels until

[PHP] Odd finding while researching $_FILES

2002-10-16 Thread Jason Young
Without going into the process of how I came to do this, I just wanted to throw out there that even if you only have 1 file input, it still seems to loop 5 times... Is this something with my code... -- $current = 0; while (list($key) = each($_FILES['picname'])) { echo $current;

Re: [PHP] Sessions: Trigger a new one, Expire an old one

2002-10-16 Thread Max Buvry
Hi, I use php 4.2.3 with session.auto_start = 1 in php.ini What I use with URL session : $_SESSION= array(); unset($_GET[session_name()]); session_destroy(); Header(Location: next_script.php); with cookie session : $cook_param= session_get_cookie_params();

RE: [PHP] Blank PHP pages..

2002-10-16 Thread Angel Gabriel
I checked and register_globals is set to on - so that can't be the problem. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 2:33 PM To: 'Angel Gabriel'; [EMAIL PROTECTED] Subject: RE: [PHP] Blank PHP pages.. [snip] I've got PHP

[PHP] windows specific: printer_ functions...

2002-10-16 Thread Brian McGarvie
I have a specific problem ;) I have been asked if it is possible to write a 'simple' application that will print onto Bank Cheques - they will be supplied on a continuous roll aparently, so it'll be one cheque followed by another etc perferated inbetween... So my question is has anyone ever

[PHP] Date formatting from a mySQL timestamp

2002-10-16 Thread Ricardo Fitzgerald
Hi, I have the following query : for($i = 0; $i =$num_results; $i++) { $row = mysql_fetch_object($result); echo table width =\100%\ border =\0\ cellpadding = \3\\n .tr\n .td bgcolor = \#ee\ align = \left\$row-id/td\n .td bgcolor = \#ee\ align = \left\$row-Nombre/td\n

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Brent Baisley
I hadn't thought about that, but it does sound like a possibility. Although a browser isn't limited to 5 connections at a time. It is usually set by the user and in my experience defaults to 4 and can be set as high as 8. Most users (or even programmers) don't know about this simple setting.

Re: [PHP] $_FILES limited to 5? (Server versions)

2002-10-16 Thread Juhan Kundla
Ühel ilusal päeval [16-10-2002 16:50] kirjutas Jason Young: Just wanted to let everyone know: PHP version is 4.2.1 Apache is 1.3.24 Running WindowsXP Pro Running Windows? Hm. I remember something similar, when I was sysadmin and I used Windows NT 4.0 Workstation as a file server. The

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Tom Rogers
Hi, Wednesday, October 16, 2002, 11:49:04 PM, you wrote: JY I'm going to approach this question in a different way, in case some JY people were put off by the complexity of it yesterday. JY For all those who don't know my question from yesterday, I have a form JY where I can upload up to 9

Re[2]: [PHP] Blank PHP pages..

2002-10-16 Thread Tom Rogers
Hi, Thursday, October 17, 2002, 12:58:02 AM, you wrote: AG I checked and register_globals is set to on - so that can't be the AG problem. Stop teasing us and show us the code you have on those pages :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Blank PHP pages..

2002-10-16 Thread Marek Kilimajer
Do you get at least any output, i.e. empty html document? Check in the logs if your server is not dying. Angel Gabriel wrote: I checked and register_globals is set to on - so that can't be the problem. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: [PHP] Date formatting from a mySQL timestamp

2002-10-16 Thread 1LT John W. Holmes
I have the following query : for($i = 0; $i =$num_results; $i++) { $row = mysql_fetch_object($result); echo table width =\100%\ border =\0\ cellpadding = \3\\n .tr\n You can save some typing if you just set the bgcolor in the tr, instead of each td, FYI. Also, align defaults to

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Jason Young
BEAUTIFUL! This was the problem... it wasn't that there was a limit of 5 maximum uploads, it was just that my 'while' statement was only counting as many fields as the first sub-array for $_FILES.. which is 5. Tom, thanks a bunch! -Jason Tom Rogers wrote: Hi, Wednesday, October 16,

Re: [PHP] Option value

2002-10-16 Thread 1LT John W. Holmes
Is it possible to extract the value option which item name selected..for example i am having list of soap brand in the options..is it possible that to tell that the user seleced this brand of soap while in the submittion of the form..can any one please tell me how to do this.. Umm...that's

RE: [PHP] Re: PHP XML

2002-10-16 Thread .: B i g D o g :.
I am all for the power of XML, another benefit is the ability to have many themes for your viewer. Plus, if you are writing a CMS or portal of some sort you can have your users create their own themes without ever touching the data layers. They just need to create some XSLT pages and that is

RE: [PHP] Blank PHP pages.

2002-10-16 Thread Angel Gabriel
I get absolutly NOTHING! I get the most basic HTML page, but blank, as in the following !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META content=text/html; charset=windows-1252 http-equiv=Content-Type/HEAD BODY/BODY/HTML -Original Message- From: Marek

[PHP] Modulo eleven function?

2002-10-16 Thread Børge Strand
Is anyone of you aware of a modulo eleven function that is used to calculate the checksum of a creditcard number? I have a pretty crude code listing from a book, but what I look for is a function that can append the checksum digit to a number. I have the spec for the algorithm behind the

Re: [PHP] Blank PHP pages.

2002-10-16 Thread Jason Young
Make sure all of your code is executing properly. I had this problem for a little bit, actually. Edit your php settings to give you errors on the output, or just check your server logs.. there's gotta be something there. Just one problem and my whole PHP page failed to print anything within ?

  1   2   >