Re: [PHP] Help, please!

2001-10-18 Thread Papp Gyozo
check: http://www.php.net/manual/en/function.ini-set.php - Original Message - From: "Valentin V. Petruchek" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 4:00 PM Subject: [PHP] Help, please! > Hello, Professionals! > > I've such problem

Re: [PHP] help with include

2002-01-12 Thread sundogcurt
I think you can use a URL when you specify your value in the include statement, can you not? [EMAIL PROTECTED] wrote: >Hi, I need some help with the include function. >I have a phpBB script and want to put the config.inc.php file in a password >protected directory, Easy peasy you might say, and

Re: [PHP] help with include

2002-01-12 Thread Mehmet Kamil ERISEN
I have installed phpBB several times. Your problem should not be the password protected directory. The install.php script tries to wright into the config file. so, you have to chmod your file and give r/w access to everybody. once insallation is completed, then change it the was it was originally.

Re: [PHP] help using ereg_replace()

2002-01-14 Thread Jimmy
Hi Erik, > "$phone" is a 10-digit string. > I would like the output to be > $phone = "(555) 555-"; you don't need regex to do that. just insert add "(" to the beginning of $phone, add ") " to the 4th position, and "-" to the 4th position from behind, using substr_replace() function. anyway

Re: [PHP] help installing php

2002-01-17 Thread Anas Mughal
I haven't seen any RPMs for PHP. However, I have installed using the source. It works fine. Try to install the CGI version first. That is easier. Than, you could dive into the apache module stuff. --- Juni Adi <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new to PHP (actually I'm just about to

Re: [PHP] help installing php

2002-01-17 Thread Miles Thompson
Juni, Apache, MySQL and PHP are really well debugged when it comes to installation, and I found installation from source easier than messing with .rpms on RH systems and with dselect on Debian. The following article at DevShed has really good instructions: http://www.devshed.com/Server_Side/PH

Re: [PHP] help installing php

2002-01-17 Thread Juni Adi
On Thu, 17 Jan 2002, Anas Mughal wrote: |I haven't seen any RPMs for PHP. Yes there are RPMs for PHP (ftp.mirror.ac.uk) |However, I have installed using the source. It works |fine. |Try to install the CGI version first. That is easier. |Than, you could dive into the apache module stuff. Ok, I'm

Re: [PHP] help installing php

2002-01-18 Thread Miles Thompson
If I remember correctly, when you install MySQL and Apache from rpm you get the binary version and no source is installed on your system. It's been a while since I've looked for them, but there used to be a source rpm for MySQL at the MySQL site, and it took some digging to find it. Ditto for

Re: [PHP] help installing php

2002-01-18 Thread R'twick Niceorgaw
Mughal" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 2:09 PM Subject: Re: [PHP] help installing php > On Thu, 17 Jan 2002, Anas Mughal wrote: > > |I haven't seen any RPMs for PHP. > Yes there are RPMs for PHP (ftp.mirror.ac.uk) >

Re: [PHP] help installing php

2002-01-18 Thread mike cullerton
hi juni, although i totally agree with the folks who recommended you compile php from source, maybe it's time you sat down :) compiling apache, mysql and php from source can tax even the greatest patience the first time it is tried. hopefully, here's a couple things to think about. create a

Re: [PHP] help installing php

2002-01-18 Thread Carl J Meyer
On Fri, 18 Jan 2002, Juni Adi wrote: > > Ok, I'm now in the middle of installing it from > source code. But I'm not sure where the path to > apache and mysql source code to fill in : > ./configure --with > apache=/path/to/apache_source_code --with > mysql=/path/to/mysql_source_code > > I 'm eve

Re: [PHP] help installing php

2002-01-19 Thread Juni Adi
Ok, I did it through ./configure --prefix=/usr/local/php3 --with-mysql --with-apx I didn't give the '--with' any directory argument (and for the prefix, I din't create the directory first). For the first try, it failed (said that apx is broken). But after a couple retry, it worked! Brb..I don'

Re: [PHP] Help with query

2002-02-09 Thread Bas Jobsen
$number=mysql_num_rows(mysql_query("SELECT DISTINCT date FROM $table")); Op zaterdag 09 februari 2002 13:41, schreef Daniel Alsén: > Hi, > > i can´t seem to get my head to wake up... > > How would i do to count how many different values that exists in a mysql > field? Ie i have a date-field and ne

Re: [PHP] Help with query

2002-02-09 Thread val petruchek
> Hi, > > i can?t seem to get my head to wake up... > > How would i do to count how many different values that exists in a mysql > field? Ie i have a date-field and need to know how many different dates that > exists in the table. select count(distinct name) from site; in Mysql Valentin Petruche

Re: [PHP] Help with functions.

2002-02-28 Thread Greg Donald
> I need some help with functions. Does anyone know of a good place to learn > about functions? Will someone be willing to teach me what I need to know about > functions in PHP? Thank you, Here's a really simple example: \n"; // build up some more html $html .= "\$global_var + \$local_var + \$p

RE: [PHP] Help with MySQL.

2002-03-05 Thread Dan Vande More
Once in your telnet session, from the command line type 'telnet localhost 3306' or 'telnet 127.0.0.1 3306' Keep in mind this only proves the host is there, it doesn't disprove. The machine may not know itself as localhost(unlikely) or the mysql server may not be living on 3306. If you get some wei

Re: [PHP] Help in PHPDoc

2002-03-12 Thread Andrey Hristov
I used it few times. You have to make modifications to index.php, so the engine will know where to look to for .php scripts that have to be documented. I've attached my index.php - Original Message - From: "S.Murali Krishna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Marc

Re: [PHP] Help in PHPDoc

2002-03-12 Thread S.Murali Krishna
Hi Andrey Thanks for your kind response first. I did the way you told but still after executing index.php, there is nothing in my doc directory just see the following snap of my code. I want to create documentation for ./xPage/xPagedoc.inc file and want the documentation to be in ./xPage

Re: [PHP] Help in PHPDoc

2002-03-12 Thread Andrey Hristov
t;, "inc") ); in index.php Regards, Andrey Hristov - Original Message - From: "S.Murali Krishna" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: "S.Murali Krishna" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Se

RE: [PHP] Help need (Urgent)

2002-05-01 Thread Steve Bradwell
How are you printing the vars?? like this? echo $des; -Steve -Original Message- From: Luiz Rafael Culik Guimaraes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Help need (Urgent) Dear Friends I have an form that get the user i

Re: [PHP] Help need (Urgent)

2002-05-01 Thread Philip Olson
Hi, In meu.php first do this: phpinfo(); And notice all the beautiful information within. Towards the botton you'll see a section called "PHP Variables" that will have something like _GET. All GET information will live in here ($_GET), So: print $_GET['des']; If you're trying $des and it

RE: [PHP] Help with Bookmark

2002-05-03 Thread Brian McGarvie
an idea would to be not to use flat files for it... use a database, try mysql... -Original Message- From: Rodrigo [mailto:[EMAIL PROTECTED]] Sent: 03 May 2002 08:02 To: [EMAIL PROTECTED] Subject: [PHP] Help with Bookmark Hi guys I'm trying to make a online bookmark adress book, this bo

Re: [PHP] Help .. deprecated messages

2002-05-22 Thread 1LT John W. Holmes
It's just a warning, not an error. It's probably always been there, but your error reporting was set to a level that didn't display it. Turn your error reporting level up in php.ini. it's set lower in PHP 4.1+ than it has been in the past. Best fix is to of course not use the mysql_db_query() fun

RE: [PHP] help me please! :)

2002-06-10 Thread Kevin Porter
You need to escape the dollar sign with a backslash to prevent PHP trying to interpolate the variable $liv (which presumably doesn't exist). echo "\$liv_$i"; HTH, - Kev > -Original Message- > From: Veronica Ghezzi [SMTP:[EMAIL PROTECTED]] > Sent: 10 June 2002 09:24 > To: Php-General

Re: [PHP] help me please! :)

2002-06-10 Thread PHPCoder
"; $i ++; } ?> Simply echoing the \$liv_$i will not work, need to evaluate the string after parsed as in example above... Kevin Porter wrote: >You need to escape the dollar sign with a backslash to prevent PHP trying to >interpolate the variable $liv (which presumably doesn't exist). > >echo

Re: [PHP] help me please! :)

2002-06-10 Thread Marek Kilimajer
Try: for ($i=1; $i<=$n;i++){ ... $tmp="liv_$i"; echo "{$$tmp}"; ... } Veronica Ghezzi wrote: >Hi, > i must get the information saved in a several select list named > liv_1 > liv_2 >

Re: [PHP] help me please! :)

2002-06-10 Thread Josep R. Raurell
This work for me: liv_1 liv_2 liv_3 liv_n To get the value i work in this way... $liv= $_REQUEST['liv']; $n = 50; for ($i=1; $i<=$n;i++){ ... echo $liv[$i]; Josep R. Raurell -- PHP General Mailing List (

Re: [PHP] Help! authorization question...

2002-06-13 Thread Julie Meloni
RB> I am new to PHP and trying to learn. I am trying a tutorial and this is the RB> script. It is supposed to pop up a box requiring a username and pass. but RB> all I get is If you are using the CGI version of PHP, HTTP-based authentication will not work. That is stated in the tutorial. -

Re: [PHP] help with preg_replace()

2002-07-01 Thread Analysis & Solutions
On Mon, Jul 01, 2002 at 01:50:31PM +0200, Gregor Jak¹a wrote: > > "word" = "word" > >word = >| word | > >"word = >|word | > > preg_replace("#^[<|>]?[^\"](.*?)[^\"]$#i", "| \\0 |", $string); preg_replace('/^(<|>)+"?([^"]*)"?$/', '\\1| \\2 |', $string); I noticed that when there are quotes, yo

Re: [PHP] Help - I'm New

2002-07-02 Thread Tyler Longren
you must be tired from searching the manual all day for your answer. :) Check here: http://www.php.net/manual/en/install.apache.php There's a section on installing with Win32 -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 2 Jul 2002 17:14:32 -0400

Re: [PHP] Help - I'm New

2002-07-02 Thread B i g D o g
I hate to sound like an ass, but the best thing would to really read the php manual @ php.net or buy a PHP programming book... There are many great books out there on PHP that you can get. 1. Check under php.net for installation and configuration 2. Review include(), include_once(), require() a

Re: [PHP] Help - I'm New

2002-07-02 Thread Gurhan Ozen
Hi Kit, For your first question, take a look at: http://www.php.net/manual/en/installation.php and click on the windows links.. For your second question, I am really not sure what you are asking.. What exactly do you want to do? Just add a form to a php page? or have a form automatically added by

Re: [PHP] help with PHPwebsite

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 09:49:14PM -0400, admin wrote: > > Warning: Cannot add header information - headers already sent by > (output started at C:\apache\htdocs\php\setup\index.php:9) > in C:\apache\htdocs\php\htmlheader.php on line 30 The Manual at http://www.php.net/manual/en/function.heade

Re: [PHP] HELP: Still Learning

2001-10-28 Thread Christian Reiniger
On Sunday 28 October 2001 07:18, jtjohnston wrote: > Still learning! But need syntax help. This works: > mysql_pconnect($host,"MyAccount","MyPassword"); > ... > This does not: > mysql_pconnect($host,"$MyTable","$MyPassword"); Notice something? :) -- Christian Reiniger LGDC Webma

Re: [PHP] HELP: Still Learning

2001-10-28 Thread speedboy
> > Still learning! But need syntax help. This works: > > Notice something? :) Yep, you forgot to paste the error message into the email. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] HELP: Still Learning

2001-10-28 Thread Nikola Karoviæ
"$host" :) - Original Message - From: Christian Reiniger <[EMAIL PROTECTED]> To: jtjohnston <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: 28. listopad 2001 11:15 Subject: Re: [PHP] HELP: Still Learning On Sunday 28 October 2001 07:18, jtjohnston wrote

Re: [PHP] HELP: Syntax Needed

2001-10-28 Thread DL Neil
> Jokes aside, I still don't get it. =the word "it" is part of the difficulty everyone faces in thinking about whether they could help or not - what "it" is, is not apparent 1 there is a problem with a mysql_pconnect() call, and 2 there is a problem with a mysql_query() call. Which one is "it"?

Re: [PHP] HELP: Syntax Needed

2001-10-29 Thread Christian Reiniger
On Sunday 28 October 2001 20:53, jtjohnston wrote: > Jokes aside, I still don't get it. *g* > This works: > mysql_pconnect($host,"AccountName","beep"); > Why doesn;'t this? > > $myconnection = mysql_pconnect($host,$MyTable,$MyPassword); Compare what arguments you pass. Especially the

Re: [PHP] Help - html mail

2001-11-28 Thread Hank Marquardt
http://www.php.net/stripslashes ... in short they are there to ease db insertions. On Wed, Nov 28, 2001 at 05:23:02PM -0500, Brian V Bonini wrote: > I'm passing an html email from a form > like this: > > $message = $message_html; > > where message_html is the text area name. > > mail($to, $su

Re: [PHP] HELP URGENT VARS !!!

2001-11-30 Thread Valentin V. Petruchek
'; } ?> Zliy Pes, http://www.zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] HELP URGENT VARS !!!

2001-11-30 Thread Nicolas Guilhot
You can also use this syntax : $var1="variable 1"; $var2="variable 2"; for ($i= 1; $i < 3; $i++) { echo ${"var$i"}; } -Message d'origine- De : Olivier Masudi [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 30 novembre 2001 12:02 À : [EMAIL PROTECTED] Objet : [PHP] HELP URGENT VARS !!! $n

[PHP] Re: PHP Help required

2001-12-04 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I would like to know if someone could help create: I was kind looking for someone to help show me the way. Not really to do it all. I was just notified by the league pres. that we do not have the budget to pay for anyone else to perfo

[PHP] Re: PHP Help required

2001-12-04 Thread The Big Roach
Eddie, There are some good books to get you started running - literally - with PHP and a database (usually MySQL). I would recommend PHP Fast and Easy (blue cover with red writing). Each chapter focuses on a given task... building tables, then adding to table, then selecting from a table and - of

[PHP] Re: PHP Help required

2001-12-04 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Eddie, > > There are some good books to get you started running - literally - with PHP > and a database (usually MySQL). > I would recommend PHP Fast and Easy (blue cover with red writing). Each > chapter focuses on a given task... buil

Re: [PHP] Help with algorithm

2001-12-12 Thread Andrey Hristov
Make a recursive function which work on global var or on var passed on reference function rec($parent_id, &$the_parent_array){ /// select name, theme_id from some_table where par_id=$parent_id; while ($arr = mysql_fetch_assoc($res)){ $the_parrent_array[$arr['theme_id']]=array('nam

Re: [PHP] help with classes

2001-02-12 Thread Joe Conway
> Was just wondering how to do the following: > > class Foo { > > var $bar = $foo; // causes parse error > var $bar = "$foo"; // causes parse error > var $bar = '$foo'; // works but $foo is not evaluated > > } > ?> > > So how does one correctly assign a variable to a variable inside a class witho

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 20:11:14 -0800 Joe wrote: JC> JC> I was curious too, so I looked it up. Seems you can't. From JC> http://www.php.net/manual/en/language.oop.php JC> JC> "Note: In PHP 4, only constant initializers for var variables are JC> allowed. Use constructors for non-constant initia

Re: [PHP] help with classes

2001-02-12 Thread Sean Cazzell
> So how does one correctly assign a variable to a variable inside a class withot >doing something like: > > var $bar = ''; > $this->bar = $foo; > That's how you have to do it. class MyClass { var $bar; // This is the class's constructor sub MyClass () {

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 23:44:08 -0500 (EST) Sean wrote: SC> SC> That's how you have to do it. SC> SC> SC> class MyClass { SC> var $bar; SC> SC> // This is the class's constructor SC> sub MyClass () { SC> $this->bar = $foo; SC> } SC> } I didn't think php had sub routi

Re: [PHP] help with classes

2001-02-12 Thread Joe Conway
> SC> > SC> That's how you have to do it. > SC> > SC> > SC> class MyClass { > SC> var $bar; > SC> > SC> // This is the class's constructor > SC> sub MyClass () { > SC> $this->bar = $foo; > SC> } > SC> } > > I didn't think php had sub routines like perl? shouldn't that be: > > function MyClass(){ >

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 21:04:30 -0800 Joe wrote: JC> Is this closer to what you were looking for? JC> - Joe JC> JC> JC> class Foo { JC> JC> var $bar; JC> JC> function mymethod(){ JC> JC> global $foo; JC> $this->bar = $foo; JC> JC> } JC> JC> } JC> JC> $foo = "hello world"; JC> JC> e

Re: [PHP] help with classes

2001-02-12 Thread Ankur Verma
you do this in the class constructor class foo { var $bar; function foo($fooval) { $this->bar=$fooval; } } hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Joseph H Blythe" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL

Re: [PHP] help with classes

2001-02-13 Thread Marcus Rasmussen
You can allso do this: //foo.class.php class Foo{ var $bar; function Foo($bar){ $this->bar = $bar; } } //foo.php include("foo.class.php"); $bar = "1234"; $foo = new Foo($bar); //Now: $foo->bar = "1234" Regards: Marcus Rasmussen *** REPLY SEPARAT

Re: [PHP] help with classes

2001-02-13 Thread Jesse Swensen
on 2/13/01 12:04 AM, Joe Conway at [EMAIL PROTECTED] wrote: > > class Foo { > > var $bar; > > function mymethod(){ > > global $foo; > $this->bar = $foo; > > } > > } > > $foo = "hello world"; > > echo ""; > > $cls = new foo(); > $cls->mymethod(); > echo $cls->bar; > > echo ""; > ?> Thi

Re: [PHP] Help with session

2001-02-15 Thread Richard Lynch
I think you want the session_start() and session_register() calls at the top of the script, not buried in your if() statements. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.c

Re: [PHP] Help!! IP functions!!!

2001-02-19 Thread Jason Cox
Use the variable $REMOTE_ADDR. It contains the request ip address. Jason - Original Message - From: "Bruno Freire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 19, 2001 12:34 PM Subject: [PHP] Help!! IP functions!!! > Hi!! > > My name is Bruno, From Brazil!!!

Re: [PHP] Help!! IP functions!!!

2001-02-19 Thread Martin A. Marques
Mensaje citado por: Bruno Freire <[EMAIL PROTECTED]>: > Hi!! > > My name is Bruno, From Brazil!!! > > I need to know how can i discovery the ip address when somebody access > my > home page > > What function can I use Bruno, check the phpinfo() function, which will give you lots of i

RE: [PHP] Help!! IP functions!!!

2001-02-20 Thread Yev
use $HTTP_SERVER_VARS[REMOTE_ADDR] Yev >-Original Message- >From: Bruno Freire [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 19, 2001 11:34 AM >To: '[EMAIL PROTECTED]' >Subject: [PHP] Help!! IP functions!!! > > >Hi!! > >My name is Bruno, From Brazil!!! > >I need to know how can i

Re: [PHP] HELP! IBase - PHP

2001-02-21 Thread Brett Bandy
What do you mean flatlines? Does the solaris machine's CPU move to ~100% utilization? You might be hitting the automatic garbage collection. Use gstat -h to watch your transactions states. Particularly the oldest transaction and the oldest interesting transaction. By default an auto garbage c

Re: [PHP] help change filename.

2001-02-22 Thread Pavel Jartsev
Jan Grafström wrote: > > Hi! > I am trying to change a filename this is my php: > change $filename = "yourfile.php3.xml"; > to $filename = "yourfile2.php3.xml"; > ?> > It doesn´t work do I need some more code to get it working, something > like fopen? > > Thanks for any help. > > Regards > >

Re: [PHP] help change filename.

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 08:57, Jan Grafström wrote: > I am trying to change a filename this is my php: > change $filename = "yourfile.php3.xml"; > to $filename = "yourfile2.php3.xml"; > ?> > It doesn´t work do I need some more code to get it working, something > like fopen? Well, Use PHP i

Re: [PHP] help on select

2001-02-27 Thread Jason Stechschulte
On Tue, Feb 27, 2001 at 03:12:17PM +0700, Yamin Prabudy wrote: > Hi there I had a problem here > I got a database in mysql that contains the date format like this "Mar 12 > 2001" > now i try to sort the database and find out how many data in my MySQL that > had a date > "Mar 12 2001" > > how can

Re: [PHP] Help w/ sprintf

2001-03-03 Thread mailing_list
> What are the directives for the sprintf function to format an integer with > > commas (e.g.: 1,250,560)? you don't mean commas but thousands' grouping??? if you want thousands' grouping it depends on your locale setting! --cut-- For some numeric conversion a radic character (`decimal po

Re: [PHP] Help w/ sprintf

2001-03-03 Thread Philip Olson
consider using number_format, for example : $formatted_number = number_format(1250560, 2); // 1,250,560.00 $formatted_number = number_format(1250560);// 1,250,560 regards, Philip Olson http://www.cornado.com/ On Sat, 3 Mar 2001, Anthony Rodriguez wrote: > What are the directives fo

Re: [PHP] help database creation....

2001-01-11 Thread Ignacio Vazquez-Abrams
On Thu, 11 Jan 2001, Jesus Nava wrote: > Hi everybody!!! > I want to create a new database using a form to take the name of the database. For >some reason I get "Couldn't create database". Can some body tell me what I am doing >wrong... > > if (!$dname) > { > header("Location: http://loc

Re: [PHP] help database creation....

2001-01-11 Thread Web master
better use 'root' user or create a user with enough privilage to create database Jesus Nava wrote: > Hi everybody!!! > I want to create a new database using a form to take the name of the database. For >some reason I get "Couldn't create database". Can some body tell me what I am doing >wrong.

RE: [PHP] HELP! Date formatting

2001-01-16 Thread Boget, Chris
> Ive gotto format a date such as 30/12/1956 to format 30-Dec-1956, > I can not use mktime cause that only provides the timestamp from 1970. > Is there any other method of getting this right. mktime() can be used for this. 0 is from 1970. Negative values are used for dates prior. Chris

RE: [PHP] HELP! Date formatting

2001-01-16 Thread Maxim Maletsky
$date = 30/12/1956; $month = Array(1=>'Jan', 2=>'Feb', 12->'Dec'); // The array of month... function date_format($date) { Global $month; $date = explode('/', $date); // And it became to you an array... return $date[0].'-'.$month[$date[1]].'-'.$date[2]; } //will return 30-Dec-

Re: [PHP] HELP! Date formatting

2001-01-16 Thread Niel Zeeman
Thanx This should make live a bit easier :) - Original Message - From: "Niel Zeeman" <[EMAIL PROTECTED]> To: "php gen list" <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 7:46 AM Subject: [PHP] HELP! Date formatting Hi Ive gotto format a date such as 30/12/1956 to format 30-Dec

RE: [PHP] help me!! Cookie

2001-01-18 Thread Diego Fulgueira
When not explicitly set, a cookie works only for the domain where it was originally set. That means that if the user visits your website using the server IP address, he will receive a cookie that will not work when he uses the domain name instead of the IP address. Therefore, I recomend you set th

Re: [PHP] HELP! REVOKE COMMAND!!!!

2001-01-22 Thread Richard Lynch
> How is the sintaxe of this command Like, a database rollback? That depends on the database, not on PHP. Something not unlike this: $query = "rollback"; mysql_query($query); Only I dunno if the mysql team has that new transaction stuff they bought really integrated yet or not, much less

RE: [PHP] Help!!! MY ODBC!!!!

2001-01-22 Thread Matt Stone
No idea dude, but I will bring the topic back to the top and some all-knowledgable guru will hopefully help you *hint hint* :) -Original Message- From: Bruno Freire [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 January 2001 3:01 AM To: '[EMAIL PROTECTED]' Subject: [PHP] Help!!! MY ODBC

Re: [PHP] Help with XSLT!

2001-02-04 Thread Theo Brinkman
Ok, well from the looks of it I've got it working, thanks to whoever pointed out the conf.php.net archive of the slideshow. The sample files from that slide work fine, but I can't get any of the other samples I've snagged to work. Maybe they're what's broken, but I don't see how. Now that th

Re: [PHP] HELP!!! Upload files!!!!

2001-03-09 Thread Richard Lynch
>Warning: Rename failed (Invalid cross-device link) in >/usr/local/etc/httpd/htdocs/intranet/upload.php on line 26 In Un*x, you can't "rename" a file from one hard drive onto another. That's what you are trying to do. Change your use of rename() to be copy() instead. -- Visit the Zend Store at

RE: [PHP] help with parse

2001-04-03 Thread Jason Murray
> heres what is result in IE...which shouldnt show up at > this code isnt parsing like I expect.. > > if ($HTTP_USER_AGENT = "Mozilla") ^ This needs to be "==" Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: [PHP] help with parse

2001-04-03 Thread Jason Murray
> > > if ($HTTP_USER_AGENT = "Mozilla") > >^ This needs to be "==" Actually, it needs to be " if(substr($HTTP_USER_AGENT, "Mozilla"))". *slap.self* Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- PHP General Mailing L

Re: [PHP] help with parse

2001-04-03 Thread Wade DeWerff
;; [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, April 03, 2001 7:54 PM Subject: RE: [PHP] help with parse >> > > > if ($HTTP_USER_AGENT = "Mozilla") >> >>^ This needs to be "==" > >Actually, it needs to be " i

Re: [PHP] help with parse

2001-04-03 Thread Wade DeWerff
IL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, April 03, 2001 7:54 PM Subject: RE: [PHP] help with parse >> > > > if ($HTTP_USER_AGENT = "Mozilla") >> >>^ This needs to be "==" > >Actually, it needs to be " if(subs

Re: [PHP] Help Needed Please

2001-04-03 Thread David Robley
On Wed, 4 Apr 2001 09:27, Peter Houchin wrote: > Hiya i've got a script that basically draws values from a db and will > display them, as i have multiple records in there and want to display > them all i'm using a while ( ($myrow = mysql_fetch_array($result) ) ) > statement this is all good as

RE: [PHP] Help Needed Please

2001-04-03 Thread Peter Houchin
> > > $rs = "UPDATE main SET system='$system',"; > $rs .= "part='$part',"; > $rs .= "monthly='$monthly'"; > $rs .= "WHERE id='$id'"; > > > $result = mysql_query($rs,$db); > ?> > > $foo = "SELECT * FROM main"; > > $result = mysql_query($foo); > while ( ($myrow = mysql

Re: [PHP] Help Needed Please

2001-04-03 Thread David Robley
On Wed, 4 Apr 2001 11:23, Peter Houchin wrote: > > > > > > $rs = "UPDATE main SET system='$system',"; > > $rs .= "part='$part',"; > > $rs .= "monthly='$monthly'"; > > $rs .= "WHERE id='$id'"; > > > > > > $result = mysql_query($rs,$db); > > ?> > > > > > $foo = "SELECT * FR

Re: [PHP] help with parse

2001-04-04 Thread Renze Munnik
WD wrote: > > heres what is result in IE...which shouldnt show up at > this code isnt parsing like I expect.. > > if ($HTTP_USER_AGENT = "Mozilla") > { > print ("This site best viewed with IE 4 or > better!\n"); > print ("\n"); > print ("\n"); > print ("\n"); > print ("\n"); > } > ?>all... > >

Re: [PHP] help with parse

2001-04-04 Thread Harshdeep S Jawanda
Hi, Renze Munnik wrote: > Have you ever checked the $HTTP_USER_AGENT value from IE? > > IE says: > > "Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)" > (for example) > > So, you shouldn't be checking for Mozilla. IE says that to. You should first check for the existence of "IE" in $HTTP_USER_A

Re: [PHP] help with parse

2001-04-04 Thread Lindsay Adams
; > <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Tuesday, April 03, 2001 7:54 PM > Subject: RE: [PHP] help with parse > > >>>> >>> if ($HTTP_USER_AGENT = "Mozilla") >>> >>>

Re: [PHP] HELP!! comparing arrays

2001-04-06 Thread Yasuo Ohgaki
How about post some code that does not work as expected? (Simpler code is better) Regards, -- Yasuo Ohgaki ""paula"" <[EMAIL PROTECTED]> wrote in message 001501c0bf29$2f35e740$0f01a8c0@pau">news:001501c0bf29$2f35e740$0f01a8c0@pau... Hi- I'm new here and have this problem that's DRIVING ME CRAZ

RE: [PHP] Help..Date Format

2001-05-17 Thread Don Read
On 17-May-01 Jack Sasportas wrote: > OK I have asked the question before and not really gotten the answer, so > I will re-word what I am trying to do. > First I figured out that part of my problem may be how I am storing the > date into mysql from php. > Currently we are using the now() function

Re: [PHP] Help..Parse error

2001-07-19 Thread Steve Edberg
My guess is that you have the short_open_tags option on in your PHP3 config, but off in your PHP4 config. If it's off, PHP will only recognize the tags, not . PHP config params can be set in php.ini, .htaccess, and/or Apache httpd.conf files. Scroll down to short_open_tag in http://w

Re: [PHP] Help..Parse error

2001-07-19 Thread Jack Sasportas
Actually that is the default setting under 4, and the rest of the code works with the short tags, it's definately something code related... I don;t think it likes that code, but can't find anything to help me resolve the problem. I was hoping not to re-write the code just yet... Thanks Steve Edb

Re: [PHP] Help! Parse error.....

2001-07-20 Thread Paul Strange
On Friday 20 July 2001 06:16, Jack Sasportas wrote: > I have some code that runs under php3 perfectly, but now under 4 I get a > parse error > on this specific line, can't figure out how to resolve it. > > the code looks like this > > > > > > the error is in the middle line which is the end of

Re: [PHP] Help! Parse error.....

2001-07-20 Thread Jack Sasportas
Tried the alternative stuff with no luck... Looking for any crazy ideas that might work... Thanks ! Paul Strange wrote: > On Friday 20 July 2001 06:16, Jack Sasportas wrote: > > I have some code that runs under php3 perfectly, but now under 4 I get a > > parse error > > on this specific line, c

Re: [PHP] Help! Parse error.....

2001-07-20 Thread rm
in the great big FWIW department, the error may not be on that line, it may only indicate the point where php recognized an error. I had one page with several includes and html code...php reported a parse error on the main page, I couldn't find it, however, eventually, I tracked the error to an e

Re: [PHP] Help With Includes

2001-07-24 Thread Chris Fry
John, Haven't used this before but if you set id before the include:- $id=2; include("/export/home/bayarea.net/htdocs/webclient.php3"); I'm assuming that you don't have control of the web server - if you do just add html to the list of extensions parsed by php then: $id=2; include("/

Re: [PHP] Help With Includes

2001-07-24 Thread David Robley
On Wed, 25 Jul 2001 10:26, John Holcomb wrote: > Help please! > >I'm trying to use an include with my HTML file. > Inside my HTML file I've tried: > > 1) > > > include("/export/home/bayarea.net/htdocs/webclient.php3?id=2"); > > > AND > > 2) > > > include("Re: [PHP] help regarding mysql
Hello Balaji, Friday, July 27, 2001, 9:12:28 AM, you wrote: BA> Hi friend, BA>i am unable to connect to mysql server today. BA> windows 98 machine. PHP 4.0.6 and Mysql 3.23.36 c:\mysql\bin>> mysql -u balaji -p BA> password:*//pingpong BA> But i am able to connect through php. what

Re: [PHP] help regarding mysql

he reason...But it is giving problem today only.   Thanks for u'r sugestion Daniel.   Warm regards -Balaji - Original Message - From: Daniel Rezny To: [EMAIL PROTECTED] Sent: Friday, July 27, 2001 1:06 PM Subject: Re: [PHP] help regarding mysql Hello Balaji,Friday,

Re: [PHP] HELP!! "print" problem

You're missing a single quote after the value of MAXLENGTH on the line that's not working... Maybe that's the problem. -- [ Swift eNetwork ] Matrix > http://matrix.swifte.net/ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] HELP!! "print" problem

[EMAIL PROTECTED] wrote: > You're missing a single quote after the value of MAXLENGTH on the line > that's not working... Maybe that's the problem. > Yes!! Thanks! I thought I was going crazy. Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] help with fgets

try, $photos[] = $buffer; // without $i in brackets, this means append to the end of the array in the loop, maybe this helps. - Original Message - From: "tk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 7. 19:37 Subject: [PHP] help with fgets > hi. > > i'm try

Re: [PHP] help with fgets

On Monday 07 May 2001 19:37, tk wrote: > when i echo $buffer to the screen it prints out hte content of hte file > line by line > if i echo $photos[i] to the screen it just prints out random numbers > and not the content i'd expect > > (the code i'm using to do this is: > > $i = 0; > while(!feof

Re: [PHP] help with strings...

$GLOBALS[substr($string, 0, 1)] or : $tmp = substr($string, 0, 1); ${$tmp} = 'add whatever value you want'; - Original Message - From: Stig-Ørjan Smelror <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 9:35 AM Subject: [PHP] help with strings... > Hei all. >

<    1   2   3   4   5   6   >