Re: [PHP] Problems with Mail

2001-02-21 Thread Chris Anderson

thanks ill try that
- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 12:39 AM
Subject: Re: [PHP] Problems with Mail


> On Sat, 17 Feb 2001 08:31, Chris Anderson wrote:
>
> Oy - your version of Windows appears to be lagging a few days behind the
> real world :=)
>
> > true, here it is. Have fun...sorry ^_^
> >
> >  > include "Nav.inc";
> > ?>
> >
> > 
> >
> >  > if(isSet($send) && ($send == 1))
>
> Isn't this redundant? Your test is really if send = 1 do something,
> otherwise do something else.
>
> > {
> >
> >   error_reporting(0);
> >   $Address = "[EMAIL PROTECTED]";
> >   $Subject = "Feedback From NullTechnology.com";
> >   $Message = str_replace("\n","",$Message);
> >   $Mail = mail($Address, $Subject, "$Message \n From: $Return");
>
> This is wrong  The additional stuff needs to go in the fourth
> parameter if you want it to show up in the From field,; as you have it,
> it will be tacked on the end of the message body.
>
> $from = "From: $Return";
> $Mail = mail($Address, $Subject, $Message, $Return);
>
> I wonder if you need to do some text wrapping? Although Outlook generally
> doesn't seem to care about such things, maybe something in the mail chain
> might.
>
> >   if($Mail == 1)
>
> and I think this will always be true once PHP has offloaded the mail to
> the MTA, even if the MTA drops it on the floor.
>
> 
>
> Failing that, you might need to look carefully at the actual content of
> the message - not getting any unexpected characters or somesusch???
>
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> 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] Day of the Week

2001-03-04 Thread Chris Anderson

Is there a function to return the day of the week? Or at least a number that I can use 
to determine this?

Thanks



[PHP] ASP vs PHP

2001-03-11 Thread Chris Anderson

This is going to sound like heresy, but is there any way to use ASP and PHP in the 
same fle/page? Seperated of course.



[PHP] Zend?

2001-03-16 Thread Chris Anderson

I've heard alot about the Zend Encoder. Using it can I encode I file so that php still 
executes it, but a person cannot read my source by looking at the file? I'm 
programming components for people and would prefer if they could use it, but not see 
my source. Does it require any extra server settings etc?



[PHP] Anyone good with Java??

2001-03-17 Thread Chris Anderson

I know php can't do this but I hoped somehere would know how. I have a page with many 
select boxes(drop downs). I want it so that if someone selects a value, it is removed 
from all the others. And if they change it, the old value is returned to the other 
boxes. Any help would be appreciated



[PHP] Re: Anyone good with Java??

2001-03-18 Thread Chris Anderson

Close, But I meant this:
drop downs have 
if I select Dog from the first box the rest contain

but if I chnage it to  the others would have

- Original Message -
From: "Dennis Gearon" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>; "PHP"
<[EMAIL PROTECTED]>
Sent: Saturday, March 17, 2001 10:41 PM
Subject: RE: Anyone good with Java??


> >I know php can't do this but I hoped somehere would know how. I have a
page
> >with many select boxes(drop downs). I want it so that if someone selects
a
> >value, it is removed from all the others. And if they change it, the old
> >value is returned to the other boxes. Any help would be appreciatedI
think you need >Javascript?
> >
> >And I'd love s similar thing, select one and it changes other to
appropriate sub >menus.
>
> So,
> so selecting pets would get you  in the next pull down
> over.
> selelecting  would get you  in the next pull
> down over.
> and selecting one of those would get the categories below that, etc, in
> the next pull down over.
>
> Pets
>Dogs
> bysize
>   Poodles
>   Pekinese
>   Minatures
>   small
>   medium
>   large
>   huge
> byfunction
>   indoor pet
>   rodent catching
>   hunting small animals
>   hunting birds
>   hunting big animals
>   shepharding
>   guard dogs
>Cats
>
> --
> 
> Sites by friends of mine: http://www.myhiddentreasures.com/
> 
> WARNING personal propaganda signature
> TAKE WHAT YOU LIKE AND LEAVE THE REST
>
> SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
> Imagine ** yourself ** and your kids now an endangered species
> <1>Inflate automobile tires to near maximum in summer, -2psi in winter
> <2>add insulation to house and hot water heater, and refrigerator,
> <3>combine trips in cars, make less of them <4>buy cars, sports
> vehicles and recreational vehicles with good if not best mileage
> <4>put awnings over windows is summer, remove in winter. <5> add
> solar hot water heating. <6>Push for energy recycling clothes
> dryers <7> walk more, play outside with your kids! <8> let your
> grass grow to 3-4 inches, chokes weeds, saves water and energy,
> keeps house cooler <9> Put WHITE or REFLECTIVE materials on
> roofs to send energy back into space. <10> Vote for burial of
> logging slash onsite in logging areas for better watersheds
> and less burned vegetation. <11> compost your leaves and grass,
> bury in flower beds, lawns, gardens, or give away. <12> VOTE
> for energy and CO2 ratings on ALL products and foods. KNOW how
> much damage your purchases do to the climate. <13> Give your kids
> less stuff and more of you. <14> recycle everything you can <15>
> limit your children to an average 1 per adult between all your
> marriages. (Only REPLACE yourself, not expand the population)
>


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

2001-03-18 Thread Chris Anderson

After realizing that The Zend Encoder is 2000$ I've decided that wont work for a 
college student(me). Is there any other way to protect source in my components?



[PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson

Alright I'll start this out by saying I have a subscription to "Visual Basic 
Programmers Journal". Before I converted and realized that I loved PHP so much I used 
ASP. Well it seems that in this magazine that XML is a hot topic in the MS world. I 
know XML can be used by PHP, but is there a point? I only know 2 things about it:
1) You can make your own tags:

2) It's supposedly good for databasing?

If its for databasing, why not just use MySQL( or a variation). Am I missing something 
here?



Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson

thanks that helped
I stll think it sounds like its more geared for the MS crowd
- Original Message - 
From: "Brian Clark" <[EMAIL PROTECTED]>
To: "PHP is not a drug." <[EMAIL PROTECTED]>
Sent: Saturday, April 14, 2001 3:29 PM
Subject: Re: [PHP] What's XML's Purpose??


> Hi Chris,
> 
> @ 12:01:45 AM on 4/14/2001, Chris Anderson wrote:
> 
> > Am I missing something here?
> 
> This has been discussed many times. There was an extremely long thread
> last year about XML, but I can't find it in the archives.
> 
> Here's a good start:
> 
> http://marc.theaimsgroup.com/?l=php-general&m=97969195010857&w=2
> 
> Use the 'next in thread' link to follow the thread.
> 
> -Brian
> --
>  PGP is spoken here: 0xE4D0C7C8
>  Please, DO NOT carbon copy me on list replies.
> 
> 
> 
> -- 
> 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] Sorry :(

2001-04-14 Thread Chris Anderson

I realized that'll that I don't do much to help this community. I rarely reply to 
people's questions. Mainly because I have 56.6 and when I get mail people answered 
already. I also ask alot of questions. Just saying thanks for putting up with me.
Chris, The 17 yr Old Php Coder



Re: [PHP] Sorry :(

2001-04-14 Thread Chris Anderson

Well thanks everyone, don't feel like I'm "leeching" from the community
anymore. Now when it comes to me and napster, thats another story
- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To: "PHP is not a drug." <[EMAIL PROTECTED]>
Sent: Saturday, April 14, 2001 7:47 PM
Subject: Re: [PHP] Sorry :(


> Hi Chris,
>
> @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote:
>
> > I realized that'll that I don't do much to help this community. I
> > rarely reply to people's questions. Mainly because I have 56.6 and
> > when I get mail people answered already. I also ask alot of
> > questions. Just saying thanks for putting up with me. Chris, The 17
> > yr Old Php Coder
>
> As far as I'm concerned, you don't have a thing to be sorry about.
>
> There isn't a thing wrong with asking questions here. In fact, if you
> have a good book and this list to get help from, you're far more
> likely to become successful with PHP.
>
> -Brian
> --
>  PGP is spoken here: 0xE4D0C7C8
>  Please, DO NOT carbon copy me on list replies.
>
>
>
> --
> 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] RFC: Storing User Info

2001-04-16 Thread Chris Anderson

As far as decryption goes, ignore that. When they choose as password Crypt()
it with a seed. Then when the login, Crypt() what they type in with the same
seed and compare to 2. Decrypting means you have the dcryption source lying
around somewhere. A definite scurity problem. Crypt does a great job by
being just a one-way
street

- Original Message -
From: "Ashley M. Kirchner" <[EMAIL PROTECTED]>
To: "PHP-General List" <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 2:41 PM
Subject: [PHP] RFC: Storing User Info


>
> I'm looking for comments on this one.  I'm developing a site that
> will have user logins on it.  What's the best way to do this?  What to
> store, and how?
>
> - Are people more inclined to use a username when they need to log
>   in to something, or would asking for an email (as the userID) be
>   better?
>
> - How about storing passwords?  All of this info will be stored in
>   an MySQL DB.  How do admins generally do this type of stuff?
>   Encrypt the password stored in the DB, and decrypt it on the fly
>   to compare?  Store it in plain text?  Or store it encrypted,
>   and when the user logs in, encrypt that passwd (from the form)
>   and compare the strings?  (not sure if the latter would work)
>
> - What about sending people passwords through email?  Like when
>   someone signs up the first time, they supply a passwd.  How do
>   people feel about sending that login information to the user in
>   plain text via email?  Or do you?
>
> - What about when the user forgets their login?  Just fetch the
>   info from DB and mail it out to the (registered) email address?
>   Or, generate a new, generic one, mail that one out, and tell the
>   user to login and change it again?
>
> Suggestions please.
>
> AMK4
>
> --
> W |
>   |  I haven't lost my mind; it's backed up on tape somewhere.
>   |
>   ~
>   Ashley M. Kirchner    .   303.442.6410 x130
>   SysAdmin / Websmith   . 800.441.3873 x130
>   Photo Craft Laboratories, Inc. .eFax 248.671.0909
>   http://www.pcraft.com  . 3550 Arapahoe Ave #6
>   .. .  .  . .   Boulder, CO 80303, USA
>
>
>
> --
> 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] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson

Have you checked the following things:
A) if the file is actually there?
B)Is it an include error
C)Do you have the required permissions for write access and for including
from that directory?
- Original Message -
From: "CC Zona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 5:34 PM
Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


> Suggestions so far have focused on parts of the function other than
fwrite,
> so I'm trying again with a stripped-down example.  After spending many
> hours trying to make this very simple function work again, I'm beginning
to
> think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it
> was working fine before...).  Before filing a bug report, would a few
> people test whether this fails to write on their system too? Thank you!
>
>
> function build_file()
>{
>$fp=fopen("/path/to/directory/test.inc","w") or die("ERROR on fopen" .
> $php_errormsg);
>fwrite($fp,"Hi, I'm some test content",1) or die("ERROR:
> fwrite " . $php_errormsg);
>fclose($fp) or die("ERROR: fclose" . $php_errormsg);
>}
>
> build_file(); //no errors and file modification date is updated
>
> echo "Begin include..."; //ok
> include("/path/to/directory/test.inc"); //NOTHING!
> echo "...End include"; //ok
>
> (Checking from the commandline, the file is definitely being set to empty.
> It's writing an empty string to the file instead of writing the specified
> content.)
>
> --
> CC
>
> --
> 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] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson

come to think of it, why are you passing 3 arguements to fwrite()?
- Original Message -
From: "CC Zona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 5:34 PM
Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


> Suggestions so far have focused on parts of the function other than
fwrite,
> so I'm trying again with a stripped-down example.  After spending many
> hours trying to make this very simple function work again, I'm beginning
to
> think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it
> was working fine before...).  Before filing a bug report, would a few
> people test whether this fails to write on their system too? Thank you!
>
>
> function build_file()
>{
>$fp=fopen("/path/to/directory/test.inc","w") or die("ERROR on fopen" .
> $php_errormsg);
>fwrite($fp,"Hi, I'm some test content",1) or die("ERROR:
> fwrite " . $php_errormsg);
>fclose($fp) or die("ERROR: fclose" . $php_errormsg);
>}
>
> build_file(); //no errors and file modification date is updated
>
> echo "Begin include..."; //ok
> include("/path/to/directory/test.inc"); //NOTHING!
> echo "...End include"; //ok
>
> (Checking from the commandline, the file is definitely being set to empty.
> It's writing an empty string to the file instead of writing the specified
> content.)
>
> --
> CC
>
> --
> 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] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson

alright try removing the byte length identifier
- Original Message -
From: "Chris Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 1:20 PM
Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


> come to think of it, why are you passing 3 arguements to fwrite()?
> - Original Message -
> From: "CC Zona" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 16, 2001 5:34 PM
> Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
> Apache/1.3.14
>
>
> > Suggestions so far have focused on parts of the function other than
> fwrite,
> > so I'm trying again with a stripped-down example.  After spending many
> > hours trying to make this very simple function work again, I'm beginning
> to
> > think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it
> > was working fine before...).  Before filing a bug report, would a few
> > people test whether this fails to write on their system too? Thank you!
> >
> >
> > function build_file()
> >{
> >$fp=fopen("/path/to/directory/test.inc","w") or die("ERROR on fopen"
.
> > $php_errormsg);
> >fwrite($fp,"Hi, I'm some test content",1) or
die("ERROR:
> > fwrite " . $php_errormsg);
> >fclose($fp) or die("ERROR: fclose" . $php_errormsg);
> >}
> >
> > build_file(); //no errors and file modification date is updated
> >
> > echo "Begin include..."; //ok
> > include("/path/to/directory/test.inc"); //NOTHING!
> > echo "...End include"; //ok
> >
> > (Checking from the commandline, the file is definitely being set to
empty.
> > It's writing an empty string to the file instead of writing the
specified
> > content.)
> >
> > --
> > CC
> >
> > --
> > 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] siimple cookie problem

2001-04-16 Thread Chris Anderson

Each time you change the value you need to re-set the cookie using
SetCookie() again
- Original Message -
From: "kmurrah" <[EMAIL PROTECTED]>
To: "PHP-GENERAL" <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 3:15 PM
Subject: [PHP] siimple cookie problem


> Can someone help me with an elementary cookie problem?
>
> I want to capture a variable, write to a cookie, and be able to access it
> from other pages.
>
> I've done that, and it works well
>
> BUT, if I capture the same variable a second time (with a different
value),
> it still remembers the first value, not the second.  The only way I can
get
> it to understand the second value is to exit my browser and start over.
>
> What am I doing wrong?
>
> Thanks in advance,
>
> KennM
>
>
>
> --
> 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] siimple cookie problem

2001-04-16 Thread Chris Anderson

Also, try deleting the cookie:
Setcookie("name")
then setting it again. Some browsers all have cookie problems I've heard
also. Have you hit refresh?
- Original Message -
From: "kmurrah" <[EMAIL PROTECTED]>
To: "PHP-GENERAL" <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 3:15 PM
Subject: [PHP] siimple cookie problem


> Can someone help me with an elementary cookie problem?
>
> I want to capture a variable, write to a cookie, and be able to access it
> from other pages.
>
> I've done that, and it works well
>
> BUT, if I capture the same variable a second time (with a different
value),
> it still remembers the first value, not the second.  The only way I can
get
> it to understand the second value is to exit my browser and start over.
>
> What am I doing wrong?
>
> Thanks in advance,
>
> KennM
>
>
>
> --
> 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] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson

I tried it, even with the byte length identifer it worked perfectly for me.
As a last ditch effort try changing the w to w+. If not then it sounds like
a configuration issue for the webserver or php. Dunno what settings though,
sorry couldn't be of more help.
- Original Message -
From: "CC Zona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 10:48 PM
Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


> In article <006701c0c699$ad65cdc0$8b1412d1@null>,
>  [EMAIL PROTECTED] ("Chris Anderson") wrote:
>
> > come to think of it, why are you passing 3 arguements to fwrite()?
>
> Whoops!  That's a typo left over from the last round of tests,  adding
> every optional argument just in case something wasn't really optional.  Of
> course the third argument actually belongs to fopen().  Though it
shouldn't
> be needed there either.  (And yup, I just double-checked and it doesn't
> work without the typo either. )
>
> --
> CC
>
> --
> 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] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-17 Thread Chris Anderson

I am using the latest version of Apache and PHP. Sorry I couldn't be of more
help.
- Original Message -
From: "CC Zona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 3:01 AM
Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


> In article <012101c0c69b$b01b8d00$8b1412d1@null>,
>  [EMAIL PROTECTED] ("Chris Anderson") wrote:
>
> > I tried it, even with the byte length identifer it worked perfectly for
me.
> > As a last ditch effort try changing the w to w+. If not then it sounds
like
> > a configuration issue for the webserver or php. Dunno what settings
though,
> > sorry couldn't be of more help.
>
> Thanks for testing.  Was that with v4.0.4pl?  I'd sure like to know
whether
> there's any possbility it's bug.  Seems unlikely, but then again so does
> the stubborness of frwite() in choosing its own content to write in place
> of mine.  I've pored over phpinfo and php.ini trying to find a config
> setting that might be causing this weirdness, but so far nothing seems
> obvious.
>
> --
> CC
>
> --
> 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] Sending Email via PHP on Win2K

2001-04-17 Thread Chris Anderson

Check out the mail() function in the php manual. There is literally tons of
info on this function.
- Original Message -
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 4:54 PM
Subject: [PHP] Sending Email via PHP on Win2K


> Hi
>
> Has anyone done this?
> Does PHP interact with the SMTP service on the machine?
> Does anyone have a script that does this?
>
> thanks
>
> Sincerely
>
>   berber
>
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
>
>
> --
> 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] Advanced Help Needed

2001-04-19 Thread Chris Anderson

I have seen this before. For me it was a problem with the post operation.I'd
give specifics, but frankly I can't remember...sorry :(
- Original Message -
From: "Marc Davenport" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 6:19 PM
Subject: [PHP] Advanced Help Needed


I need some help figuring something out that my host denies is his problem.

I have a suspicion that only someone who has run into this problem once
before has the answer.

I have this form which posts to a PHP file.  Sometimes I pass a file along.
This was info for a database and a picture along with it.   This worked fine
for the longest time.  Now it does not.
when I post a file in the form I recieve an "Cannot Find Server".  When
there isnt a file posted then the form works fine.  I dont understand
because I recieve no PHP generated error messages, but rather a problem
finding the site entirely.

Has anyone ever seen this?

Help would be much
Marc Davenport



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

2001-04-22 Thread Chris Anderson

try the javascript print() command
- Original Message - 
From: "Dmitry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 22, 2001 10:11 PM
Subject: [PHP] Printing


> Hello, all!
> 
> Do you know, can I print some page using PHP or
> JavaScript?
> 
>   Dmitry.
>  [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] Lines

2001-04-24 Thread Chris Anderson

$Data = file("data.dat");
$Total = count($data);

That would get the lines from the file and give $total the number of lines.
- Original Message -
From: "Rafael Faria" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 4:03 PM
Subject: Re: [PHP] Lines


> But how can i put into a var $total the total lines that i have into the
file?
>
> Rafael
>
> >f you use the file() function to open up the file, it will put each line
> >of the file into an array.  At that point you can say:
> >
> >for($i=5;$i<11;$i++){
> >
> >print $myFile[$i];
> >
> >}
> >
> >
> >Michael
> >
> >
> >Rafael Faria wrote:
> >
> >>
> >>
> >>Hey Guys,
> >>it's my first post on this list, and my doubt is...
> >>
> >>how can i take a file.txt and
> >>
> >>1 - know how many lines i have in this text
> >>2 - print line 5 until 10
> >>
> >>?
> >>
> >>can someone help me?
> >>
> >>
> >>
> >>
> >>
> >>---
> >>
> >>[ r a f a e l   f a r i a] _
> >>[EMAIL PROTECTED]
> >>WebMaster Universo Online - http://www.uol.com.br
> >>Phone # +55 11 3038-8665
> >>
> >
> >
> >
>
> ---
>
> [ r a f a e l   f a r i a] _
> [EMAIL PROTECTED]
> WebMaster Universo Online - http://www.uol.com.br
> Phone # +55 11 3038-8665
>
>
> --
> 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] Autoupdate of page

2001-04-24 Thread Chris Anderson

Hitting refresh would do it, you cant do anything client wise because the
box is being filled by the server code
- Original Message -
From: "Martin Skjöldebrand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 3:53 PM
Subject: [PHP] Autoupdate of page


> IS there a standard way of "auto-updateing" the contents of a page after a
> databas insert or edit? Do a SELECT updates the contents I can update
> tables I've noticed. Contents in select boxes (as in
>
>  while ($row = mysql_fetch_row($secquery_res)) {
> print "$row[0]";
>   }
> )
>
> is not automatically updated to match edits or inserts done on the same
> page. You have to initialize the select box again. Or is there another
way?
>
> M.
>
> --
> 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] Newbie question about Classes

2001-04-24 Thread Chris Anderson

Good definition. Another thing to note is that variables defined in a
class's body can be accessed by all the other class functions without
needing arguements to use them. Thats a nice feature
- Original Message -
From: "SED" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 12:46 PM
Subject: [PHP] Newbie question about Classes


> Hi,
>
> I have now been 3-4 months writing PHP-codes and read the PHP manual
> throughout. But there is one thing I can't figure out properly (I think
it's
> not covered enough in the manual): Classes!
>
> When and why would I use it?
>
> Is it only to group certain functions or does it have a special function?
>
> Thanks!
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
>
> --
> Phone:   (+354) 4615501
> Mobile:  (+354) 8960376
> Fax: (+354) 4615503
> E-mail:  [EMAIL PROTECTED]
> Homepage:www.sed.is <- New Homepage!
> --
>
>
> --
> 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] OK, a little more specific migration issues.

2001-04-24 Thread Chris Anderson

That means the server isnt set to parse files with a .php extension. You'll
have to fix the associations in your server settings
- Original Message -
From: "S.J. Black" <[EMAIL PROTECTED]>
To: "PHP mail list" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 4:17 PM
Subject: [PHP] OK, a little more specific migration issues.


> Hi, All -
>
> Have altered extension of all relevant php3 files to php. Now I have a
> case of "code bleed"  when the php pages are called. The actual page
> doesn't come up, but its source does.
> Ideas? clues? suggestions?
>
> Thanks in advance,
>
> Alpha
>
> --
> 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] I need help from you.

2001-04-25 Thread Chris Anderson

To send any information you need to use the mysql_query() function after
connecting with mysql_connect() or mysql_pconnect(). They are all documented
in the manual. Or am I misreading your question??
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 5:01 PM
Subject: [PHP] I need help from you.


> Hello,
>
> I have seen your email at PHP site - developers.
>
> I need a simple syntax that you may understand.
>
> I want to send data TO mysql   FROM   my   contact  form.
>
> the database is hosted and provided by my   hosting provider.
>
> I do not know what is the syntax  to send  that data.
>
> I make quality design services, maybe you will need
> anything to improve, I will be glad to  do it in  exchange.
>
> Thank you !
>
> Javier Yep
> [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] Compressing an upload

2001-04-25 Thread Chris Anderson

unfortunately, you dont have access to the files until they are on your
server, ie: already uploaded. You can compress them afterwards though like
you would normally
- Original Message -
From: "Michael Conley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 6:37 PM
Subject: [PHP] Compressing an upload


> I am going to have a page that will be used for visitors to upload a file
to
> my web server.  I already use gzcompress to compress some of the pages
that
> I send to visitors, but can I also compress files that they are uploading
to
> my web server?  They will be text files and some may be fairly large (20
> MB).  How would I implement compression on files that are getting
uploaded?
>
>






> --
> 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] Sizeof a multi-dimensional array??

2001-04-26 Thread Chris Anderson

Alright, count($x) would give me the number of array elements in $x. But how can I get 
the count of a multi-dimensional array? Count($x[0]) doesn't seem to work. Thanks in 
advance

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Tester / gtk.php.net
STA Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com




Re: [PHP] HELP!! Mail and attachments

2001-04-27 Thread Chris Anderson

I would recommend that you send a link instead of the actual doc file.

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Tester / gtk.php.net
STA Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com

- Original Message -
From: "Tym Rehm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 9:46 AM
Subject: [PHP] HELP!! Mail and attachments


> I have been trying to get this to work for days and I'm confused. I want
to
> attach a Word document to an email. I found this code on php.net and I'm
> trying to modify it to work. I get the email sent, the attached Word
> document is filled with junk and not the document I'm trying to send.
>
> Here is the code and sorry for the large email.
>
>  $border="--==_856811060==_";
> #/* recipients */
> #$recipient .= "Mary <[EMAIL PROTECTED]>" . ", "; #//note the comma
> #$recipient .= "Kelly <[EMAIL PROTECTED]>" . ", ";
> #$recipient .= "[EMAIL PROTECTED]";
> $recipient = "[EMAIL PROTECTED]";
>
> #/* subject */
> $subject = "Birthday Reminders for August";
>
> #/* message */
> $message .= "$border\n";
> $message .= "Content-Type: text/plain; charset=us-ascii;format=flowed\n";
> $message .= "The following email includes a formatted ASCII table\n";
> $message .= "Day \t\tMonth \t\tYear\n";
> $message .= "3rd \t\tAug \t\t1970\n";
> $message .= "17rd\t\tAug \t\t1973\n";
> $message .= "$border\n";
> #$message .= "Content-Type: application/msword; name=\"/mail/Ftp\ User\
> Info.doc\"\n";
> #$message .= "Content-Transfer-Encoding: base64\n";
> #$message .= "Content-Disposition: attachment; filename=\"/mail/Ftp\ User\
> Info.doc\"\n";
> #$message .="$border\n";
>
> #/* you can add a stock signature */
> $message .= "--\r\n"; //Signature delimiter
> $message .= "Birthday reminder copylefted by public domain";
>
> #/* additional header pieces for errors, From cc's, bcc's, etc */
>
> $headers .= "From: Birthday Reminder <[EMAIL PROTECTED]>\n";
> $headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
> $headers .= "X-Mailer: PHP\n"; // mailer
> $headers .= "X-Priority: 1\n"; // Urgent message!
> $headers .= "Return-Path: <[EMAIL PROTECTED]>\n";  // Return path for
errors
> # I added this code
> $headers .= "Mime-Version: 1.0\n";
> $headers .= "Content-Type: multipart/mixed; boundary=\"$border\"\n";
> #$headers .= "Content-Type: text/plain; charset=us-ascii;format=flowed\n";
> $headers .= "Content-Type: application/msword; name=\"Ftp\ User\
> Info.doc\"\n";
> $headers .= "Content-Transfer-Encoding: base64\n";
> $headers .= "Content-Disposition: attachment; filename=\"Ftp\ User\
> Info.doc\"\n";
>
> #/* If you want to send html mail, uncomment the following line */
> #$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
>
> #$headers .= "cc:[EMAIL PROTECTED]\n"; // CC to
> #$headers .= "bcc:[EMAIL PROTECTED], [EMAIL PROTECTED]\n"; // BCCs
> to
> #$headers .= "cc:[EMAIL PROTECTED]\n"; // CC to
> #$headers .= "bcc:[EMAIL PROTECTED],
> [EMAIL PROTECTED]\n"; // BCCs to
>
> #/* and now mail it */
> mail($recipient, $subject, $message, $headers);
> print "Mail\n";
> print"\n";
> print "Mail Sent?\n";
> print"\n";
> ?>
>
> Thanks
>
>
>
> --
> 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] Is PHP code software?

2001-04-27 Thread Chris Anderson

If it is being sold for profit it is. 

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Tester / gtk.php.net
STA Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com

- Original Message - 
From: "Kath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 4:29 PM
Subject: [PHP] Is PHP code software?


> Food for thought: Is PHP code software?
> 
> - Kath
> 


-- 
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] Strange Question - Please Read This

2001-04-27 Thread Chris Anderson

Does anyone know how to place code into every file accessed on my server? Kindof like 
how geocities and countless other hosts manage to add their banners?

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Tester / gtk.php.net
STA Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com




Re: SV: [PHP] PHP Book?

2001-04-27 Thread Chris Anderson

A good book for a beginner is "The PHP 4 Bible"

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Tester / gtk.php.net
STA Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com

- Original Message - 
From: "Alex Piaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 7:14 PM
Subject: Re: SV: [PHP] PHP Book?


> Hi All!
> 
> One of the best books on PHP that I ever read is "Web Application 
> Development with PHP 4.0" from New Riders.
> 
> It is an advanced book, not recomend it for beginners, but the 
> medium/advanced skill programmer will love it.
> 
> 
> THat's my 10 reais (brazillian money):-)
> 
> []'s
> 
> 
> 
> Alex Piaz
> Webmaster
> Global Map Internet Marketing
> www.globalmap.com
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> "Those who know what's best for us -
>   Must rise and save us from ourselves"
> 
> 
> -- 
> 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!! Mail and attachments

2001-04-29 Thread Chris Anderson

Personally I haven't tried, but I know many people have written classes to
allow this. Try searching most php sites.

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Contributer / gtk.php.net
STA Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com

- Original Message -
From: "Tym Rehm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 3:49 PM
Subject: Re: [PHP] HELP!! Mail and attachments


> I have to send the file. I need the recipient to fill out the form.
>
> - Original Message -
> From: "Chris Anderson" <[EMAIL PROTECTED]>
> To: "Tym Rehm" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, April 27, 2001 10:16 AM
> Subject: Re: [PHP] HELP!! Mail and attachments
>
>
> > I would recommend that you send a link instead of the actual doc file.
> >
> > Chris Anderson   aka "Null"
> > 
> > PHP Developer / Nulltech
> > PHP-GTK Tester / gtk.php.net
> > STA Administrator / www.stronger.org
> > DOD Co-Owner / www.dayofdefeat.com
> >
> > - Original Message -
> > From: "Tym Rehm" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, April 27, 2001 9:46 AM
> > Subject: [PHP] HELP!! Mail and attachments
> >
> >
> > > I have been trying to get this to work for days and I'm confused. I
want
> > to
> > > attach a Word document to an email. I found this code on php.net and
I'm
> > > trying to modify it to work. I get the email sent, the attached Word
> > > document is filled with junk and not the document I'm trying to send.
> > >
> > > Here is the code and sorry for the large email.
> > >
> > >  > > $border="--==_856811060==_";
> > > #/* recipients */
> > > #$recipient .= "Mary <[EMAIL PROTECTED]>" . ", "; #//note the comma
> > > #$recipient .= "Kelly <[EMAIL PROTECTED]>" . ", ";
> > > #$recipient .= "[EMAIL PROTECTED]";
> > > $recipient = "[EMAIL PROTECTED]";
> > >
> > > #/* subject */
> > > $subject = "Birthday Reminders for August";
> > >
> > > #/* message */
> > > $message .= "$border\n";
> > > $message .= "Content-Type: text/plain;
> charset=us-ascii;format=flowed\n";
> > > $message .= "The following email includes a formatted ASCII table\n";
> > > $message .= "Day \t\tMonth \t\tYear\n";
> > > $message .= "3rd \t\tAug \t\t1970\n";
> > > $message .= "17rd\t\tAug \t\t1973\n";
> > > $message .= "$border\n";
> > > #$message .= "Content-Type: application/msword; name=\"/mail/Ftp\
User\
> > > Info.doc\"\n";
> > > #$message .= "Content-Transfer-Encoding: base64\n";
> > > #$message .= "Content-Disposition: attachment; filename=\"/mail/Ftp\
> User\
> > > Info.doc\"\n";
> > > #$message .="$border\n";
> > >
> > > #/* you can add a stock signature */
> > > $message .= "--\r\n"; //Signature delimiter
> > > $message .= "Birthday reminder copylefted by public domain";
> > >
> > > #/* additional header pieces for errors, From cc's, bcc's, etc */
> > >
> > > $headers .= "From: Birthday Reminder <[EMAIL PROTECTED]>\n";
> > > $headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
> > > $headers .= "X-Mailer: PHP\n"; // mailer
> > > $headers .= "X-Priority: 1\n"; // Urgent message!
> > > $headers .= "Return-Path: <[EMAIL PROTECTED]>\n";  // Return path for
> > errors
> > > # I added this code
> > > $headers .= "Mime-Version: 1.0\n";
> > > $headers .= "Content-Type: multipart/mixed; boundary=\"$border\"\n";
> > > #$headers .= "Content-Type: text/plain;
> charset=us-ascii;format=flowed\n";
> > > $headers .= "Content-Type: application/msword; name=\"Ftp\ User\
> > > Info.doc\"\n";
> > > $headers .= "Content-Transfer-Encoding: base64\n";
> > > $headers .= "Content-Disposition: attachment; filename=\"Ftp\ User\
> > > Info.doc\"\n";
> > >
> > > #/* If you want to send html mail, uncomment the followin

Re: [PHP] COM

2001-04-30 Thread Chris Anderson

Unfortunately VB 6.0 com components do not like to work outside of
their ASP and VB bases. I've heard of a few people trying it, but I
heard it was very difficult. I'd help more, but I've never used PHP
with com, only with ASP

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Grunt / gtk.php.net
STA-DoD, TO and DDay Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com
- Original Message -
From: "Hassan Arteaga" <[EMAIL PROTECTED]>
To: "Php (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 1:57 PM
Subject: [PHP] COM


Hi all !!

I have components i made in Visual Basic 6.0 and I would like to use
with
PHP. I need examples how to create intance from VB COM component...
What function I have to use ?

com_load - ???
com_invoke - ???
com_propget - ???
com_get - ???
com_propput - ???
com_propset - ???
com_set - ???

Thanks in advanced !!!

--
M. Sc. Hassan Arteaga Rodríguez
Microsoft Certified System Engineer
Network Admin, WEB Programmer
FUNDYCS, Ltd
[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] PHP.ini

2001-05-01 Thread Chris Anderson

Is there a way for each user on a server to have their own php.ini
settings? If so...how? Thanks

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Grunt / gtk.php.net
STA-DoD, TO and DDay Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com



-- 
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] Templates/Graphics/Text

2001-05-02 Thread Chris Anderson

Personally I prefer to do the following:
-Include things like navigation, banners, etc in a nav.inc file. Since
this is loaded first
I include meta tags for search engines in here
-My content goes in individual files, that can be dynamically loaded
-I have a third "footer" file which includes anything at the end, such
as table closings and the
graphics to close up the site

As long as the meta tags are in the main page (ie the nav in my
example), the search engine can parse it out and display it. They just
won't get a url with a ?something=something. I may be wrong though.
That's just how I do it

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Grunt / gtk.php.net
STA-DoD, TO and DDay Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com
- Original Message -
From: "Ashley M. Kirchner" <[EMAIL PROTECTED]>
To: "PHP-General List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 5:27 PM
Subject: [PHP] Templates/Graphics/Text


|
| I'm trying to figure out what's the best way to do something
that
| may be simple, however I can't for the life of me envision it.
|
| I want to have three files as follows:
|
| [ NOTE: I may be thinking of this the wrong way (by thinking up
|   three files.)  If someone has a better suggestion, please
speak
|   up!  I'm willing to entertain other solutions. ]
|
| -> img_template.php  (which contains the full, graphical
|   website page, except for the content)
| -> txt_template.php  (which contains the full page, without
|   any of the bells and whistles,
graphics
|   javascript and all)
| -> content_page.html (which is the actual content)
|
| This is where I get stuck.  What to do?  To me, the easiest
seems
| to be one single (control) file for the whole site, which then loads
| up the content based on the URI.  For example:
|
| http://our.web.site/index.php?page_to_load
| - this will grab the img_template.php file, then
| - fetch 'page_to_load.html' and insert it into the template
|   and serve it.
|
| However, will this pose a problem for search engines?  Or for
| anything else?  I don't know.  Anyone?
|
| Now, we would also like to have the whole site be in text format
| (really a slimmed down page without all the graphics, roll-overs,
easy
|  to print and such).
|
| I'm thinking, add another variable:
|
| http://our.web.site/index.php?page_to_load&format=text
|
| or: http://our.web.site/index.php?page_to_load&format=graphic
|
| But again, how will search engines handle this?
|
| And, I would also have to be able to dynamically update any
anchor
| links that show up in the content so it knows what it needs to link
to
| in terms of format.  Somewhat stupid to have someone click on a
| 'text only' link, and when following another link from that it drops
| back to a graphic based page.
|
|
| Call for comments.  Suggestions.  A blow to the head.
Something.
| I'd like to make this so that future site re-designs won't be as
| painful as this one is turning out to be (currently all 500+ pages
of
| the site have everything hard coded, so changing something in say a
| menu causes a real problem).
|
| And yes, I've looked at FastTemplates and I'm, uh, somewhat
lost,
| but that may be because I haven't really spent a whole lot of time
| reading up on it.  Also, the stuff on there dates back to 1999 - has
| it not been updated recently?  Or did it not need any?
|
| AMK4
|
| --
| W |
|   |  I haven't lost my mind; it's backed up on tape somewhere.
|
|
|
~
|   Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410
x130
|   SysAdmin / Websmith   . 800.441.3873
x130
|   Photo Craft Laboratories, Inc. .eFax
248.671.0909
|   http://www.pcraft.com  . 3550 Arapahoe Ave
#6
|   .. .  .  . .   Boulder, CO 80303,
USA
|
|
|
| --
| 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] Executing an External Program using exec()

2001-05-05 Thread Chris Anderson

Alright, I've been doing GTK work recently and decided I wanted a way
to remove that damn PHP console that appears in the background. So to
accomplish this, I wrote a C++ program to remove the window. Well the
program works flawlessly on its own, but if php calls it using the
exec() function nothing happens. Nothing at all. Any ideas?

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com



-- 
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] Weirdest error I've ever had....

2001-05-08 Thread Chris Anderson

Alright I have a simple file writing script. Nothing special. in one
part I use this code:
$data[$x] = str_replace("","\n", $data[$x]);
to replace break tags with page breaks. Problem is that for some
reason it is adding wierd  tags to the file. It only does this
on that server. What is that?

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com



-- 
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] Weirdest error I've ever had....

2001-05-09 Thread Chris Anderson

too simple :)
doesnt fix it anyway, it was a xhtml compliancy problem

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 2:26 AM
Subject: Re: [PHP] Weirdest error I've ever had


At 06.05.01  12:00, you wrote:
>Alright I have a simple file writing script. Nothing special. in one
>part I use this code:
> $data[$x] = str_replace("","\n", $data[$x]);
>to replace break tags with page breaks. Problem is that for some
>reason it is adding wierd  tags to the file. It only does this
>on that server. What is that?
why don´t you use $data[$x]=nl2br($data[$x]);
smart n easy
HTH Oliver


--
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] Valid Cookie Problems

2001-03-23 Thread Chris Anderson

I have a script that sets cookies for validation. The problem is that on some 
servers(wwws) it works fine, but on another when submitted it gives a 404 error. I can 
send the code to someone if they like, but this is driving me insane. It's just too 
long to add here
Thanks



Re: [PHP] [php] Varible declaration

2001-03-23 Thread Chris Anderson

Remove the '' around the 1.
- Original Message -
From: "Chris Doyle" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 9:44 PM
Subject: [PHP] [php] Varible declaration


Hi,

when I declare the varible $cid like this "http://myserver/index.php?cid=1"
it works fine, but when i declare it in the code like this
$cid = '1';

it doesn't work... is this maybe because of the level i declare the varible?
how to i declare it the same as  "http://myserver/index.php?cid=1"  but in
my php code...

PS.
I use this varible in a function that is called by a function wich is
included and so on... it is rather far down.

Thanks
Gaur
___

This email may contain confidential and/or privileged information for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you have received this email in error, please
contact the sender and delete all copies. Opinions, conclusions or other
information expressed or contained in this email are not given or endorsed
by the sender unless otherwise affirmed independently by the sender.

_




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

2001-03-23 Thread Chris Anderson

thats good, in the future a code snippet helps
- Original Message -
From: "Chris Doyle" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 11:12 PM
Subject: Re: [PHP] [php] Varible declaration


> no problem i have got it now..
> needed to declare it global.
>
> - Original Message -
> From: "Chris Anderson" <[EMAIL PROTECTED]>
> To: "Chris Doyle" <[EMAIL PROTECTED]>; "PHP List"
> <[EMAIL PROTECTED]>
> Sent: Friday, March 23, 2001 6:40 AM
> Subject: Re: [PHP] [php] Varible declaration
>
>
> > Remove the '' around the 1.
> > - Original Message -
> > From: "Chris Doyle" <[EMAIL PROTECTED]>
> > To: "PHP List" <[EMAIL PROTECTED]>
> > Sent: Friday, March 23, 2001 9:44 PM
> > Subject: [PHP] [php] Varible declaration
> >
> >
> > Hi,
> >
> > when I declare the varible $cid like this
> "http://myserver/index.php?cid=1"
> > it works fine, but when i declare it in the code like this
> > $cid = '1';
> >
> > it doesn't work... is this maybe because of the level i declare the
> varible?
> > how to i declare it the same as  "http://myserver/index.php?cid=1"  but
in
> > my php code...
> >
> > PS.
> > I use this varible in a function that is called by a function wich is
> > included and so on... it is rather far down.
> >
> > Thanks
> > Gaur
> > ___
> >
> > This email may contain confidential and/or privileged information for
the
> > sole use of the intended recipient. Any review or distribution by others
> is
> > strictly prohibited. If you have received this email in error, please
> > contact the sender and delete all copies. Opinions, conclusions or other
> > information expressed or contained in this email are not given or
endorsed
> > by the sender unless otherwise affirmed independently by the sender.
> >
> > _
> >
> >
> >
> >
> > --
> > 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] Sendmail

2001-03-25 Thread Chris Anderson

it would help if you showed a snippet of your mail code
- Original Message -
From: "Atet Sugiharto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 24, 2001 1:49 AM
Subject: [PHP] Sendmail


> Hi ,
>
> I'm at a lossI've searched throught the knowledgebase, archives, docs,
> etc but I can't figure out what's going on.  The problem is when using the
> mail() function nothing gets send and I don't get any error messages
either.
> It's like the message gets eaten by a black hole.
>
> I already put "-t -i" in the path, but still doesn't work ..
> Anybody can help me ?
>
> Regards,
>
> Atet Sugiharto
>
>
> --
> 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] Decrypt Function?

2001-03-25 Thread Chris Anderson

Is there any way to decrypt dat encrypted using the crypt function? If not, then what 
purpose does that function have?



Re: [PHP] Decrypt Function?

2001-03-25 Thread Chris Anderson

A, I see. Thank youthat is actually a great idea. Why didn't I think of
that?
/me hits himself in the head
- Original Message -
From: "Opec Kemp ( Ozemail )" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, March 25, 2001 6:57 PM
Subject: RE: [PHP] Decrypt Function?


> Unix "Crypt" function is a one way encrypytion algorithm therefore you
> can not technically decrupted as such. The way that you can check to
> see if the given uncrypted value is equals to its crypted value is to
>
> 1) Crypt the string with the same "salt"
> 2) Compare this with the crypted version
>
> If these 2 are the same then you assume that the 2 strings are equal.
> If you really want to "decrypt" the string i.e. turn the encrypted
> version into its original readable text then you'll have to use
> Mcrypt() functions in PHP instead (if you have PHP 4 and above ).
> There are also other Encrytion functions available, check in the
> manual:
>
> http://www.php.net/manual/en/ref.mcrypt.php
>
>
> > -Original Message-
> > From: Chris Anderson [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 24, 2001 8:44 AM
> > To: PHP
> > Subject: [PHP] Decrypt Function?
> >
> >
> > Is there any way to decrypt dat encrypted using the crypt
> > function? If not, then what purpose does that function have?
> >
>
>
> --
> 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] Directory(parent) Structure

2001-04-05 Thread Chris Anderson

I know using ../ in a path moves to the parent directory. But is there a way to move 
back farther then that?



Re: [PHP] How can I make this smaller

2001-04-05 Thread Chris Anderson

Cool, not my thread, but i never knew about the list function. /me needs to
read up an arrays more i guess
- Original Message -
From: "Matt McClanahan" <[EMAIL PROTECTED]>
To: "Richard Kurth" <[EMAIL PROTECTED]>
Cc: "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 6:56 PM
Subject: Re: [PHP] How can I make this smaller


> On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote:
>
> > Is there another way to write this I would like to make it smaller
> > also How would I write it so it is a function and I would be able to use
all
> > the data throughout the  whole program every time I try the rest of the
> > program does not see the data
>
> >  $domain=$data[0];
> >  $tld=$data[1];
> >   $firstname=$data[2];
> >  $lastname=$data[3];
> >  $userid=$data[4];
> >  $passw=$data[5];this part  would like to make smaller
> >   $email=$data[6];
> >  $package=$data[7];
> >  $frontpage=$data[8];
> >  $mysql=$data[9];
> >  $userdatabase=$data[10];
> >  $newuser =$data[11];
> > $newuserpass =$data[12];
>
> Use list()
>
> list($domain,$tld,$firstname,$lastname,$userid,.) = $data;
>
> If you want to put it in a function, declare them all globals beforehand.
>
> function myfunc()
> {
>global $domain,$tld,$firstname,$lastname,$userid...;
>
> Matt
>
> --
> 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] Directory(parent) Structure

2001-04-05 Thread Chris Anderson

funny thing is, I thought to try it, but thought it looked too strange to
work ^_^
- Original Message -
From: "Jack Dempsey" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>
Cc: "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 7:06 PM
Subject: Re: [PHP] Directory(parent) Structure


> Sure
>
> .. = parent
> ../.. = parent of that
> etc...
>
> / = root
>
> you can get to any directory on your server by using a combination of ..
> and directory names, or, and this is often a good idea, you can just
> specify the location from root, for example
>
> /path/to/my/file
>
> that way if you move the file with .. in it, it'll still find your file
> correctly
>
> jack
>
> Chris Anderson wrote:
> >
> > I know using ../ in a path moves to the parent directory. But is there a
way to move back farther then that?
>
> --
> 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 Magazines?

2001-04-06 Thread Chris Anderson

Are there any PHP magazines stateside? I see all kinds of ASP mags, but none for PHP



[PHP] Wrapping Text

2001-04-07 Thread Chris Anderson

I've been having large problems with this so I decided to ask you guys(and gals ^_^). 
I have a textarea where you can type your text and it is saved to a file. Then another 
script includes that. Unfortunately I can't find a way for the textarea to wrap the 
text, or make it so it shows it they way they typed it in. Any help would be 
appreciated



[PHP] Array Sort?

2001-04-09 Thread Chris Anderson

Currently I am using the sort() command to sort an array. Unfortunately it uses the 
ascii number so all words starting with uppercase are before lowercase. Is there a 
case insensitive alphabetical sort that I don't know of? Thanks in advance ^_^



Re: [PHP] Array Sort?

2001-04-09 Thread Chris Anderson

heh, sounds fun. Oh well Thanks
- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>; "Chris Anderson"
<[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2001 8:47 PM
Subject: Re: [PHP] Array Sort?


> On Fri,  6 Apr 2001 18:33, Chris Anderson wrote:
> > Currently I am using the sort() command to sort an array. Unfortunately
> > it uses the ascii number so all words starting with uppercase are
> > before lowercase. Is there a case insensitive alphabetical sort that I
> > don't know of? Thanks in advance ^_^
>
> You might have to use usort and build a little case-insensitive sort
> routine yourself. Remember that ASCII A + 32 = ASCII a and so forth.
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>


-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Chris Anderson

/me counts to himself
Yep 3 times, thats as bad as those people who sign up the lottery ads to
this list
- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "'Jeffrey Greer'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 12:52 PM
Subject: RE: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___


> Yes, we know, you've told us three times now.
>
>
> -Original Message-
> From: Jeffrey Greer [mailto:[EMAIL PROTECTED]]
> Sent: 10 April 2001 17:45
> To: [EMAIL PROTECTED]
> Subject: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___
>
>
> Hello,
>
> I am offering php hosting with features at a price no one else has, as
> far as I know.  I'm not going to create a giant web hosting service.
> I'm doing this to pay for my web portal.
>
> 
>
>
>
> **
> 'The information included in this Email is of a confidential nature and is
> intended only for the addressee. If you are not the intended addressee,
> any disclosure, copying or distribution by you is prohibited and may be
> unlawful. Disclosure to any party other than the addressee, whether
> inadvertent or otherwise is not intended to waive privilege or
confidentiality'
>
> **
>
> --
> 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] Do any of you provide hosting?

2001-04-12 Thread Chris Anderson

I currently am using Thehostpros.com for my hosting, but I can't say its been a 
pleasant experience. I had to have them install PHP because they are more ASP 
oriented. So that cost me more. Then I wanted MySQL and they have spent 3 months 
saying they'll install that. Basicly here's what I need:
Someone who can host my domain (I own the domain already)
Can provide MySQL and PHP. Both up-to-date.
Can give around 60 meg of space (ballpark, less should be fine)
Also a way to set up subdomains without needing to go through the admin (some hosts 
can do his). But this isn't necessary.
Can anyone help with that?




[PHP] Newbie MySQL Table Work

2001-04-12 Thread Chris Anderson

Alright I finally got around to installing MySQL on my cpu, and I sucessfully created 
a database. Now I have a ryyy dumb question. In the manual I see no 
functions for creating tables in a database through code. Maybe I'm just missing the 
function. Can someone help me?



Re: [PHP] Easy News Script

2001-04-12 Thread Chris Anderson

I prefer to write my own
- Original Message -
From: "Zeus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001 10:11 AM
Subject: [PHP] Easy News Script


I'm sure many of you heard of newsphp ? (the newspro-clone).

Somehow I felt attached to it except that it doesn't use databases for its
file storing.

Does anyone know a good similar script (easy to setup) that uses mySQL?




-- 
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] Do any of you provide hosting?

2001-04-12 Thread Chris Anderson

i'll have to try that. But can they use my current domain. Also do setting
up sub-domains in an hour cost me anything?
- Original Message -
From: "Lindsay Adams" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001 1:36 PM
Subject: Re: [PHP] Do any of you provide hosting?


> Check out aitcom.net
>
> get a resellers account, and go hog wild. you can even edit the httpd.conf
> page for custom liasing of directories, and anything else.
>
> I wasn't able to get them to compile PHP with some of the extras, at least
> not as an apache module, BUT I was able to compile PHP as a cgi for a few
> custom features.(libpdf.so)
>
> and setting up new domains is a breeze. Just order it, and wait an hour.
>
> So, if you are wanting to host other sites (and charge for them) a
> reseller's account with AIT is a great way to go. A couple of paid sites
can
> quickly cover the costs for your own site.
>
> I am up to 27 virtual hosts on my account
>
> On 4/12/01 10:28 AM, "Matt McClanahan" <[EMAIL PROTECTED]> wrote:
>
> > On Thu, Apr 12, 2001 at 10:34:26AM -0400, Chris Anderson wrote:
> >
> >> Someone who can host my domain (I own the domain already)
> >> Can provide MySQL and PHP. Both up-to-date.
> >> Can give around 60 meg of space (ballpark, less should be fine)
> >> Also a way to set up subdomains without needing to go through the admin
(some
> >> hosts can do his). But this isn't necessary.
> >> Can anyone help with that?
> >
> > Handy PHP hosting directory:
> >
> > http://hosts.php.net
> >
> > Matt
>
>
> --
> 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] MySQL Results NULL Error

2001-04-12 Thread Chris Anderson

If I grab values from fields and they contain nothing, and I retrieve them using 
mysql_field_array, it will give an index out of range. Is there a way to prevent the 
error or do I have to keep putting a @ in front of the variable declaration?



[PHP] I know POST Uploads, what about "downloads?"

2001-04-13 Thread Chris Anderson

I have a large script set that allows people I host to manage their files on my server 
until they have a FTP account setup. Unfortunately the only way they can save an 
uploaded file is to r-click on the link in the managers listing and choose "Save link 
target". This obviously doesn't work for PHP or ASP(ugh) because the browser parses 
them THEN sends it to the client. Is there anyway to allow the client to download the 
actual unparsed file? Any help would be appreciated ^_^



[PHP] peter.johansson@era.ericsson.se PLEASE UNSUBSCRIBE!!!

2001-04-13 Thread Chris Anderson

I am so tired of receivng multiple error emails when I post



Re: [PHP] Mails

2001-06-21 Thread Chris Anderson

did you sign up 10 times?
- Original Message - 
From: "MySQL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 7:25 AM
Subject: [PHP] Mails


> Can someone tell me why i'm receiving the mails 10 times each???
> 
> 
> -- 
> 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] Sessions vs Cookies?

2001-06-21 Thread Chris Anderson



I am about to write a new admin system for a 
website I do and it will have many different logins. I was wondering overall 
which most of you thought would be better for such a thing? Wants really a pro 
about sessions over cookies?


[PHP] MySQL Dump In PHP

2001-06-22 Thread Chris Anderson



I've been reading through the MySQL manual about 
backing up my database using mysql dump. I tried passing it as a Query in PHP 
but that doesn't seem to work. Does anyone know how to do this? Also does the 
dump back up the files into a directory I specify? I am on a virtual host and 
need to create the files in my own directories. Any help would be 
appreciated


[PHP] Time out Errors?

2001-06-30 Thread Chris Anderson

I have mayn scripts on a website that use MySQL connections for various tasks. 
Strangely sometimes a task will hit the timeout (30 sec), then work perfectly when I 
refresh. Or even work perfectly other times. I'm using Apache on Windows 98 and I'd 
never had this bug before. Would it be because I connect to MySQL so much? Should I 
use mysql_pconnect instead of normal connect to alleviate this? Any help would be 
appreciated



Re: [PHP] accessing files not in www root directory.

2001-06-30 Thread Chris Anderson

you may want to send this as a NON-reply, because many people view mail by
grouped threads, and thus would miss your question

Original Message -
From: "Sterling Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 01, 2001 12:05 AM
Subject: [PHP] accessing files not in www root directory.


> Hi,
> I am trying to write a page that will perform a select on a DB and get the
> path and file name of an image. Then display the image.
> The DB part if fine but I am having difficulty figuring out how to get the
> images to display. For example:
>
> result from select:
> $file_path = "/home/pics/friends/"
> $file_name = "bob.jpg"
>
> Now, say my web root directory is "/etc/http/wwwroot"
>
> How do I create a link to my file "/home/pics/friends/bob.jpg"?
> I tried symlink() but the link created appears to hang around after it is
no
> longer needed.
>
> By the way, this is a Linux server running Apache.
>
> Any ideas?
>
> Thanks,
>
> Sterling Anderson
> [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] question about forms.

2001-07-01 Thread Chris Anderson

Don't post the question in a reply and someone will see your question
- Original Message -
From: "Jason brashear" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, July 01, 2001 5:34 PM
Subject: [PHP] question about forms.


> I have a question. I am using  PHP MySQL.
> I am able to quary to DB and edit post delete through forms.
> Problem.  I need to be able to also send out emails when something is
posted
> to the databas as well as send the information that was submitted like a
> recipt.
>
> Any ideas?
> Please help.
> -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 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] Quicky, I forgot a Varible ):

2001-07-01 Thread Chris Anderson

Maybe he means $PHP_SELF?
Then again he just kindof rambled
- Original Message - 
From: "Jason Murray" <[EMAIL PROTECTED]>
To: "'ReDucTor'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 12:37 AM
Subject: RE: [PHP] Quicky, I forgot a Varible ):


> > Hey, I Forgot the Variable that has the current 
> > Document/script or Folder of the Docment/script
> 
> Look at the output from phpInfo(), then - you'll find it there.
> 
> I didn't answer you because I can't figure out precisely which
> variable you want based on your question.
> 
> 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 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] How can i read php from browser??

2001-07-02 Thread Chris Anderson

You need to open your httpd.conf and add the extension lines to make it
parse php. Mine looked like this:

ServerRoot "C:/Dev/Apache Group/Apache"
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3

But also this is on my windows box. Yours will look a bit different
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 7:30 AM
Subject: [PHP] How can i read php from browser??


> Hello,
> i have apache 1.3.19 configured with php 4.
> i think is configured ok because /usr/local/apache/logs/error_log says:
>
>Apache/1.3.19 (Unix) PHP/4.0.6 configured -- resuming normal
operations
>
> When i connect to machine via web, the browser (netscape) don't show me
> the text and open a window to download the page.
>
> Somebody can help me??
> Thanx, c-ya and regrets from Spain...;->
>
>
> +-++-+
> |   /"\ mailto:[EMAIL PROTECTED] |
> |   \ / ASCII Ribbon Campaign|
> |X  best view with Lynx & Pine   |
> |   / \ http://www.thebackrow.net|
> ++
>
> ---
> Mensaje enviado desde e-milio.com.
> Create una cuenta de correo gratuita en www.e-milio.com
>
>
>
> --
> 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: mailing list php-general@lists.php.netµÄ×Ô¶¯»ØÐÅ

2001-07-02 Thread Chris Anderson

You guys have some serious problems. I recommend getting help
- Original Message -
From: "Justin Farnsworth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 8:42 AM
Subject: [PHP] Re: mailing list [EMAIL PROTECTED]µÄ×Ô¶¯»ØÐÅ


> What is going on in this sub-culture?  Now I see this
> as a row of penguins.  Is this a kind of Kilroy Was Here
> phenomenon -- like Linux Was Here or something?
>
> Somebody please enlighten me on this new
> er, ASCII art, "social phenomenon".
>
>
>
>
> [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
> >
> >ºÜ¸ßÐËÊÕµ½ÄãµÄÓʼþ£¡
> >
> > ===
> > Ãâ·Ñµç×ÓÓÊÏä http://home.sina.com.cn
>
> --
> Justin Farnsworth
> Eye Integrated Communications
> 321 South Evans - Suite 203
> Greenville, NC 27858 | Tel: (252) 353-0722
>
> --
> 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] password sanity checker

2001-07-03 Thread Chris Anderson

Getting the size is easy, and if you had a small dictionary you could see if
the password existed in that by looping through it. Not sure about checking
if it is LIKE the username
- Original Message -
From: "Charles Sprickman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 12:18 PM
Subject: [PHP] password sanity checker


> Hi,
>
> I've been digging around for a function to do a sanity check on
> user-supplied passwords when creating a new account.  Haven't found
> anything yet...  Any pointers appreciated.
>
> Ideally it should:
>
> -check for a min number of numerals
> -check for similarity against username (?)
> -check at least a small dictionary
>
> Although anything that could provide a starting point would be great.
>
> Thanks,
>
> Charles
>
> | Charles Sprickman  | Internet Channel
> | INCH System Administration Team| (212)243-5200
> | [EMAIL PROTECTED] | [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] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues

2001-07-03 Thread Chris Anderson

btw, that error looks more like a mysql setup / runtime problem. IE..is the
server running?
- Original Message -
From: "Paul Burney" <[EMAIL PROTECTED]>
To: "andreas (@work)" <[EMAIL PROTECTED]>
Cc: "php mailing list 2" <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 11:51 AM
Subject: [PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues


> on 7/3/01 5:47 AM, andreas (@work) ([EMAIL PROTECTED]) wrote:
>
> > ive got 3 servers (dedicated) with mysql 3.22.32 and above and
phpMyAdmin
> > 2.1.0 but i cant reproduce the vulnerability
>
> > i use advanced uthentication
>
> >
http://ip/phpMyAdmin/sql.php?server=000cfgServers[000][host]=hello&btnDrop=N
> > o&goto=/etc/passwd
>
> If that URL is copied correctly, it might be because there's no "&"
between
> the server=000 and the cfgServers[000][host].
>
> If not, maybe your particular configuration isn't vulnerable.
>
> If you use a Apache Auth for access to the folder and normal auth in
> phpmyadmin, you are not vulnerable to outsiders but *you* can still view a
> server's sensitive files which can be really dangerous in a shared server
> environment.
>
> Sincerely,
>
> Paul Burney
>
> +-+-+
> | Paul Burney | P: 310.825.8365 |
> | Webmaster && Programmer | E: <[EMAIL PROTECTED]>   |
> | UCLA -> GSE&IS -> ETU   | W:  |
> +-+-+
>
>
> --
> 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] Basic multi-dimensional array help

2001-07-03 Thread Chris Anderson

When I wanted multi-dimensional with forms, I think I had to do this:

- Original Message -
From: "Wieger Uffink" <[EMAIL PROTECTED]>
To: "Jeff Gannaway" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 8:32 AM
Subject: Re: [PHP] Basic multi-dimensional array help


> Hi Jeff,
>
> There probably are several ways of doing this.
>
> One is you copy $info[0] ( an array itself ) into a dummy variable, and
> get the values with $dummy[0] etc.
> Or use brackets in your variable syntax, which youll have to experiment
> with cause, I can never seem to remeber the right syntax :)
>
> something like ${$info[0]}[0] I think... correct me if Im wrong.
>
> Hope this helps,
> Wieger
>
> Jeff Gannaway wrote:
> >
> > I've got input fields in a form that look like:
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >
> > The next script processes all this into a database. Here are the results
I
> > get from various commands:
> >
> > sizeof($Info): 2
> > sizeof($Info[0]): 4
> > print $Info[0][0]: Array[0]
> >
> > Any help?
> > Jeff Gannaway
> >
> > ___
> >
> > SUMMER ART PRINT SALE at www.PopStreet.com
> > Save an additional 10% off art print orders of $50 or more.
> > Type in coupon code jemc when checking out.
> > ___
> >
> > Find the right art print for your home.
> > * Search by artist, color, art style and subject.
> > * Preview the art prints against your wall color.
> > * Specializing in contemporary, abstract and African
> >   American art.
> > * Every day discounts on thousands of fine art prints.
> >
> > PopStreet.com is your avenue to art.
> >
> > http://www.popstreet.com
> > ___
> > Coupon may be redeemed from June 27 through July 31, 2001.
> >
> > --
> > 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]
>
> --
> Wieger Uffink
> tel: +31 20 428 6868
> fax: +31 20 470 6905
> web: http://www.usmedia.nl
>
> --
> 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] PHP for NetWare?

2001-07-03 Thread Chris Anderson

Ugh Netware. I believe that is Windows oriented/based so try the windows
distrobutions
- Original Message -
From: "Tony Gettig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 7:49 AM
Subject: [PHP] PHP for NetWare?


Hi there,

Is PHP available for NetWare? I've looked high and low and find no reference
to such a beast. I prefer PHP on my Linux box, but I need to explore being
able to put it on a NetWare server running Netscape Enterprise. TIA for any
pointers in the right direction.


Tony Gettig
Network Administrator
Kalamazoo Public Schools




--
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] Compiling on Windows

2001-07-03 Thread Chris Anderson

Manual helps
- Original Message -
From: "Daniel Reichenbach" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 5:02 AM
Subject: [PHP] Compiling on Windows


> Hy,
>
> is there any guide available, how to compile the Windows version of
PHP4.0.6
> with all available modules like GD/Freetype, IMAP, curl, etc.
>
>
> Daniel
>
>
> --
> 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 Meeeeeeeeeee!!!!!!

2001-07-03 Thread Chris Anderson

A Visual Basic and MySQL project. Ouch, not exactly made to work together.
Plus Commercial + Open source, although that doesn't mean much. Really if
you make them work together, I'd LOVE to know how. VB is one of my best real
App programs. Next to C++ of course =)
- Original Message -
From: "Veerappan Rajendrakumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 10:30 PM
Subject: [PHP] Help Meee!!


>
>
>
> Hi,
>
> I am working on a banking project.
>
> we are planning to take our tour into vb/mysql combination.
>
> Please help me sending your comments.
>
> Thank you,
>
> V.Rajendrakumar.
>
>
> 
> Buy Feng Shui Package for Rs. 151/- only, at
http://shopping.rediff.com/shopping/fengshui_mailer.htm
>
>
>
>
> --
> 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] writing a query that returns similar numbers

2001-07-04 Thread Chris Anderson

Try the LIKE wording in your statement. That should workI think
- Original Message -
From: <[EMAIL PROTECTED]>
To: "PHP Mailingliste" <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 1979 12:48 PM
Subject: [PHP] writing a query that returns similar numbers


> I have a database with numbers in one of the tables I'd like to ask mysql
to
> renturn all numbers with say 10 of mynumber
>
> Sort of like this:
>
> $sql = "SELECT rowid FROM numbers WHERE (mynumer is within 10 of number)";
>
>
> but I've gotten stuck do I have to do this:
>
>
> $sql = "SELECT rowid FROM numbers WHERE (((mynumer+10) < number) AND
> (mynumer-10) > number) )";
>
> it seems kinda wordy ...
>
> Susan
>
>
> --
> 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] PHP for NetWare?

2001-07-05 Thread Chris Anderson

I agree, I've had it at work and I hated it. I love my SuSE box at home.
What more security do you need than Linux?
- Original Message -
From: "Jesse S. Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 3:30 AM
Subject: RE: [PHP] PHP for NetWare?


> Actually, Netware isn't specifically a "direct" competitor of Microsloth.
> Netware is strictly a NOS (network operating System), where as Windows is
a
> network, server and client OS.  Now, this certainly isn't meant to make it
> look as if I like M$, but I used to work on my company's General Motors
> account, and GM has (literally) the world's largest NDS Tree/Novell
Network.
> Frankly, it's not all that great.  Whether Wind-woes 2000 and AD will be
> better has yet to be seen, but NW isn't too great either.
>
> At any rate, no, there is currently no (supported/official) port of PHP to
> Netware, and frankly I doubt there's much, if any, work being done on such
a
> project.  At the rate NW is losing it's customer base, there may be more
> client's with OS/2 then servers with NW soon.
>
>
> Jesse Williams
>
>
>
>
>
> -Original Message-
> From: Tony Gettig [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 1:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP for NetWare?
>
>
> Actually, NetWare is a very different operating system than Windows. It's
a
> direct competitor to M$. Way more stable than windows. If PHP is available
> for NetWare, someone must have ported to the platform to run either as an
> NLM or with the JVM.
>
> There's a queston: is there perhaps a java executable version of PHP? If
so,
> it could feasibly run on NetWare.
>
> The Netscape Enterprise server for NetWare supports ASP, which is not
> preferable to PHP. I'd really like to stick with PHP.
>
>
> Tony Gettig
> Network Administrator
> Kalamazoo Public Schools
>
>
>
> >>> "Chris Anderson" <[EMAIL PROTECTED]> 07/03/01 12:44PM >>>
> Ugh Netware. I believe that is Windows oriented/based so try the windows
> distrobutions
> - Original Message -
> From: "Tony Gettig" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 7:49 AM
> Subject: [PHP] PHP for NetWare?
>
>
> Hi there,
>
> Is PHP available for NetWare? I've looked high and low and find no
reference
> to such a beast. I prefer PHP on my Linux box, but I need to explore being
> able to put it on a NetWare server running Netscape Enterprise. TIA for
any
> pointers in the right direction.
>
>
> Tony Gettig
> Network Administrator
> Kalamazoo Public Schools
>
>
>
>
> --
> 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]
>
>


-- 
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] Submiting Data with an '

2001-07-05 Thread Chris Anderson

On the same subject, can I make it automatically addslahes to my variables?
Or should I just make my own mysql class?
- Original Message -
From: "Matthew Loff" <[EMAIL PROTECTED]>
To: "'Mike Mike'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 3:29 PM
Subject: RE: [PHP] Submiting Data with an '


>
> Use the addslashes() call to automatically escape characters like that.
>
> MySQL will not add the slashes into the table cell, so no need to
> stripslashes() after you SELECT it back out.
>
>
> -Original Message-
> From: Mike Mike [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 3:19 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Submiting Data with an '
>
>
> Hello everyone,
> I'm having a problem of submiting an ' into a mysql
> database.  When I have a ' it doesn't update or submit
> the data.  but if I use \' it works fine.  Does anyone
> know of a way around this.
> Thanks
>   --Mike
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> --
> 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] Re: changing to a different file in browser

2001-07-05 Thread Chris Anderson

If you use Header after ANY page output, even a space, it will not work
- Original Message -
From: "Brad Wright" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 10:25 PM
Subject: Re: [PHP] Re: changing to a different file in browser


tried it, but it didn't work... still getting the same message in IE. Am I
missing something? Can I actually use the headr() function to redirect to a
different page while using sesions and session variables??

> From: "..s.c.o.t.t.." <[EMAIL PROTECTED]>
> Date: Thu, 5 Jul 2001 22:32:22 -0700
> To: "Php-General" <[EMAIL PROTECTED]>
> Subject: RE: [PHP] Re: changing to a different file in browser
>
> put "Location" before the URL:
>
> header("Location: http://server.com/file.php";);
> or
> header("Location: ./file.php");
>
>
>> -Original Message-
>> From: Brad Wright [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, July 05, 2001 18:54
>> To: PHP General List
>> Subject: Re: [PHP] Re: changing to a different file in browser
>>
>>
>> ihave tried the header() function as Julio suggested. But I get an error
>> message in the browser. I am also using session variables in all these
pages
>> (only 2).
>>
>> My code :
>> if (!mysql_numrows($result) ) {
>> die ( "username/password not valid");
>> }
>> else{
>>
>>
>> header("Menu.php");
>> }
>>
>>
>>
>>
>>
>> the error message in IE:
>> Warning: Cannot add header information - headers already sent by (output
>> started at /home/e-smith/files/ibays/bigpool1/html/login.php:1) in
>> /home/e-smith/files/ibays/bigpool1/html/login.php on line 1
>>
>>
>> Thanks in advance,
>> brad
>>
>>
>>> From: "Inércia Sensorial" <[EMAIL PROTECTED]>
>>> Date: Thu, 5 Jul 2001 22:26:24 -0300
>>> To: [EMAIL PROTECTED]
>>> Subject: [PHP] Re: changing to a different file in browser
>>>
>>> header ("http://www.example.com";); // Goes to example.com.
>>>
>>> --
>>>
>>>
>>> Julio Nobrega.
>>>
>>> A hora está chegando:
>>> http://sourceforge.net/projects/toca
>>>
>>> "Brad Wright" <[EMAIL PROTECTED]> wrote in message
>>> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,
 I know this is probably the most stupid question you'll see on this
list
>>> for
 a while, but anyway,
 In an 'if..else' statement, I want to (if a condition is met) change to
a
 totally new php page in the browser window. I know this is simple (in
fact
>>> i
 had it working last night but have now forgotten how i did it).

 ie (no the following is NOT actual PHPsheesh :)

 If  a=1
 go to required_page.php
 else
 do nothing

 Thanks in advance,
 Brad

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




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

2001-07-05 Thread Chris Anderson

You mean I'm not here?
- Original Message -
From: "Don Read" <[EMAIL PROTECTED]>
To: "McShen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 2:32 AM
Subject: RE: [PHP] testing


>
> On 06-Jul-01 McShen wrote:
> > where are u guys?
>
> I'm sorry, I've gone insane, please leave your message and number at the
tone.
> I will return your call as soon as i get back.
>
>  ... BEEP!
> --
> Don Read   [EMAIL PROTECTED]
> -- It's always darkest before the dawn. So if you are going to
>steal the neighbor's newspaper, that's the time to do it.
>
> --
> 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] Bibliography & Profiles Directory - Looking for Existing GPL Apps

2001-07-05 Thread Chris Anderson

"profiles"?
- Original Message -
From: "Mike Gifford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 2:06 AM
Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL
Apps


> Hello,
>
> I'm looking to see if someone out there has already developed a php/mysql
> bibilography.  I haven't been able to find one online.
>
> I'm also looking for a profiles directory.  Rather vague definition here,
sorry.
>
> Ultimately it will be i18n compliant..
>
> Mike
> --
> Mike Gifford, OpenConcept Consulting, http://openconcept.ca
> Offering everything your organization needs for an effective web site.
> Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
> It is a miracle that curiosity survives formal education. - A Einstein
>
>
> --
> 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

2001-07-06 Thread Chris Anderson

Question?
- Original Message - 
From: "Peter Mead" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 9:52 AM
Subject: [PHP] -help


> -help
> 
> 
> -- 
> 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] Bibliography & Profiles Directory - Looking for Existing GPL Apps

2001-07-06 Thread Chris Anderson

Ahh, dunno about that at all
- Original Message -
From: "Mike Gifford" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 9:41 AM
Subject: Re: [PHP] Bibliography & Profiles Directory - Looking for Existing
GPL Apps


> Sorry for being so vague in my last message.
>
> Let's say you want to hilight 100 people (say best atheletes, coders, what
have
> you).  You want a brief profile of this person.  Name, location,
languages,
> picture, areas of interest, etc..
>
> Something so that you can get a sense of who these folks are.
>
> Mike
>
> Chris Anderson wrote:
>
> > "profiles"?
> > - Original Message -
> > From: "Mike Gifford" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, July 06, 2001 2:06 AM
> > Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing
GPL
> > Apps
> >
> >
> >
> >>Hello,
> >>
> >>I'm looking to see if someone out there has already developed a
php/mysql
> >>bibilography.  I haven't been able to find one online.
> >>
> >>I'm also looking for a profiles directory.  Rather vague definition
here,
> >>
> > sorry.
> >
> >>Ultimately it will be i18n compliant..
> >>
> >>Mike
> >>--
> >>Mike Gifford, OpenConcept Consulting, http://openconcept.ca
> >>Offering everything your organization needs for an effective web site.
> >>Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
> >>It is a miracle that curiosity survives formal education. - A Einstein
> >>
> >>
> >>--
> >>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]
> >>
> >>
> >
>
>
>
> --
> Mike Gifford, OpenConcept Consulting, http://openconcept.ca
> Offering everything your organization needs for an effective web site.
> Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
> It is a miracle that curiosity survives formal education. - A Einstein
>
>


-- 
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 : Recommendation for - FREE Yellow Page entry

2001-07-06 Thread Chris Anderson

no, go away
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 9:18 AM
Subject: [PHP] Re : Recommendation for - FREE Yellow Page entry


> Hi,
>
> Reference : May we have your permission ?
>
> A visitor to one of our 60 Topical sites has recommended
> we contact you, to include your business in the Only-Yellow-Pages
Directory.
>
> The information they have provided is :
>
> Email: [EMAIL PROTECTED]
> URL  : e-gineer.com
> Category : Florida
>
> Do you feel this would be appropriate and if so, may  we
> have permission to give your site a FREE listing ?
>
> Only-Yellow-Pages is the first online GLOBAL Yellow Pages
> Directory covering over 700 cities in over 120 countries,
> EACH with it's own domain and directory.
>
> Entries are displayed on almost 3000 topical and regional web sites
> currently getting over 2 MILLION visitors per month.
>
> We receive numerous submissions like this but will not
> activate ANY without the owner's consent.
>
> May we have your permission to list your site ?
>
> There is no charge.
>
> If you want it listed, please go to :
>
> http://www.only-yellow-pages.com
>
> to choose the design, and enter your information.
>
> Thanking you in anticipation..
>
>
>
> Sincerely,
>
> Tony Alkin
> Director
>
> mailto:[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] Problem writting to file...

2001-07-06 Thread Chris Anderson

I don't see anything wrong with the code. Does this work:


- Original Message -
From: "James Bartlett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 2:15 PM
Subject: [PHP] Problem writting to file...


Hi,

I'm trying to write data to a file but for some reason it will not store
numbers in the file...Here's the code I'm using...(as an example)



Thanks for any help...

James



-- 
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] Missing first record in PHP/Mysql query

2001-07-06 Thread Chris Anderson

here may be why:
//Right here you grab a row
$query_data = mysql_fetch_row($result);
//but you don't use it and you move on
 while($query_data = mysql_fetch_array($result)) {
- Original Message - 
From: "Rory O'Connor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 3:11 PM
Subject: [PHP] Missing first record in PHP/Mysql query


> Excuse me if this is too newbie...but I'm writing a simple script to
> query a database and loop through the reuslts, echoing them on the page.
>  When I enter the query at the mysql command line, I get the correct
> results.  But the same query run through PHP renders all results except
> the first one.  Any idea why?  I've included the code snippet below:
> 
> //the query to select the data
> $query = "SELECT firstname,email,optin from contact where
> interest='rory'";
> $result = mysql_query($query);
> if(!$result) error_message(sql_error());
> 
> $query_data = mysql_fetch_row($result);
> 
> while($query_data = mysql_fetch_array($result)) {
> $firstname = $query_data["firstname"];
> $email = $query_data["email"];
> $optin = $query_data["optin"];
> 
> echo "\n";
> echo "$firstname;$email;$optin\n";
> 
> } //end while loop 
> 
> also, what would be the code to output the reuslts to a text file
> instead of (or in addition to) the screen?
> 
> thanks,
> 
> rory
> 
> providing the finest in midget technology
> 
> -- 
> 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] Creating a Variable with the Name of a string

2001-07-06 Thread Chris Anderson

I know this has been discussed before, but I've searched the manual and didn't see it 
under Variable functions, or any of my searches. 
I have varible $temp, how can I create a variable whose name is the string stored in 
$temp? Thanks in advance



Re: [PHP] Creating a Variable with the Name of a string

2001-07-06 Thread Chris Anderson

Thanks

- Original Message -
From: "scott [gts]" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 4:27 PM
Subject: RE: [PHP] Creating a Variable with the Name of a string


> try using assoc. arrays also...
> they're much nicer to deal with ;)
>
>
> > -Original Message-
> > From: James Atkinson [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 06, 2001 4:20 PM
> > To: Chris Anderson; [EMAIL PROTECTED]
> > Subject: RE: [PHP] Creating a Variable with the Name of a string
> >
> >
> > $temp = "myvar";
> > $$temp = "My value";
> >
> > echo $myvar;
> >
> > output:
> > My value
> >
> > - James
> >
> > > -Original Message-
> > > From: Chris Anderson [mailto:[EMAIL PROTECTED]]
> > > Sent: July 6, 2001 1:17 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Creating a Variable with the Name of a string
> > >
> > >
> > > I know this has been discussed before, but I've searched the manual
and
> > > didn't see it under Variable functions, or any of my searches.
> > > I have varible $temp, how can I create a variable whose name is the
> > > string stored in $temp? Thanks in advance
> > >
> >
> > --
> > 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] How to apply something to every variable

2001-07-06 Thread Chris Anderson

I was playing around trying to find a way to addslashes() to all my variables, and I 
came up with this snippet. Hope it helps someone

 $keys = array_keys($HTTP_POST_VARS);
 $post_size = sizeof($keys);
 for($x = 0; $x < $post_size; $x++)
 {
  $temp = $keys[$x];
//you can replace addslashes with whatever you want to use
  ${"$temp"} = addslashes($HTTP_POST_VARS["$temp"]);
 }



Re: [PHP] How to apply something to every variable

2001-07-06 Thread Chris Anderson

Fine, just outdo me =)
- Original Message - 
From: "Chadwick, Russell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:10 PM
Subject: RE: [PHP] How to apply something to every variable


> 
> while (list($key, $val) = each ($HTTP_POST_VARS)) {
> ${$key} = addslashes($val);
> }
> 
> - Russ
> 
> -----Original Message-
> From: Chris Anderson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 3:07 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to apply something to every variable
> 
> 
> I was playing around trying to find a way to addslashes() to all my
> variables, and I came up with this snippet. Hope it helps someone
> 
>  $keys = array_keys($HTTP_POST_VARS);
>  $post_size = sizeof($keys);
>  for($x = 0; $x < $post_size; $x++)
>  {
>   $temp = $keys[$x];
> //you can replace addslashes with whatever you want to use
>   ${"$temp"} = addslashes($HTTP_POST_VARS["$temp"]);
>  }
> 
> -- 
> 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] Post a form within a running php-script

2001-07-06 Thread Chris Anderson

Put the variables in the url ie:
script.php?username=joebob&password=joepassword
- Original Message - 
From: "SED" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:30 PM
Subject: [PHP] Post a form within a running php-script


> For a special purpose I want to post a form within a running script, is
> it possible? I don't need the feedback, only post it to a http-path. (To
> clarify, I'm not asking about Submitting a form via button.)
> 
> Regards,
> Sumarlidi Einar Dadason
> 
> SED - Graphic Design
> 
> --
> Phone:   (+354) 4615501
> Mobile:  (+354) 8960376
> Fax: (+354) 4615503
> E-mail:  [EMAIL PROTECTED]
> Homepage:www.sed.is
> --
> 
> 
> -- 
> 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] Printing a root link into HTML

2001-07-06 Thread Chris Anderson

I need to give a link to a file in a previous directory, but HTML doesn't understand 
../ links. Any idea how I can do this?



Re: [PHP] Post a form within a running php-script

2001-07-06 Thread Chris Anderson

Yes, replace spaces with + signs
- Original Message -
From: "SED" <[EMAIL PROTECTED]>
To: "'Chris Anderson'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 7:24 PM
Subject: RE: [PHP] Post a form within a running php-script


I thought that at first but I need to post long variables (some
containing many words) and many, is that okay?

-Original Message-
From: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: 6. júlí 2001 23:08
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Post a form within a running php-script


Put the variables in the url ie:
script.php?username=joebob&password=joepassword
- Original Message -
From: "SED" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:30 PM
Subject: [PHP] Post a form within a running php-script


> For a special purpose I want to post a form within a running script,
> is it possible? I don't need the feedback, only post it to a
> http-path. (To clarify, I'm not asking about Submitting a form via
> button.)
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
>
> --
> Phone:   (+354) 4615501
> Mobile:  (+354) 8960376
> Fax: (+354) 4615503
> E-mail:  [EMAIL PROTECTED]
> Homepage:www.sed.is
> --
>
>
> --
> 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] Real Estate Catalog

2001-07-07 Thread Chris Anderson

Don't say "steal", say "learn from"
: )
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Joe Smith" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 1979 2:44 AM
Subject: Re: [PHP] Real Estate Catalog


> on 7/7/01 2:43 AM, Joe  Smith at [EMAIL PROTECTED] wrote:
>
> > If you'd rather I bore everyone with the details, let me know and I'll
post
> > my questions to this thread for all to see and chime in on.
>
>
> If your questions are clear, and if you don't post too much code people
here
> seem to be very nice. It helps if the question is general enough that
other
> people can use the answer too.
>
> I'm new at all this too when I get stuck, I try google or one of these
sites
> for help before posting ...
>
> http://www.php.net
> tells how to use most functions
>
> http://www.webmonkey.com
> Great tutorials, but only for easy stuff
>
> http://www.mysql.com
> a bit confusing, but in theory all the functions are here...
>
> http://www.phpbuilder.com
> lots of posts, often I find that someone else has had the same question as
> me, also some great tutorials.
>
> http://www.devshed.com
> lots of great scripts to steal
>
>
> Good Books:
>
> O'Riley PHP pocket reference
> MySQL by Paul DuBois and Michael Widenius
> O'Riley MySQL and mSQL
>
> Hope that helps!
>
>
>
>
> --
> 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] Something weird

2001-07-07 Thread Chris Anderson

So how is that weird?
- Original Message - 
From: "David OBrien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 2:02 PM
Subject: [PHP] Something weird


> I just installed a fresh RH 7.1 server with compiled apache and php 4.0.6
> 
> 
> -- 
> 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] Restoring a Dump File With PHP

2001-07-07 Thread Chris Anderson

I created a MySQL dump file (.sql) and I wanted to use it to restore my database. 
Unfortunately the manual (MySQL) only shows the command line method:
mysql database < file.sql
I tried this in PHP and it didn't work. Does anyone know how to load the .sql file 
into the database through PHP? Thanks



Re: [PHP] Convert MP3s using PHP ?

2001-07-07 Thread Chris Anderson

Try looking for BladeEnc. It is a freeware encoding dll/runtime that works
in windows and unix and is completely command line
- Original Message -
From: "Tom Carter" <[EMAIL PROTECTED]>
To: "Michel 'ZioBudda' Morelli" <[EMAIL PROTECTED]>; "Micha Ober"
<[EMAIL PROTECTED]>
Cc: "php" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 8:12 AM
Subject: Re: [PHP] Convert MP3s using PHP ?


> > >hi,
> > >is it possible to convert a mp3 file (for example
> > >190kbps) to a mp3 file with 128kbps or less ?
> >
> > exec()
> > system()
>
> To expand upon that previous answer.. sort of. PHP can't, but if you can
> find a command line utility to perform the conversion (sorry, I don't know
> any of hand) then PHP can save the file to the syatem, run the utility by
> exec() and then read in the resulting file.
>
> HTH
>
>
> --
> 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] require_once(); questions

2001-07-07 Thread Chris Anderson

Actually this does work:
//First_File.php


//Second_File.php


//Active file


That would produce the output of :
  I am the test variable

An include or require just places the files' contents at the line you
include it. So after the includes(requires) my parsed code was:


Hope this helps

- Original Message -
From: "Inércia Sensorial" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 5:59 PM
Subject: [PHP] require_once(); questions


>   Hi All,
>
>   I have a function that includes files based on some SQL queries. On one
of
> the first loaded files, I want to define a function and use it on another
> included file. Something like:
>
> includes file:
> first_file.inc.php
> This file has: $test = "Show me!";
>
> Then include file:
> second_file.php
> This file has: echo $test;
>
>   But doesn't show nothing, so I guess it is not possible to do. Am I
right?
> If so, what's the best alternative?
>
>   Also, another question since it is a function that includes the
files,
> the contents of these files are not available outside the function scope..
> what's the best way to use it outside the function?
>
>   Thanks a lot
>
> --
>
>
>   Julio Nobrega.
>
> A hora está chegando:
> http://sourceforge.net/projects/toca
>
>
>
>
> --
> 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] How to apply something to every variable

2001-07-07 Thread Chris Anderson

The true point of that snippet was to apply something to all my variables.
Plus, not all servers have that option on :>
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 7:49 AM
Subject: Re: [PHP] How to apply something to every variable


> Hi Chris!
> On Fri, 06 Jul 2001, Chris Anderson wrote:
>
> > I was playing around trying to find a way to addslashes() to all my
> > variables, and I came up with this snippet. Hope it helps someone
> >
> why don't you turn on magic_quotes_gpc then?
>
> >  $keys = array_keys($HTTP_POST_VARS);
> >  $post_size = sizeof($keys);
> >  for($x = 0; $x < $post_size; $x++)
> >  {
> >   $temp = $keys[$x];
> > //you can replace addslashes with whatever you want to use
> >   ${"$temp"} = addslashes($HTTP_POST_VARS["$temp"]);
> >  }
> -- teodor
>
> --
> 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]




  1   2   >