Re: [PHP] This is weird, this script does/doesn't work

2002-09-04 Thread René Moonen
Øystein Håland wrote: on my own machine, W2k+Apache+php4.2 this works without problem, on the Internet-server though, (Linux), the following script produces a blank page: ?php require ../utils.php; $link=openDB(); $file = $target.form; // Queries for student if ($target == student) { //

Re: [PHP] Re: PHP OOP

2002-09-04 Thread René Moonen
Rodrigo Dominguez wrote: I made a mistake while I was writting the example, in my original code I wrote it as you did, with $this-b[0] = new one(); but it doesn't work. Thank you. Philip Hallstrom [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not

Re: [PHP] Please help with fresh fish.

2002-09-04 Thread René Moonen
Anh wrote: Hello everyone, I would like to study PHP but do not have any experience about PHP or programming. Could you please give me some advice to begin such as books, news, forum... Many thanks in advance, Anh You already found the best PHP forum there is ;-) René -- PHP

[PHP] SMS

2002-09-04 Thread Lejanson C. Go
what are the components to be use if you want to set up a site that SENDS Free SMS and uses PHP? -- Lejanson C. Go, SDE I -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread lallous
you can also join() the elements and pass as a single string, then explode() the elements back again. Elias Paul Maine [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is it possible to pass an array in a form post? If so, how do I reference the array on the next

[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Rodrigo Dominguez
If you are in a session you can register the array and it will be available on the next page, once you finish working with the array, just unregister the array. File1.php action= file2.php session_start(); session_register(foo); var $foo = array(); File2.php session_start(); Work with $foo

[PHP] how get a image?

2002-09-04 Thread skitum
Hi all, I have a input button like this: input name=imagen type=FILE id=imagen height=1 How can i get this image? I need to receive it as a attachment file or insert it into a MySQL database. Any Ideas? Thanks for help. Peace Love skitum

RE: [PHP] how get a image?

2002-09-04 Thread Scott Houseman
Hi there Have a look at http://www.php.net/manual/en/features.file-upload.php It should explain all. Regards -Scott -Original Message- From: skitum [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 10:35 AM To: [EMAIL PROTECTED] Subject: [PHP] how get a image?

[PHP] script mysql date picker

2002-09-04 Thread adi
Hi, There are somewhere a script to manage mysql table in this way: -In table i have a date field(format -mm-dd). I tried webmin, PHPMyEdit etc, for editing this field from web page, but field is displayed as textbox and i have to write manually date field. I want next to textfield a button

Re: [PHP] Uploading file

2002-09-04 Thread skitum
i have the same problem. Where is the kind soul who can help us? Peace Love skitum - Original Message - From: Clemson Chan [EMAIL PROTECTED] To: Juan Pablo Aqueveque [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 12:25 AM Subject: RE: [PHP] Uploading file

[PHP] Re: script mysql date picker

2002-09-04 Thread lallous
This script is not mine, but I modified it so that it can work with any form field... take a look at the sources: http://lgwm.org/ozone/calcall.htm Good luck. Adi [EMAIL PROTECTED] wrote in message 001701c253f3$5ce58820$9600a8c0@adi">news:001701c253f3$5ce58820$9600a8c0@adi... Hi, There are

php-general Digest 4 Sep 2002 10:21:21 -0000 Issue 1565

2002-09-04 Thread php-general-digest-help
php-general Digest 4 Sep 2002 10:21:21 - Issue 1565 Topics (messages 115102 through 115151): Re: Refering to an object from within an array variable in another class 115102 by: Andy Warwick XML vs Everything Else 115103 by: Taylor York 115104 by: nicos.php.net

[PHP] RE: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Tim Ward
you just name the form elements as array elements, e.g. with explicit keys name='array[0]' name='array[1]' etc. or allowing php to assign the keys name='array[]' name='array[]' etc. then the array is an element of $HTTP_POST_VARS[] when the form is posted Tim Ward

[PHP] Re: PHP / Bulk Email

2002-09-04 Thread Andrew Cowles
Hi Guys / gals, I ran a test recently sending emails to a list of clients (1000 or so) from a PHP / MySQL powered system. When sending via Sendmail this was VERY slow, taking several minutes to complete. When I switched over to Qmail the whole process takes only 10 or 15 seconds. Seems it's the

Re: [PHP] Re: PHP / Bulk Email

2002-09-04 Thread DL Neil
Hi Guys / gals, I ran a test recently sending emails to a list of clients (1000 or so) from a PHP / MySQL powered system. When sending via Sendmail this was VERY slow, taking several minutes to complete. When I switched over to Qmail the whole process takes only 10 or 15 seconds. Seems

[PHP] Remote file download and https

2002-09-04 Thread Radu Manole
Hi Guys, I'm trying to create a transparent download using a script (the script would run from my local machine) that will request a file from a remote server, that looks like this (https request): https://www.httpsserver.net/Pages/Download.asp?usr=testpass=testfrom=05/01 /02to=09/03/02 This

Re: [PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Marek Kilimajer
Don't forget to use urlencode after serializing. David Robley wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Is it possible to pass an array in a form post? If so, how do I reference the array on the next page? Thank You Paul php I believe you may need

[PHP] Re: Remote file download and https

2002-09-04 Thread lallous
Do you have SSL library installed? check that PHPINFO() i guess. You can also try to run curl() (if they have SSL support). Otherwise, It will be hard to implement SSL from pure PHP sockets functions. Elias Radu Manole [EMAIL PROTECTED] wrote in message 001401c25404$a52baae0$[EMAIL

[PHP] Re: SMS

2002-09-04 Thread nicos
Hi, This has nothing really to do with PHP, but, you can't excepted if you work for a company that got the right to do it. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Lejanson C. Go [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL

[PHP] socket_read

2002-09-04 Thread BB
I'm having a problem with socket read, it's only reading one character. This may not sound so bad, but when you think that while it's reading all those one characters, it cannot read anyone else's (it blocks). Can anyone explain, or have a better way of doing this? Code below: ?php

Re: [PHP] Uploading file

2002-09-04 Thread Justin French
There is a perfecting good working example of file uploads on php.net... never quite sure why people re-invent the wheel all the time. In the example (at http://www.php.net/manual/en/features.file-upload.php), they make a call to move_uploaded_file()... until you do that, and move it to where

Re: [PHP] Remote file download and https

2002-09-04 Thread Justin French
There is a download script (commonly used for restricting downloads to members, etc) on Zend.com... if you can't find it (in tutorials or articles), let me know. It should give you a good understanding of the principals, and a decent head start on the code, as it did for me. I don't think there

[PHP] PHP and LDAP over SSL

2002-09-04 Thread Søren Henning Dalgaard
I'm new to both PHP, LDAP and SSL so I'm really asking for direction on where to start. I have an OpenLDAP server on a Linux box, and a Microsoft ISS on Windows 2000 with PHP-scripting. I have made a couple of PHP scripts that access the LDAP database for reading and writing. All works fine so

[PHP] Apache 2.0

2002-09-04 Thread Lars Hecking
Hi all, I'm setting up a test server with Apache 2.0.40 and php. I downloaded the latest php4 snapshot, compiled and installed it (a real PITA, but I managed), added LoadModule php4_module modules/libphp4.so and AddType application/x-httpd-php .php to httpd.conf, but my browser still

[PHP] PHP and LDAP over SSL

2002-09-04 Thread Søren Henning Dalgaard
I'm new to both PHP, LDAP and SSL so I'm really asking for direction on where to start. I have an OpenLDAP server on a Linux box, and a Microsoft ISS on Windows 2000 with PHP-scripting. I have made a couple of PHP scripts that access the LDAP database for reading and writing. All works fine so

[PHP] News Feeds....

2002-09-04 Thread Brian McGarvie
Hi I'd like to get some news from any reputable news site, bbc.co.uk... yahoo.co.uk etc etc UK news would be best, if not then some hints to how to go about it would be much appreciated! TIA... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP / Bulk Email

2002-09-04 Thread Manuel Lemos
Hello, On 09/04/2002 08:05 AM, Andrew Cowles wrote: I ran a test recently sending emails to a list of clients (1000 or so) from a PHP / MySQL powered system. When sending via Sendmail this was VERY slow, taking several minutes to complete. When I switched over to Qmail the whole process

Re: [PHP] Re: PHP / Bulk Email

2002-09-04 Thread Manuel Lemos
On 09/04/2002 07:52 AM, Dl Neil wrote: I ran a test recently sending emails to a list of clients (1000 or so) from a PHP / MySQL powered system. When sending via Sendmail this was VERY slow, taking several minutes to complete. When I switched over to Qmail the whole process takes only 10 or 15

Re: [PHP] News Feeds....

2002-09-04 Thread Stas Maximov
Try www.moreover.com HTH Stas - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 1:52 PM Subject: [PHP] News Feeds Hi I'd like to get some news from any reputable news site, bbc.co.uk... yahoo.co.uk etc

Re: [PHP] XML vs Everything Else

2002-09-04 Thread Geoff Hankerson
Rodrigo Dominguez wrote: I'm writting an application, a control panel for a web site, and it will be great if I can separe data from presentation, I know that I have to work with XML and XSL but I didn't understand how it works. Can you give me a simple example? Let guess that a client request

Re: [PHP] Please help with fresh fish.

2002-09-04 Thread Anh
Hello Rene, Thanks a lots. You already found the best PHP forum there is ;-) I believe so :-) Anh René moonen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Anh wrote: Hello everyone, I would like to study PHP but do not have any experience about PHP or

[PHP] Re: Apache 2.0

2002-09-04 Thread Erwin
Lars Hecking wrote: Hi all, I'm setting up a test server with Apache 2.0.40 and php. I downloaded the latest php4 snapshot, compiled and installed it (a real PITA, but I managed), added LoadModule php4_module modules/libphp4.so and AddType application/x-httpd-php .php to

Re: [PHP] Re: Apache 2.0

2002-09-04 Thread Lars Hecking
Add the following to the bottom of your httpd.conf FilesMatch \.php$ SetOutputFilter PHP SetInputFilter PHP /FilesMatch No luck. error_log: [Wed Sep 04 15:01:44 2002] [notice] Apache/2.0.40 (Unix) mod_ssl/2.0.40 OpenSSL/0.9.6g PHP/4.3.0-dev configured -- resuming normal

[PHP] fun with register_globals

2002-09-04 Thread Kelly Meeks
Hi folks, I might be late to the game with these questions, but I've just been bit by the register_globals=off situation. I'm trying to figure out the scope of what I need to change to accomodate register_globals=off, and I need some help. Looking around php.net, for example: 'If

Re: [PHP] fun with register_globals

2002-09-04 Thread Adam Williams
use $_GET[id] in the place of $id for each instance. Like if you had $new = $id + 1 change it to $new = $_GET[id] + 1 and such... Adam On Wed, 4 Sep 2002, Kelly Meeks wrote: Hi folks, I might be late to the game with these questions, but I've just been bit by the

RE: [PHP] Help with inserting Flash into MySQL database

2002-09-04 Thread Mike Krisher
Right, but you need to insert your code block in a way that it is executed and then returns the name of a swf to load. Right now you are loading the client side object/embed tags that then calls another PHP file that returns the name or value of your SWF. You need to combine the two files and

[PHP] question

2002-09-04 Thread dorevh
I have a php question. I would like to enter a while loop, but: I want it to be like this: when $a has a value, while $a... when $b has a value, while $b... (same statements as with $a) when $a has a value, and $b has a value, while $a and $b this is based on a search system in which the user

RE: [PHP] question

2002-09-04 Thread Richard Black
Can you provide a bit more info??? Maybe a real life example of what you're trying to accomplish??? Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED] -Original

RE: [PHP] question

2002-09-04 Thread Steve Bradwell
Maybe try somthing like this, write a function containing all your like statements. function likeStatements( ){ //write your statements in this function if they are always the same. } //then have an if structure like the following that calls that function in a while loop. if ( isset($a)

[PHP] Closing Frames...

2002-09-04 Thread Kondwani Spike Mkandawire
How can I go about closing a Frame using PHP would this be possible considering that PHP is Server Side? I am assuming Frame closing is similar to Window closing (I am trying to avoid doing this in JavaScript in case someone has JavaScript disabled on their browser)... Thanks in advance...

[PHP] Re: Closing Frames...

2002-09-04 Thread Erwin
Kondwani Spike Mkandawire wrote: How can I go about closing a Frame using PHP would this be possible considering that PHP is Server Side? I am assuming Frame closing is similar to Window closing (I am trying to avoid doing this in JavaScript in case someone has JavaScript disabled on their

[PHP] How do I keep a page from caching in I.E

2002-09-04 Thread DonPro
Hi, Using I.E. 5.5. I can't seem to keep a page from caching. When I click on the browser BACK button, I get the cached page so I have to click on Refresh to get the actual page content. I've placed the following at the top of the HTML file but it doesn't seem to do anything. Any help would be

Re: [PHP] question

2002-09-04 Thread skitum
I'm not sure what do you want to do, but maybe this can help you: if($a == $value $b == $value) { //do something } elseif($a == $value $b != $value) { //... } elseif($a != $value $b == $value) { //... } else { //... } I hope this help Peace Love skitum - Original Message - From:

[PHP] cyrillics

2002-09-04 Thread Vladislav Kulchitski
Hi, I just created a forum and now beta-testing it, I am having problems submitting entries written in cyrillics. It sort of recognizes cyrillics in textarea but recodes it so that it makes it unreadable, while in input text= name= it doesn't recognize cyrillics at all and acts as though no input

[PHP] String operation

2002-09-04 Thread Richard Fox
Hi Given string1 = /home/web/ string2 = /home/web/www/index.php How can I elegantly do an exclusive or of string1 with string2, that is, I want to end up with string3 = www/index.php Thanks!

Re: [PHP] String operation

2002-09-04 Thread Bas Jobsen
$string3 = str_replace($string1,'',$string2); ??? Op woensdag 04 september 2002 17:04, schreef Richard Fox: Hi Given string1 = /home/web/ string2 = /home/web/www/index.php How can I elegantly do an exclusive or of string1 with string2, that is, I want to end up with string3 =

RE: Betr: RE: [PHP] question

2002-09-04 Thread Richard Black
Where are you generating the query and fetching the row? And what are the queries being run? Possibly a better way to do the first bit would be as follows: $and = ; if ($itemname) { echo $n.nbsp;.$name./font; $and = and ; } if ($itemcolor) { echo $and.$c.nbsp;.$color./font; }

[PHP] LOC counters

2002-09-04 Thread Todd Pasley
Hi, Firstly, please resist the opportunity to flame I'm looking for a PHP (among other things) Line Of Code counter. Has anyone used any descent ones? I was thinking of writing one myself, but, if there are others available, I might as well save the time. There is much debate over the

Re: [PHP] LOC counters

2002-09-04 Thread Robert Cummings
Todd Pasley wrote: Hi, Firstly, please resist the opportunity to flame I'm looking for a PHP (among other things) Line Of Code counter. Has anyone used any descent ones? I was thinking of writing one myself, but, if there are others available, I might as well save the time.

[PHP] Re: How do I keep a page from caching in I.E

2002-09-04 Thread Victor V. Evtushenko
Hi, Donpro wrote: Hi, Using I.E. 5.5. I can't seem to keep a page from caching. When I click on Have you read HOWTO: Prevent Caching in Internet Explorer? http://support.microsoft.com/default.aspx?scid=kb;EN-US;q234067 the browser BACK button, I get the cached page so I have to click on

[PHP] Re: XML vs Everything Else

2002-09-04 Thread Javier Montserat
Spend some time learning about xml and you won't regret it Could you (or anyone else on the list) recommend some good resources (Books / Websites) for learning XML and XSLT? Thanks, Javier _ MSN Photos is the easiest way to

[PHP] Re: XML vs Everything Else

2002-09-04 Thread Geoff Hankerson
Javier Montserat wrote: Spend some time learning about xml and you won't regret it Could you (or anyone else on the list) recommend some good resources (Books / Websites) for learning XML and XSLT? Thanks, Javier http://www.devshed.com/Server_Side/XML http://www.xml.com (look

[PHP] xml to mysql

2002-09-04 Thread DtM
Hi, Is there a way to create a DB from a xml file or it's better to use the xml file for DB, i have lot of files so i think a DB will be better. If you know a program or tutorial let me know. thanx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Project Suggestions

2002-09-04 Thread Ashley M. Kirchner
I have a project that I need some help/suggestions on (actually, it's been there for over 3 years now, I just never addressed it.) I need to, somehow, make our company website easier. When I say easier, I'm referring to how data gets posted on it. 90% of all of our pages contain prices

[PHP] Re: XML vs Everything Else

2002-09-04 Thread eriol
http://www.w3schools.com/xml/default.asp has some tutorials.. It helped me understand the basics of XML and what it can be used for.. They also have some XSL(T) information and tutorials (http://www.w3schools.com/xsl/default.asp) as well.. Take care.. peace.. eriol Javier Montserat [EMAIL

RE: [PHP] question

2002-09-04 Thread David Buerer
while($a) { [statments] } while($b) { [statments] } while($c) { [statments] } or while(isset($a)) { [statments] } while(isset($b)) { [statments] } while(isset($c)) { [statments] } would both work well depending on your particular situation -Original Message- From: Richard Black

Re: [PHP] XML vs Everything Else

2002-09-04 Thread Rodolfo Gonzalez
On Tue, 3 Sep 2002, Geoff Hankerson wrote: Spend some time learning about xml and you won't regret it Sorry for the off topic, but in fact XML is not that hard to learn, it's just custom markup that needs to follow certain rules. The important part is the parser or the program logic to work

[PHP] Caching Problem

2002-09-04 Thread Roland Swingler
Hi I have a problem with caching on IE 5.1.4 on Mac Os X. (PHP 4.0.5) The page I want to use is a simple file upload page that works by: ?php if ($HTTP_POST_VARS['submit'] == submit) { then upload the file... } ? Rest of document. The form action returns to the same page (to allow you to

Re: [PHP] Caching Problem

2002-09-04 Thread Jed Verity
Hi, Roland, There might be a better way to do this, but you could try to use the header() function after your upload takes place to redirect the browser to the same page, using GET. Something like... ?php if ($HTTP_POST_VARS['submit'] == submit) { then upload the file... header(Location:

Re: [PHP] Caching Problem

2002-09-04 Thread Marek Kilimajer
Use header(Location: page.php); to redirect the browser, you should allways do it after a post that changes or adds or deletes some data on the server. Roland Swingler wrote: Hi I have a problem with caching on IE 5.1.4 on Mac Os X. (PHP 4.0.5) The page I want to use is a simple file upload

Re: [PHP] Caching Problem

2002-09-04 Thread Jed Verity
Oops. There was an extra period at the end there (after PHP_SELF). ?php if ($HTTP_POST_VARS['submit'] == submit) { then upload the file... header(Location: http://.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); } ? On the threshold of genius, Jed Verity wrote: Hi, Roland, There might be a

RE: [PHP] xml to mysql

2002-09-04 Thread Andrew Hill
Hi, Virtuoso http://www.openlinksw.com/virtuoso can do the opposite - represent tables and SQL queries, either from relational data in Virtuoso or another back-end database (including MySQL and all the usual suspects) and provide an XML document in real time for PHP to use. Virtuoso Universal

Re: [PHP] Help with inserting Flash into MySQL database

2002-09-04 Thread Mitja Stepan
I don't thin I understand that... :) Can you give me an example. Or if I understand correctly, I have to use interface, a .swf file (caled with object tags) and this .swf file have to get information (data form database) throught .php file...? -- Lp, Mitja Mike Krisher [EMAIL PROTECTED] wrote

[PHP] php mysql error

2002-09-04 Thread ROBERT MCPEAK
Our box recently went down and after reconfiguring it we're left with a semi-operation mySQL. One error I'm getting is this: mysql select region from clip_art where region is not null and released = 'yes' group by region; ERROR 1: Can't create/write to file '/tmp/#sqld0e_76_1.MYI' (Errcode: 13)

Re: [PHP] php mysql error

2002-09-04 Thread Adam Williams
whats the permissions on /tmp? it should be set to 1777 Adam On Wed, 4 Sep 2002, ROBERT MCPEAK wrote: Our box recently went down and after reconfiguring it we're left with a semi-operation mySQL. One error I'm getting is this: mysql select region from clip_art

RE: [PHP] php mysql error

2002-09-04 Thread Jay Blanchard
[snip] Our box recently went down and after reconfiguring it we're left with a semi-operation mySQL. One error I'm getting is this: mysql select region from clip_art where region is not null and released = 'yes' group by region; ERROR 1: Can't create/write to file '/tmp/#sqld0e_76_1.MYI'

Re: [PHP] Re: Apache 2.0

2002-09-04 Thread Lars Hecking
No luck. error_log: [Wed Sep 04 15:01:44 2002] [notice] Apache/2.0.40 (Unix) mod_ssl/2.0.40 OpenSSL/0.9.6g PHP/4.3.0-dev configured -- resuming normal operations access_log: 10.1.65.81 - - [04/Sep/2002:15:01:51 +0100] GET /home/lhecking/test.php HTTP/1.1 304 0 Found the

Re: [PHP] php mysql error

2002-09-04 Thread Marek Kilimajer
Check file and drectory permisions. ROBERT MCPEAK wrote: Our box recently went down and after reconfiguring it we're left with a semi-operation mySQL. One error I'm getting is this: mysql select region from clip_art where region is not null and released = 'yes' group by region; ERROR 1: Can't

[PHP] How do I get milliseconds?

2002-09-04 Thread DonPro
Using the following code, date(His) I get the hours, minutes and seconds. Is there a way to extend this so that I get the milliseconds too? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do I get milliseconds?

2002-09-04 Thread Jay Blanchard
[snip] Using the following code, date(His) I get the hours, minutes and seconds. Is there a way to extend this so that I get the milliseconds too? [/snip] $ms = (date(s)/1000); I don't think that there is a method to return it. I looked through php.net (searched millisecond and milliseconds)

[PHP] XML doubt

2002-09-04 Thread Rodrigo Dominguez
I don't know how to work with XML... I know that it's a good standard to pass information between computer or applications, but I don't know how to separe my data from my presentation on my PHP projects. I always use OOP, I organize all the data in databases and clases, but I always have to put

RE: [PHP] How do I get milliseconds?

2002-09-04 Thread Jay Blanchard
[snip] [snip] Using the following code, date(His) I get the hours, minutes and seconds. Is there a way to extend this so that I get the milliseconds too? [/snip] $ms = (date(s)/1000); I don't think that there is a method to return it. I looked through php.net (searched millisecond and

Re: [PHP] How do I get milliseconds?

2002-09-04 Thread Jackson Miller
microtime(); will return microseconds. That is not milliseconds, but it may or may not solve your problem. I don't think there is a way to get milliseconds. -Jackson On Wed, 2002-09-04 at 14:47, DonPro wrote: Using the following code, date(His) I get the hours, minutes and seconds.

[PHP] simple problem

2002-09-04 Thread Cirkit Braker
what would be the best, most efficient way to print something every three times a loop runs for ($i=0; $i$num_products; $i++) { echo something; } this happens every time it runs and has to stay that way but every three times i want to print additional info. Any

[PHP] Re: simple problem

2002-09-04 Thread Philip Hallstrom
add the following: if( $i % 3 == 0 ) { print(something else); } You might need to vary the zero in that equation to get it to print at the right time by which I mean, the above will print something else on the first iteration of the below loop. -philip On Wed, 4 Sep 2002, Cirkit

Re: [PHP] simple problem

2002-09-04 Thread Rasmus Lerdorf
Inside the loop do: if(!($i%3)) { whatever } -Rasmus On Wed, 4 Sep 2002, Cirkit Braker wrote: what would be the best, most efficient way to print something every three times a loop runs for ($i=0; $i$num_products; $i++) { echo something; } this

Re: [PHP] XML doubt

2002-09-04 Thread Geoff Hankerson
Rodrigo Dominguez wrote: I don't know how to work with XML... I know that it's a good standard to pass information between computer or applications, but I don't know how to separe my data from my presentation on my PHP projects. I always use OOP, I organize all the data in databases and clases,

Re: [PHP] simple problem

2002-09-04 Thread Adam Williams
if ($i%3 = 0) { echo something; } On Wed, 4 Sep 2002, Cirkit Braker wrote: what would be the best, most efficient way to print something every three times a loop runs for ($i=0; $i$num_products; $i++) { echo something; } this happens every time it runs

[PHP] Re: simple problem

2002-09-04 Thread nicos
Hi, On every loop, just put the text you want to add to a variable. like if($i == 0) echo first print; elseif($i == 1) echo second; elseif($i == 2) echo third; etc... -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Cirkit Braker [EMAIL PROTECTED]

Re: [PHP] XML doubt

2002-09-04 Thread Geoff Hankerson
Forgot a step: (1C) make an xslt stylesheet which is basically just a beefed-up html page. Check out devshed.cm xml.com and w3c.org for info on xslt stlyesheets Geoff Hankerson wrote: Rodrigo Dominguez wrote: I don't know how to work with XML... I know that it's a good standard to pass

[PHP] Re: simple problem

2002-09-04 Thread nicos
Sorry I hadn't read well, yes use if(!($i %3)) echo lala; -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi, On every loop, just put the text you want to add to a variable.

RE: [PHP] How do I get milliseconds?

2002-09-04 Thread Mike richardson
If you are looking for milliseconds on the current time, see the examples on microtime(): http://www.php.net/manual/en/function.microtime.php Here is a summary of how to get milliseconds: list($usec, $sec) = explode( ,microtime()); $milliseconds = (((float)$usec/1000) + (float)$sec); I

[PHP] PHP/XML (Validation)

2002-09-04 Thread Robert Samuel White
Hello, From reading the docs on XML functions for PHP, I understand that validation is not included. Does any one know where there is a package for PHP that is already developed or resources where I can learn how to do this myself? Thank you. -Samuel

RE: [PHP] Project Suggestions

2002-09-04 Thread Johnson, Kirk
Things I want to do: - convert this site into a dynamic one, where I can very easily change the layout of things whenever it comes time to revamp the site into a new design. I have not worked with any of the templating systems, but here is a home-grown one. Separate the

Re: [PHP] Project Suggestions

2002-09-04 Thread Ashley M. Kirchner
Johnson, Kirk wrote: The main thing to think about here is authentication: making sure people can access only their own data and nobody else's. Also, make sure everyone involved shares a clear idea of who bears responsibility for update mistakes. If the user has the ability to change their

[PHP] LDAP Authentication problem

2002-09-04 Thread Brad Harriger
I'm trying to retrieve information from an NDS server using LDAP functions in PHP 4.06. I am able to establish the connection and bind to the server using an anonymous bind, but when I try to bind as a valid user, the app seems to run in an infinite loop. I'm not sure where to look for the

[PHP] check for a number

2002-09-04 Thread Fifield, Mike
I am using substr($f, 0, 1); to get the first character of a string but what to be able to tell if the first character is a digit or a letter is there a way to do this?

RE: [PHP] check for a number

2002-09-04 Thread Steve Bradwell
is_int($f) will return true if $f is an integer, false otherwise. Check http://www.php.net/manual/en/function.is-int.php HTH, Steve. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 4:04 PM To: [EMAIL PROTECTED] Subject: [PHP] check

Re: [PHP] check for a number

2002-09-04 Thread Chris Boget
I am using substr($f, 0, 1); to get the first character of a string but what to be able to tell if the first character is a digit or a letter is there a way to do this? ereg( ^[0-9], $f ) will let you know if the first character is a digit or not... Chris -- PHP General Mailing List

[PHP] Re: check for a number

2002-09-04 Thread nicos
Hi, if(is_numeric($return = substr($f, 0, 1))) etc... You can look at the manual to get the list of the is_() functions: is_array is_bool is_callable is_double is_float is_int is_integer is_long is_null is_numeric is_object is_real is_resource is_scalar is_string etc. -- Nicos

[PHP] multiple keywords in search boxes

2002-09-04 Thread Jason
Hi, What is the necessary code to return a recordset from a single text box with more than one keyword in it (like most search engines do)? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting array question

2002-09-04 Thread timo stamm
Hi Javier, I think parsing the listing into a multidemensional array is the answer. But actually, I do not yet know how that would look like in PHP. But I can give you an example of how it is done in ActionScript (Ecmascript). file_arr[n] = [name, date] Now you can sort file_arr by

Re: [PHP] continuation to the ftp story

2002-09-04 Thread timo stamm
Hi Victor, the error code (you are currently suppressing) should give you some directions. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple keywords in search boxes

2002-09-04 Thread Robert Cummings
Jason wrote: Hi, What is the necessary code to return a recordset from a single text box with more than one keyword in it (like most search engines do)? Thanks This is basic, and syntax is not checked... if( is_array( ($words = split( '[[:space:]]+', $GET['keywordInput'] )) )

Re: [PHP] XML doubt

2002-09-04 Thread Rodrigo Dominguez
Ok, thank you just one more doubt Is it threading safe? For example: At 13:30:10 [Proccess 1] cliente request index.php At 13:30:11 [Proccess 1] index.php is putting the content of the querey into index.xml At 13:30:12 [Proccess 2]a new client request index.php At 13:30:13 [Proccess 2]a new

Re: [PHP] limit in a loop function to prevent server load

2002-09-04 Thread timo stamm
Hi Electroteque, Am Dienstag den, 3. September 2002, um 10:14, schrieb Bas Jobsen: hi there i was wondering if there was a way to limit the ammount of items in a loop to execute sleep then execute the rest of the items to prevent server load ? for($i=0;...) {

[PHP] phpdoc CHM 9th sample out

2002-09-04 Thread Gabor Hojtsy
Hi! For those Windows users who are interested in a useable help system, the 9th sample of our new CHM edition is out at http://weblabor.hu/php-doc-chm It includes a workaround for the most annoying IE6 bug we ever met (thanks to Brendan for the tips!), and also simplifies skin switching. For

[PHP] post doesn't work?

2002-09-04 Thread Matt Zur
I have a form that posts to another php file. But it won't display the var? It just shows a blank screen. For example test.php has form input name test2.php prints name On test2.php it shows a blank screen, but if I assign $name on test2.php and reload, it will print the var. Is there

[PHP] Re: post doesn't work?

2002-09-04 Thread nicos
If you have register globals off, you must use $_POST['name'] and not $name. Check your php.ini (? phpinfo(); ?) -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Matt Zur [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I have

[PHP] Re: post doesn't work?

2002-09-04 Thread Matt Zur
Didn't seem to fix it. -Matt [EMAIL PROTECTED] wrote: If you have register globals off, you must use $_POST['name'] and not $name. Check your php.ini (? phpinfo(); ?) -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Matt Zur [EMAIL

  1   2   >