[PHP] comparisons

2002-03-22 Thread Warwick Berg

Hi

Just learning php from the bottom. Can someone help with syntax please?

Want to know about using ifs :

If the string value "john" is present in the variable "jeff" then do, etc,
etc. How do we see if a value is present in a string?

Thanks
Warwick




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: I rest my case

2001-10-30 Thread Warwick

OK, there goes any pretense of intelligence that I may have been able to 
muster ;-)

The AddType tag was found inside another as follows:



Is there some way I can check if this module is present, otherwise what 
you're saying is that the AddType isn't being executed if the  is 
false, yes?

What a pillock. I can see this is going to be some learning curve.
Warwick



Jason Brooke wrote:

> John, Jason didn't literally mean for you to search for the exact string
> '' - he was telling you to look through the various types of
>  tags found in your httpd.conf file, such as
> ,  etc etc
> 
> 
>> There is no  element in the httpd.conf. Is that where I should be
>> looking?
>> Warwick
>>
>>
>> Jason Murray wrote:
>>
>> >> Hey thanks guys for the help, but it's still not happening.
>> >> Apache had already the AddType lines mentioned by y'all.
>> >
>> > It's possible the AddType lines are inside a container that
>> > will ensure they're not executed. Backtrack to the 
>> > element that the AddType lines are in, and see what it does.
>> >
>> > Jason
> 
> 
> 
> 


-- 
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] Re: I rest my case

2001-10-30 Thread Warwick

There is no  element in the httpd.conf. Is that where I should be 
looking?
Warwick


Jason Murray wrote:

>> Hey thanks guys for the help, but it's still not happening.
>> Apache had already the AddType lines mentioned by y'all.
> 
> It's possible the AddType lines are inside a container that
> will ensure they're not executed. Backtrack to the 
> element that the AddType lines are in, and see what it does.
> 
> Jason
> 


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




[PHP] Re: I rest my case

2001-10-30 Thread Warwick

Hey thanks guys for the help, but it's still not happening. Apache had 
already the AddType lines mentioned by y'all.

Any other ideas?

Thanks
Warwick




J W W L Berg wrote:

> Hi all
> 
> Sorry about what is probably a total dickhead about to enter your midst,
> but I've never installed php or seen it much at all before but am trying
> to do it now.
> 
> Using RH 7.1 and Apache 1.3.19
> 
> Want to install php4 and mysql combo and totally ignorant.
> 
> Installed php rpm.
> 
> Restarted apache in case that was needed.
> 
> made hello.php  and pointed browser at it.
> 
> Got the text, rather than executing it.
> 
> Can I surmise that apache isn't set up properly, and if so, could someone
> please point me towards relevant assistance. Got really confused with the
> "manual", etc. Not that bright I suppose ;-)
> 
> Thanks in advance
> Warwick
> 
> 
> 
> 
> 
> 


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




[PHP] I rest my case

2001-10-30 Thread Warwick

Hi all

Sorry about what is probably a total dickhead about to enter your midst, 
but I've never installed php or seen it much at all before but am trying to 
do it now.

Using RH 7.1 and Apache 1.3.19

Want to install php4 and mysql combo and totally ignorant.

Installed php rpm.

Restarted apache in case that was needed.

made hello.php  and pointed browser at it.

Got the text, rather than executing it.

Can I surmise that apache isn't set up properly, and if so, could someone 
please point me towards relevant assistance. Got really confused with the 
"manual", etc. Not that bright I suppose ;-)

Thanks in advance
Warwick






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




[PHP] Total Newbie in over head

2001-10-30 Thread Warwick

Hi all

Sorry about what is probably a total dickhead about to enter your midst, 
but I've never installed php or seen it much at all before but am trying to 
do it now.

Using RH 7.1 and Apache 1.3.19

Want to install php4 and mysql combo and totally ignorant.

Installed php rpm.

Restarted apache in case that was needed.

made hello.php  and pointed browser at it.

Got the text, rather than executing it.

Can I surmise that apache isn't set up properly, and if so, could someone 
please point me towards relevant assistance. Got really confused with the 
"manual", etc. Not that bright I suppose ;-)

Thanks in advance
Warwick




-- 
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] include ("foo.php") not working

2001-07-25 Thread Andy Warwick

> I am running PHP 4.0.6 on my Mac OSX using apache and MySQL.

> when I include the statement  then rather than
> parsing the file and displaying the results the whole file is just dumped to
> screen as a text file.  Interesting the same problem occurs whatever the
> file extension so the same thing happens for foo.htm, foo.html and foo.txt!

Jon

Make sure you have Unix line endings on the file, rather than Mac (if you
are using BBedit - which I heartily recommend - you can change this in the
preferences and from the pop-up menu just below the title bar).

I had the same problem the other day and that solved it for me.

Regards

-- 
Andy Warwick   

email: [EMAIL PROTECTED] PGP ID: 0xB1D73499

Creed New Media Designtel: 07976 205085
Nottingham, England   url: http://www.creed.co.uk

website production - internet programming - new media consultancy
cdrom multimedia - graphic design - digital image retouching




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




[PHP] Loading SQL files (not CSV) into mySQL

2001-04-03 Thread Andy Warwick

I'm after some pointers on how to dump and load SQL files to and from mySQL
using a PHP/HTML form.

I've read the manual about "LOAD DATA INFILE", but as far as I can tell that
won't help in this case. Unfortunately, CSV files are not an option
(client's demands... go figure).

What I'm after is dumping/uploading SQL files of the form:

==
#
# PHP/MySQL Demo - Table Dump
# 

#
# Structure
#

DROP TABLE IF EXISTS demo;
CREATE TABLE demo (
   id tinyint(2) unsigned zerofill NOT NULL auto_increment,
   name char(50) NOT NULL,
   logo_url char(50) NOT NULL,
   page_colour char(6) DEFAULT 'FF' NOT NULL,
   last_order datetime DEFAULT '-00-00 00:00:00' NOT NULL,
   PRIMARY KEY (id),
   KEY id (id),
   UNIQUE id_2 (id)
);

#
# Data
#

INSERT INTO demo (id, name, logo_url, page_colour, last_order) VALUES (
'01', 'CompanyName', 'logo.gif', '99CCFF', '2001-04-06 13:21:31');
==

Complete with table creation and data inserts. In effect, it needs to be
standalone text files full of SQL commands.

I know it can be done, because phpMyAdmin has exactly this facility. But
even after studying the code of that carefully, I can't tell which specific
pieces are handling this enough to extract the facility.

Can anyone point me, or is willing to donate, any articles/code snippets/etc
that will help.

TIA

Andy Warwick


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




[PHP-CVS] RE: [PHP-CVS-DAILY] cvs: php4 / ChangeLog

2001-01-21 Thread Warwick Smith

unsubscribe

Regards,

Warwick Smith
Electronic Services Officer / Webmaster
Email: [EMAIL PROTECTED]
Web:   http://www.imvs.sa.gov.au

-Original Message-
From: changelog [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 12:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP-CVS-DAILY] cvs: php4 / ChangeLog


changelog   Sun Jan 21 18:09:11 2001 EDT

  Modified files:
/php4   ChangeLog
  Log:
  ChangeLog update

Index: php4/ChangeLog
diff -u php4/ChangeLog:1.595 php4/ChangeLog:1.596
--- php4/ChangeLog:1.595Sat Jan 20 18:09:12 2001
+++ php4/ChangeLog  Sun Jan 21 18:09:09 2001
@@ -1,3 +1,26 @@
+2001-01-21  Rasmus Lerdorf  <[EMAIL PROTECTED]>
+
+* NEWS: This probably should have a NEWS entry
+
+* main/fopen-wrappers.c
+  main/network.c
+  main/php_open_temporary_file.c
+  configure.in
+  ext/mysql/libmysql/libmysql.c
+  ext/standard/basic_functions.c
+  ext/standard/dns.c
+  ext/standard/file.c
+  ext/standard/filestat.c
+  ext/standard/fsock.c
+  ext/standard/ftp_fopen_wrapper.c
+  ext/standard/http_fopen_wrapper.c
+  ext/standard/mail.c
+  ext/standard/syslog.c:BeOS patch from [EMAIL PROTECTED]
modified somewhat by Rasmus
+
+2001-01-21  Jani Taskinen  <[EMAIL PROTECTED]>
+
+* ext/bz2/config.m4: Remove double 'yes' output.
+
 2001-01-20  Sterling Hughes  <[EMAIL PROTECTED]>

 * ext/sablot/sablot.c:



-- 
PHP CVS 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]