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

2002-10-16 Thread dwalker
direct authentication with http headers http://www.yourfavoritepage.com/login.php?v=nogo' ); } ?> THIS E-MAIL MESSAGE AND ALL ATTACHMENTS TRANSMITTED HEREWITH ARE TRADE SECRET AND/OR CONFIDENTIAL INFORMATION INTENDED ONLY FOR THE VIEWING AND USE OF ADDRESSEE. IF THE READER OF THIS MESSAGE IS

[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 4:

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: exten

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 be

[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 start

[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 Genera

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, Christ

[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 in blocks of html or to echo all of the html and only have one I'm using a PHP script to write a lot of html files to hard disk and the script execution time is climbing beyond the maxim

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: http://www.p

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 I

[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, vi

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 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 PHP has to go thru the contents of "..." and repace any variables it finds... however if yo

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 lo

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 H

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 into

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 e

[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 ar

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.

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 "; getcat1name($cat1_ref); echo ""; //subcat1 echo ""; getsub_cat1name($sub_cat1_ref); echo ""; //cat2 echo ""; getcat2name($ca

[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 er

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 >> >> >th

[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 h

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: >mysq

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 specifi

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 su

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

2002-10-16 Thread Marek Kilimajer
Well, you can use 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 function. > >But... It's a slow method for multiple files & huge files transfert. > >I'm currently workin

[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: @import url(style_sheets/); trick. One or two of the images looks really bad with the simpler css. I am going to detect the browser

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_A

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 differen

[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 . I receive from the form something like that : C:\\D

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

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 f

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 a

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

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 boss/

[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: fopen("http://bluestream/bband/te

[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. Furt

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

[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/) T

[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 c

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 = mt_rand(

[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 net

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). > pr

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 V

[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 [mailto:[

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] 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 g

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'r

[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 pse

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 th

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 PROTE

[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 4

[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 bein

[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 va

[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 > c

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 fil

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 o

[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; $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(); $l

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 trie

[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 "\n" ."\n" ."$row->id\n" ."$row->Nombre\n" ."$row->Apellido\n" ."$row->Direccion\n" ."$row->Ciudad\n" ."$row->Telefono\n" ."$row

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. I

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. Th

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, vis

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: Wedn

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 "\n" >."\n" You can save some typing if you just set the bgcolor in the , instead of each , FYI. Also, align defaults to "left", doesn't it? So you can probably leave tha

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, 20

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...tha

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 it.

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 -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 4:26 PM To: PHP Subject: Re: [PHP] Blank PHP pages. Do you get at least any output, i.

[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 check

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 t

RE: [PHP] Modulo eleven function?

2002-10-16 Thread Jon Haworth
Hi Børge, > Is anyone of you aware of a modulo eleven function > that is used to calculate the checksum of a creditcard > number? I'm aware of the mod-10 algorithm (also known as the "Luhn algorithm") - is that what you were after? There's a class that does this, amongst other things, at htt

RE: [PHP] Blank PHP pages.

2002-10-16 Thread Jennifer Swofford
What's your PHP code look like? --- Angel Gabriel <[EMAIL PROTECTED]> wrote: > I get absolutly NOTHING! I get the most basic HTML > page, but blank, as in > the following > > Transitional//EN"> > > http-equiv=Content-Type> > -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Postgres-Transaction-user_ignore_abort-Connection stop by the client

2002-10-16 Thread Max Buvry
Hi, I use Postgresql 7.2.2 + php 4.2.3 and I meet a problem with transaction and connections interruption. The application is the famous example of the bank accounts and the money transfers. I consider a table named "DEAL" where each transaction is saved. Each tuple has an id number as key. When

Re: [PHP] Blank PHP pages.

2002-10-16 Thread Marek Kilimajer
That is NOT nothing. This is comming from your page, so check your code. Angel Gabriel wrote: >I get absolutly NOTHING! I get the most basic HTML page, but blank, as in >the following > > > >http-equiv=Content-Type> > > > > >-Original Message- >From: Marek Kilimajer [mailto:[EMAIL PR

RE: [PHP] Blank PHP pages

2002-10-16 Thread Angel Gabriel
Hmm.. I'm trying to run PHP Nuke v6 ... and I also got the same when trying to squirrelmail.. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 5:10 PM To: PHP Subject: Re: [PHP] Blank PHP pages That is NOT nothing. This is comming

RE: [PHP] Blank PHP pages.

2002-10-16 Thread Angel Gabriel
I already did that, and it came up all pretty, and purply. :) -Original Message- From: Matt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 5:26 PM To: Angel Gabriel Subject: Re: [PHP] Blank PHP pages. The simplest thing to try is to create a phpinfo.php script, putting in

Re: [PHP] Blank PHP pages.

2002-10-16 Thread Matt
Then most likely display_errors is off in php.ini and you have a syntax error in an include file used by all of the scripts. - Original Message - From: "Angel Gabriel" <[EMAIL PROTECTED]> To: "'Matt'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 12:40 PM Sub

Re: [PHP] Blank PHP pages

2002-10-16 Thread Marek Kilimajer
Check if you have display_errors on Angel Gabriel wrote: >Hmm.. I'm trying to run PHP Nuke v6 ... and I also got the same when trying >to squirrelmail.. > >-Original Message- >From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, October 16, 2002 5:10 PM >To: PHP >Subjec

[PHP] Re: Odd finding while researching $_FILES

2002-10-16 Thread Philip Hallstrom
I think that's because there are five keys for _$FILES['picname']. According to the manual: -- The contents of $_FILES from our example script is as follows. Note that this assumes the use of the file upload name userfile, as use

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

2002-10-16 Thread Jonathan Sharp
Your example for the cookie session works, but I wanted to keep sessions 'transparent' and not have to manage sessions. The code I wrote basically finds the session id wherever it might be, checks if it's expired, if so, it then removes all traces of the session id to make session_start() thin

[PHP] Warning: Failed to write session data ?

2002-10-16 Thread Jan Grafström
Hi, I get this message when I load my webshopsite into a frame on onother server but not until I press a form button: Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/apachefs/sessions) in Unknown on line 0 I can´t change

Re: [PHP] Warning: Failed to write session data ?

2002-10-16 Thread .: B i g D o g :.
When u click on the submit button then u are redirected to the action page. So on this action page you might need to put the session information there. Where is the action page located? (on which server). The problem seems to be that you have 2 sessions. One session in each frame. Idea: You

  1   2   >