RE: [PHP] Apache

2001-08-03 Thread Angerer, Chad

add yourself to the apache group in the groups file.  This will allow you to
do a chmod for the group on the apaceh dir so you are able to write to it.

chmod +775 I think you would want to do on the directory.

C

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 8:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Apache


This is just a little bit off-topic - sorry

I'm running Mandrake 8.0 and am pretty new to Linux. I want to download my 
entire website to my hard drive and put it in hte /var/www folder, but
apache 
is the owner and the group for that directory. I'm just wondering, if I
chown 
the directory so that I am the owner, would that cause problems somehow? Or 
is it possible to chmod it so that apache is still the owner but i am
allowed 
to write to it?  

TIA

Tom Malone

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

2001-08-01 Thread Angerer, Chad

Isn't it Personal Home Pages?

Chad

-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 10:55 AM
To: php
Subject: RE: [PHP] Re: FAQ


 Does anyone know what PHP stands for?

PHP = People Hate Perl.

No, that's just a joke, no flames please :)

PHP Hypertext Preprocessor.

Kirk

-- 
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 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!! What wrong with this code...

2001-07-31 Thread Angerer, Chad

escape the double quotes around the href... with \

PHP thinks youe are ending the echo string prematurely.

-Original Message-
From: Steve Wright [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 11:13 AM
To: PHP List
Subject: [PHP] HELP!! What wrong with this code...


Hey, i am getting an error passed back for this line of code, the rest of
the code is below:

echo P align=centerYour feedback has been sent to a
href=mailto:$address;$name/a/P;

the error is:

Parse error: parse error, expecting `','' or `';'' in
/www/customers/stevewrightonline.co.uk/form/do_sendform.php on line 20


Does anyone know y this is?? If i remove the a href tags it works fine. Can
you not use links properly in PHP??

--
?php
$name = Steven Wright;
$address =[EMAIL PROTECTED];
$recipient = $address;
$subject = Auto Form;
$mailheaders = From: Auto Form  $address  \n;
$mailheaders = Reply-To: $sender_email\n\n;

/*The Message*/
$msg = Sender:\t mailto:$sender_email \t $sender_name\n\n;
$msg = Message:\t$message\n\n;

/*Mail to Me*/
mail($recipient, $subject, $msg, $mailheaders);


/*Onscreen confirmation of sending*/
echo HTMLHEADTITLEForm Sent!/TITLE/HEADBODY;
echo H1 align=centerThank You, $sender_name/H1;
echo P align=centerYour feedback has been sent to a
href=mailto:$address;$name/a/P;
echo /BODY/HTML;
?


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

2001-07-13 Thread Angerer, Chad

I am having some problems generating images with GD.  I am using GD 1.6.2
and trying to create a .png image.  I know it works.  I have created just a
generic graphic without trying to put variables into it and am hoping
someone can help me on this one.  Here is some code snippet

// here is my gd.php file to create the image

?

Header ( Content-Type: image/png );   

$im  =  ImageCreate ( 10,  200 );   
$red  =  ImageColorAllocate ( $im,  255,  0,  0 );   
$white  =  ImageColorAllocate ( $im ,  255,  255,  255 );   
$blue  =  ImageColorAllocate ( $im ,  0 ,  0 ,  255 );   
$gray  =  ImageColorAllocate ( $im , 0xC0, 0xC0 , 0xC0 );   

ImageFill ( $im , 0 , 0 , $gray );   
ImageFilledRectangle ( $im , 0 ,$bluehg, 3, 200, $blue );   
ImageFilledRectangle ( $im , 6, $redhg, 10, 200, $red );   

// write the image
ImagePNG( $im ); 

// clean up the mess
ImageDestroy($im);
?

// here is the function that I use to determine the attributes of the image

// create a function to call gd.php
function graphic($blueval, $redval)
{
$pctrd = round($blueval*100, 1);
$pctbl = round($redval*100, 1);
$blueval = ($blueval * 200);
$redval = ($redval * 200);

echo table
tr
td
align=\center\$pctbl%/td
tdimg
src=\gd.php?bluehg=$bluevalredhg=$redval\ height=\100\ //td
td
align=\center\$pctrd/td
/tr
/table;
}

On the page I get a broken image.  If I view the source I see the image is
being called with params.

Any help would be appreciated.

Thanks.

Chad

-- 
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] Compiling .. or Re-Compiling.

2001-05-17 Thread Angerer, Chad

Hello,

I have a question about recompiling PHP to add some options.  I am a newbie
to linux and compiling.  Let give a background on my processes.

I compiled MySQL -- got it working.
I compiled isntalled Openssl
Configured PHP 4.0.5
Installed Apache with SSL and PHP.

Everything was up and and running.

Now I want to add gd support and a few other options to PHP.  Can I just
recompile PHP and it will continue to function as normal or would I have to
start at the beginning with openssl and recompile everything along with PHP?

Any help is appreciated.

Thanks

Chad


-- 
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] compile with apxs

2001-05-17 Thread Angerer, Chad


I am trying to configure php using --with-apxs .. here is my configure file

./configure --with-apxs=/usr/local/www/bin --with-mysql=/usr/local/
mysql --enable-discard-path --enable-safe-mode --enable-calendar
--with-dom-dir
=ext/domxml --enable-ftp --with-gd=shared --with-jpeg-dir=/usr
--with-java=/usr
/java/jre --with-pdflib=shared --with-sablot=ext/sablot
--with-expat-dir=/usr -
-with-regex=system --with-swf

when it gets to the apxs part I get this error

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
./configure: apxs: command not found
Sorry, I was not able to successfully run APXS.  Possible reasons:
1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.
configure: error: ;

Perl is installed.. which perl produces /usr/bin/perl

httpd -l shows mod_so.c

and apxs is pointing to the current path of my apache bin directory.  I am
not sure what else to try.

Can someone help me out please.

Thanks in advance.

Chad

-- 
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] PHP Book?

2001-04-27 Thread Angerer, Chad

Professional PHP by WROX.  Great book.  It provides you with some real world
examples.

Chad Angerer
HTML Programmer
Internet Broadcasting Systems
651.365.4006


-Original Message-
From: Hamed Nik [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 8:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Book?


Hey everyone...

I've been programming in perl for about 3 years now, i have installed php
and have been working on it for about three weeks. I started by converting
some of the programs I've written in Perl to PHP it seems its pretty
similar to Perl and not very hard to learn for a perl programmer... but i
need some reference book with some practical examples so i could work
with... and probably something that gives me ideas on different types of
programs and things that i could do in PHP... something that covers
everything in PHP... and is NOT copied from the manual! :))

I am sure most of you in this group have got some sort of a PHP book... can
you please tell me out of your experience which ones are good for me to buy?

Regards
Hamed Nik




-- 
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 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] print and echo

2001-04-23 Thread Angerer, Chad

This has been answered several times I think 

check here

http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40

CAA

-Original Message-
From: Wade [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 10:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] print and echo


What's the difference between these two and is there a preference in which
one to use?

-Wade



-- 
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 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]PHP script and new window.

2001-04-23 Thread Angerer, Chad

I have searched high and low for thos but with no luck.  Hopefully someone
will give me some good pointers.

I have a poll on a page that I am building which uses php.  I would like to
have a new window open when the submit and view results links are selected.
I am using an onClick and the view results window works fine.  It is the
submit button I am having trouble with.  The new window won't populate with
any info.  

Here is the form that I have on my page

form method=post action=vote.php
div class=pollTitle? echo $question; ?/div
div class=pollResponse
input type=Radio name=response value=1? echo $response1;
?br
input type=Radio name=response value=2? echo $response2;
?br
input type=Radio name=response value=3? echo $response3;
?br/div
input type=hidden name=id value=? echo $id; ?
font size=-2a href=# onClick=window.open('archive.php?id=?
echo $id;
?','archive','toolbar=no,status=no.location=no,menubar=no,top=50,left=50,he
ight=250,width=200,scrollbars=no'); return false;view
results/a/fontbrbr
input type=submit name=submit value=Vote
onClick=window.open('http://www.askedagain.com/vote.php','vote','toolbar=no
,status=no.location=no,menubar=no,top=50,left=50,height=250,width=200,scroll
bars=no'); return false;
/form

The vote script works fine as if I just have it load in the current browser
window.  Is there something that I am missing?  Any help and/or ideas are
much appreciated.

Thanks again.

CAA


-- 
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] off the topic but relevant with us

2001-03-20 Thread Angerer, Chad

Probably wherever you registered your domain name.  Unless you have had it
transferred somewhere.

chad angerer
html programmer

.. :one man with a club is a hooligan. a thousand men with clubs are a
regiment: ..



-Original Message-
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 11:03 AM
To: [EMAIL PROTECTED]
Cc: Ben Weinberger
Subject: [PHP] off the topic but relevant with us


Hi people
this is off the topic but I want to change teh DNS setup for one of my site
www.europeanevents.com and I went to
http://www.networksolutions.com/makechanges to do that , but it said the
domain was not found in WHOIS database, wherelse I can check up to chaneg
DNS?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"

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

2001-03-19 Thread Angerer, Chad

Hello,

I ran across a web hosting service phpwebhosting.com and it seemed like a
good deal, perhaps too good to be true.  I searched the newsgroup archive to
find any posts of user experiences.  I didn't see anything good or bad
really.  I am just wondering if someone else has heard or had any
experience.

Any input is appreciated.  Thanks.

chad angerer
html programmer

.. :one man with a club is a hooligan. a thousand men with clubs are a
regiment: ..



-- 
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] Good Free PHP Editor?

2001-03-12 Thread Angerer, Chad

Yes I use it with NT and run into occasional memory management problems as
well.  It is a great editor but has small issues that really can annoy a
person.  Also the FTP engine blows.  It can be most unpredictable.

Chad

-Original Message-
From: Simon Garner [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 2:43 PM
To: Boget, Chris; [EMAIL PROTECTED]
Subject: Re: [PHP] Good Free PHP Editor?


From: "Boget, Chris" [EMAIL PROTECTED]

  HomeSite is great. www.allaire.com
  - not totally free I'm afraid, but there is an eval version.
  - runs under Windows yes
  - supports syntax highlighting for lots of languages
  including HTML, PHP,
  Perl, SQL, ASP (VB/JS).
  - can edit multiple files yes
  - shows line numbers in gutter on left hand side
  - supports regular-expression based search  replace across multiple
  files/directories
  - nice interface.

 Has the worst memory management of any software I've ever used.
 I have to reboot at lest 10 times a day when I use it.  The support
 forum on their site is filled with complaints on this issue.  Their
response
 to this issue was not to fix the memory leak (or whatever it is) but to
 issue a warning when resources are getting dangerously low to give
 you the opportunity to save all your work before you reboot.  Beyond
 that, their stance is "Well, if you don't like it, return it and we'll
give
 you a refund".
 If this wasn't the only piece of software that handled projects the way
 we needed, we'd have thrown out this piece of garbage software a *long*
 time ago.

 Chris




Running under Win2K I can have HomeSite 4.5.1 open for weeks, working on 10+
files, without any problems whatsoever.

However, I used to run it under Win98 and it would crash 1-2 times per
day...


Regards

Simon Garner


-- 
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 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] update two frames at once?

2001-03-12 Thread Angerer, Chad

Yes you can.. use Javascript

Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/

Chad

-Original Message-
From: Michael George [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 3:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] update two frames at once?


Hello al!

Is it possible to have two frames updated when cliking on one link?  I have
a
page that is broken into 4 parts:
master title
section title
d   section screen
i
r
.

what I want is that when a link is clicked on in the directory (the left
column), I'd like to update the section title *and* the section screen...

It seemed a cool layout at the time, but I'm thinking this isn't easily
possible and I might just have to incorporate a section title on the section
screen...  But before I rewrite it, I thought I'd ask here.

Thanks!

-Michael

P.S. I'd like to commend the regular posters to this list on being SOOO
 informative and patient!  Every small question to this list always
 gets several useful answers, even when I've seen questions asked over
 and again.

-- 
No, my friend, the way to have good and safe government, is not to trust it
all to one, but to divide it among the many, distributing to every one
exactly
the functions he is competent to.  It is by dividing and subdividing these
republics from the national one down through all its subordinations, until
it
ends in the administration of every man's farm by himself; by placing under
every one what his own eye may superintend, that all will be done for the
best.
-- Thomas Jefferson, to Joseph Cabell, 1816

-- 
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 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] update two frames at once?

2001-03-12 Thread Angerer, Chad

By  saying straight/plain html frames if you mean strictly HTML and no
outside scripting language then you are right you cannot.  But I don't think
anyone is strictly limited to just HTML.

Chad

-Original Message-
From: Tanya Brethour [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 3:21 PM
To: Angerer, Chad
Cc: 'Michael George'; [EMAIL PROTECTED]
Subject: RE: [PHP] update two frames at once?



Well in straight/plain html frames.. I dont believe you can.

-Tanya

On Mon, 12 Mar 2001, Angerer, Chad wrote:

 Yes you can.. use Javascript
 
 Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/
 
 Chad
 
 -Original Message-
 From: Michael George [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 12, 2001 3:06 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] update two frames at once?
 
 
 Hello al!
 
 Is it possible to have two frames updated when cliking on one link?  I
have
 a
 page that is broken into 4 parts:
   master title
   section title
 d section screen
 i
 r
 .
 
 what I want is that when a link is clicked on in the directory (the left
 column), I'd like to update the section title *and* the section screen...
 
 It seemed a cool layout at the time, but I'm thinking this isn't easily
 possible and I might just have to incorporate a section title on the
section
 screen...  But before I rewrite it, I thought I'd ask here.
 
 Thanks!
 
 -Michael
 
 P.S. I'd like to commend the regular posters to this list on being SOOO
  informative and patient!  Every small question to this list always
  gets several useful answers, even when I've seen questions asked over
  and again.
 
 -- 
 No, my friend, the way to have good and safe government, is not to trust
it
 all to one, but to divide it among the many, distributing to every one
 exactly
 the functions he is competent to.  It is by dividing and subdividing these
 republics from the national one down through all its subordinations, until
 it
 ends in the administration of every man's farm by himself; by placing
under
 every one what his own eye may superintend, that all will be done for the
 best.
 -- Thomas Jefferson, to Joseph Cabell, 1816
 
 -- 
 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 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 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 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] Interbase

2001-03-07 Thread Angerer, Chad

Both the binary and source distros are available on the website.  I beleive
Interbase has gone open source.

http://www.borland.com/interbase/

Chad

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 1:23 PM
To: php
Subject: [PHP] Interbase


Hi,
Has anyone here dealt with the new Interbase 6.0 License?
The web site says it is a free download for development, but I can't find
any info about commercial use, and their sales office doesn't seem to know
either, and they haven't called back yet.

Anyone know what the commercial license is? Is it still free?

Thanks,
Chris

-- 
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] parsing html / xml

2001-03-07 Thread Angerer, Chad

Try here to take care of problems..

http://www.w3.org/People/Raggett/tidy/

Chad

-Original Message-
From: Nathaniel Hekman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 10:57 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] parsing html / xml


I'd like to parse a html file in much the same way the xml parser works.  Ie
calling a method for every tag encountered and so on.  The xml parsing
methods don't seem to be forgiving enough for much of the html that's out
there.  For example, many html files have tags like this:

TABLE border=0

but xml_parse() will choke on it because there are no quotes around the "0".
Also html tags are, in practice, case insensitive, so this is found in many
html documents:

BThis is bold/b

but xml_parse() doesn't like it because it expects the opening and closing
tags to be same-case.

Are there other functions or libraries I'm not aware of that help in parsing
html?  Or some options in xml_parse to get by these problems?

Thanks in advance.


Nate

-- 
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 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] hidden form field.

2001-02-13 Thread Angerer, Chad

Hello list,

Can someone please explain to me in simple terms.  What the exact reason is
for putting hidden form fields into an html document that uses PHP to
connect to a mySQL db .. or any db for that matter.  I have looked around
and have not gotten a good clear answer?

Thanks.

Chad Angerer


-- 
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]Spider script in PHP.

2001-02-09 Thread Angerer, Chad

I am not sure if this is the correct wording.  But I am wondering about a
good tutorial about writing a PHP script that will spider a directory
structure and extract the file names and insert them into a database.  Also
this spidering would be done on a directory and its child with mp3 files and
I would like to extract the ID3 tag from it.  Any pointers to a good
starting point/reference point would be greatly appreciated.

Thanks.

Chad 

-- 
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] shows up in IE but not Netscape

2001-02-09 Thread Angerer, Chad

Try closing your table here... or putting the new table in a td.  Netscape
is very picky with tables.



  complete the login process and begin using the site.
/center
/td
/tr
table
?php
  }
  else
  {
  ?
htmlhead/headbody bgcolor="#FF"
center
B
Your account has temporarily been disabled by the system
administrator. If you

-Original Message-
From: Erik Boles [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 11:09 AM
To: PHP3 List
Subject: [PHP] shows up in IE but not Netscape


We are running a webform, that asks for user ID and pass, then passes it on
to a .php3 file that shows them a page to continue (not a security thing,
just a tracking thing).

This .php3 file, called login.php3 works just fine in IE but when viewed in
netscape it simply shows a white screen.  We did a "view source" and all of
the php file is there, and it doesn't show any errors (HTML errors blink in
the 'view source' with Netscape).

Any ideas why the code below is not working right in Netscape??

--login.php3---

HTMLBODY

?php
switch ($position)
{
case "process":
 require('logon.inc');
$query = "select userid, company, active from registration where
userid='$userid' and password='$password'";
$result = mysql_query($query);
$row = @mysql_fetch_array($result);

//test section start

//print ("Id entered by user is $useridbr");
 //print ("Id retrieved from database is");
 //print $row["userid"];
 //print ("br");

 //test section end

if ($row["userid"] == $userid)
{
 if ($row["active"] =="YES")
 {
   ?
htmlhead/headbody bgcolor="#FF"
center
table valign=top nowrap
tr
td


OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354"

codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0"
   ID=ptac WIDTH=393 HEIGHT=272 ALIGN=top
PARAM NAME=movie VALUE="ptacwebsite.swf"
PARAM NAME=loop VALUE=false
PARAM NAME=quality VALUE=high
PARAM NAME=bgcolor VALUE=#FF
EMBED src="ptacwebsite.swf" quality=high bgcolor=#FF
loop=false
   WIDTH=393 HEIGHT=272 ALIGN=top TYPE="application/x-shockwave-flash"

PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash"
/EMBED
 /OBJECT
   /td

   td
   Center
   Welcome back to the ColoradoPTAC website, ?PHP print
$row['company']; ?.brbr
Please click a href="registered/registered.html"
target="_top"here/a to
complete the login process and begin using the site.
/center
/td
/tr
table
?php
  }
  else
  {
  ?
htmlhead/headbody bgcolor="#FF"
center
B
Your account has temporarily been disabled by the system
administrator. If you
feel this was done by mistake, please send an email to
a href="mailto:[EMAIL PROTECTED]"
[EMAIL PROTECTED]/a
to resolve the issue.BRBR
We apologize for any inconvenience this has caused.
/B
/center
?php
   }
 }
 else
 {
  ?
  htmlhead/headbody bgcolor="#FF"
  center
  B
  Either you do not currently have a membership with us or you have entered
  an invalid Member ID/Password combination.brbr
  Please click a href="register/register.htm" target="_top"here/a to
  joinbrbr-OR-brbrClick a href="index.htm"here/a to try again.
  /B
  /center
  ?php
 }
}
?
/BODY/HTML

---login.php3--





Erik


-- 
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 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] newbie mail() function

2001-02-07 Thread Angerer, Chad

Hello! 

I am very new to php programming. I have been experimenting around with
php's mail function and html forms.

I have a generic HTML form with user_name, email_address, comments, and
like_site as inputs on the HTML
form. I have the following code in a seperate php file which the form calls:

?php

$msg = "Sender's Full Name:\t$user_name\n";
$msg .= "Sender's Email Address:\t$email_address\n";
$msg .= "User Comments:\t$comments\n";
$msg .= "Did you like the site?\t$like_site\n\n";

$mailheaders = "From: My Web Site\n"
9$mailheaders .= "Reply-To: $email_address\n\n";

mail("[EMAIL PROTECTED]", "Feedback Form", $msg, $mailheaders);

echo ("Thank you $user_name\nbr");
echo ("I appreciate your feedback\n\n");

?

for some reason I get a parse error on line 9.  If I remove the mailheaders
variables the PHP script works
just fine and emails the form to the correct address.  Any help on this
would be appreciated.

It is probably something qyite simple.  I just don't see it though.

Thanks.

Chad

-- 
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] newbie mail() function

2001-02-07 Thread Angerer, Chad

d'oh!  I knew it was something simple.

Thanks

-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 10:42 AM
To: 'Angerer, Chad'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] newbie mail() function


You're missing a semicolon on line 8.

HTH
Jon



-Original Message-
From: Angerer, Chad [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2001 16:37
To: [EMAIL PROTECTED]
Subject: [PHP] newbie mail() function


Hello! 

I am very new to php programming. I have been experimenting around with
php's mail function and html forms.

I have a generic HTML form with user_name, email_address, comments, and
like_site as inputs on the HTML
form. I have the following code in a seperate php file which the form calls:

?php

$msg = "Sender's Full Name:\t$user_name\n";
$msg .= "Sender's Email Address:\t$email_address\n";
$msg .= "User Comments:\t$comments\n";
$msg .= "Did you like the site?\t$like_site\n\n";

$mailheaders = "From: My Web Site\n"
9$mailheaders .= "Reply-To: $email_address\n\n";

mail("[EMAIL PROTECTED]", "Feedback Form", $msg, $mailheaders);

echo ("Thank you $user_name\nbr");
echo ("I appreciate your feedback\n\n");

?

for some reason I get a parse error on line 9.  If I remove the mailheaders
variables the PHP script works
just fine and emails the form to the correct address.  Any help on this
would be appreciated.

It is probably something qyite simple.  I just don't see it though.

Thanks.

Chad

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