Re: [PHP] Test links?

2002-11-29 Thread Jason Reid
fopen each link and see if it returns true or false (false meaning its down)

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Rob Packer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 29, 2002 3:53 PM
Subject: [PHP] Test links?


> First, I'd like to say that I'm not asking for anyone to write a script...
> how would I go about checking a MySQL database of links to see if any are
> down?
>
> I've had some varying results with all the methods I've tried, so would
like
> to see if anyone has a proven method for doing this.
>
> Thanks,
> Robert
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Flushing Output

2002-12-10 Thread Jason Reid
have a look at the output control functions.

http://www.php.net/manual/en/ref.outcontrol.php

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Richard Baskett" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 5:27 PM
Subject: [PHP] Flushing Output


> Is there a way of flushing output to the browser.  So for example, I have
a
> script that checks things in a database, every check, or every hundred
> checks it would be nice to output something to the browser.. currently it
> finishes what it does, or after a minute or so it then shows the final
page
> with the output.. I hope that made sense :)
>
> Cheers!
>
> Rick
>
> I regard as a mortal sin not only the lying of the senses in matters of
> love, but also the illusion which the senses seek to create where love is
> only partial. I say, I believe, that one must love with all of one's
being,
> or else live, come what may, a life of complete chastity. - George Sand
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] understanding headers

2002-12-11 Thread Jason Reid
I haven't used headers for this, but heres my $0.02.

What is the value of hte $name var? I suspect its empty, as register_globals
is probaly enabled... try using $_GET['name'] instead of just $name, and
$_GET['size'] instead of $size.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Colin Bossen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 5:17 PM
Subject: [PHP] understanding headers


> Hello:
>
> I am trying to use the header function to enable users to download
> files. I am able to get files to download. Unfortunately, the wrong file
> keeps downloading. Instead of downloading the file I want the php source
> file is getting downloaded. Here is the posting code:
>
> $output = " href=\"download.php?name=".$filename."&size=".$size."\">Click here to
> download ".$filename."";
>
> echo $output;
>
> Here is the download code:
>
>  if ($name) {
>
>header("Content-type: application/x-macbinary");
>header("Content-length: $size");
>header("Content-Disposition: attachment; filename=$name");
>header("Content-Description: PHP Generated Data");
>echo $data;
> }
> ?>
>
> Any help anyone might have would be much appreciated.
>
> Colin
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] who is connected?

2002-12-18 Thread Jason Reid
How I do it for my sites is borrowing from the concept that phpBB uses...
every time a user accesses a page within the site, update the DB with the
username and a timestamp. then have the script that figures out who is on
delete any records older then a specified time, and return the users that
are left. it doesn't display everyone who is on in real time, but any one
who was on within a certain period (usually I stick with 5 minutes)

If any one else has any interesting/creative ways, I'd love to hear them
also.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "fragmonster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 1:05 AM
Subject: [PHP] who is connected?


> Hello,
> Can you share your method to display the users who are connected to your
> web site?
>
> I did it, but I don't know if it's a good way.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Forms

2002-12-23 Thread Jason Reid
And remember that if you alter the php.ini file once you have found it, that
you MUST restart apache in order for the changes to take place.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Johannes Schlueter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 10:07 AM
Subject: Re: [PHP] Forms


> On Monday 23 December 2002 17:30, John Nichel wrote:
> > How did you install php?  RPM, from source?  Check in /etc, or do a...
> >
> > find / -name php.ini
>
> Or run a script
>
>phpinfo();
> ?>
>
> and look what "Configuration File (php.ini) Path" tells you. On the output
ob
> this comamnd you can see the settin of register_globals, too.
>
> johannes
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] PHP & RTF

2003-01-14 Thread Jason Reid
http://www.phpbuilder.com/columns/nair20020523.php3

Looked fairly good when I read thru it a while back. Hope that it might be
able to help.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "[-^-!-%-" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 5:53 PM
Subject: [PHP] PHP & RTF


>
> For those of you with experience in using php for RTF documents.
>
> I need help generating RTF Style tags from PHP. I can convert regular text
> to an RTF document, but the document will
> display RTF Style tags as regular text (in the RTF document).
>
> How do I make the RTF document recognize the RTF Style tags.
>
> Any help with code samples, tutorials and/or references, will be greatly
> appreciated.
>
> -john
>
> =P e p i e  D e s i g n s
>  www.pepiedesigns.com
>  Providing Solutions That Increase Productivity
>
>  Web Developement. Database. Hosting. Multimedia.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




Re: [PHP] PATH_TRANSLATED

2003-06-07 Thread Jason Reid
This is likely due to Win32 not being required to do any virtual to real
mapping. This itself isn't PHP's fault, as the variable itself is set by
Apache.

Jason Reid
[EMAIL PROTECTED]
--
Exumweb Network
www.exumweb.net
- Original Message -
From: "Øystein Håland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 10:32 AM
Subject: Re: [PHP] PATH_TRANSLATED


> That gives  the following error: Notice: Undefined index: PATH_TRANSLATED
> and the reason is the variable isn't set by Apache/PHP
>
> "Matt" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> >
> > - Original Message -
> > From: "Øystein Håland" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, June 07, 2003 11:37 AM
> > Subject: [PHP] PATH_TRANSLATED
> >
> >
> > > Is there some way to retrieve the phpvariable PATH_TRANSLATED on my
> local
> > > win2k+Apache2+php4.3.2 box?
> >
> > echo "Path Translated: {$_SERVER['PATH_TRANSLATED']}";
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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



Re: [PHP] PHP 4.2.2 release problems

2002-07-23 Thread Jason Reid

Check if the $page variable has a value. I'm thinking they had 4.0.x before,
or had register_globals enabled, and ur passing $page by querystring right?

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Daniel Thompson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 10:41 AM
Subject: [PHP] PHP 4.2.2 release problems


> After my host recently upgraded to the latest version after reading the
> recent advisory I have got an error that won't load one of my php pages
and
> I can't see why not. Here's the error I get -
>
> Warning: Failed opening '' for inclusion
> (include_path='.:/usr/lib/apache/php') in
/home/sites/site41/web/horror.php
> on line 28
>
> Here's what horror.php looks like -
>
> lbar-highlight-color: #C20808;
> scrollbar-3dlight-color: #00;
> scrollbar-darkshadow-color: #00;
> scrollbar-track-color: #00;
> scrollbar-arrow-color: #C20808;
> A {color:#C20808}
> A {text-decoration: none}
> A:active {text-decoration: none}
> A:active {color:#C20808;}
> A:visited {color:#C20808;}
> A:hover {text-decoration: underline overline}
> A:hover {color:#C20808}
> }
>
> 
> 
>   
>  ?>
>  height=104 border=0 valign=top>
> 
>   
>   
> 
>   
> 
>   
> 
>
>
> Any help would be greatly recieved. Thanks in advance,
> Dan
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Re: How to add new user to the domain

2002-07-23 Thread Jason Reid

http://www.mricon.com/SM/guide

he has a tutorial (for both redhat, and freebsd) that details exactly howto
setup a full mail server, using virtual domains/users. step by step. should
be what is needed here. I use it personally for my servers.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "Anan" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 8:35 PM
Subject: [PHP] Re: How to add new user to the domain


> >Any one please let me know how to use PHP to add new user to a domain for
> >using mail (sendmail).
>
> You mean like a *REAL* user with a login and everything?
>
> Yikes!
>
> DANGER, WILL ROBINSON DANGER!
>
> You *REALLY* shouldn't do this unless you *REALLY* understand Un*x
> permissions and system security.  HIGHLY DANGEROUS.
>
> 1st. Draw up a security diagram of *WHO* can access this page and *HOW*
they
> can access it and make damn sure *NOBODY* you don't trust can't access it.
> You'll want this happening over SSL (HTTPS) so your communication is
secure.
>
> 2nd. You'll have to muck with the /etc/passwd and shadow password files
> directly, almost for sure.  The password routines for "user_add" and so on
> require a TTY connection (IE, a "real" login) and PHP ain't got one.
>
> 3rd. You'll need to have sudo scripts running to do 2.  Or, *MAYBE* a PHP
> CGI running via suExec as "root" and all the scripts are root-owned and
not
> world-readable, much less world-writable nor world-executable, but *NOT*
> *NOT* *NOT* if *OTHER* people can use the same web-server and upload their
> *OWN* PHP scripts that will get executed as 'root'  Bad Idea.
>
> 4th. Make sure those sudo scripts can *ONLY* be run by people you trust.
>
> You *MIGHT* be able to more easily allow sendmail to send emails or create
> some kind of "virtual" user that doesn't have an actual login, even though
> they have a directory for their mailbox, and then give them a
web-interface
> to read that email or something.  This would be infinitely more secure, if
> it's possible.
>
> Letting PHP create shell logins is just plain DANGEROUS.
>
> Did I mention it was DANGEROUS?  It is.
>
> >And also any funtions to check the availibility of a
> >domain name.
>
> Search code archives for "whois" or try this out:
>exec("/usr/bin/whois $domainname", $results, $error);
>   echo implode("\n", $results);
>   if ($error){
> echo "OS Error $error.  Usually path/permissions.  Read 'man errno' to
> be sure.";
>   }
> ?>
>
> --
> Like Music?  http://l-i-e.com/artists.htm
> I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
> major distro).  Need to record live events (mixed already) to stereo
> CD-quality.  Soundcard Recommendations?
> Software to handle the recording? Don't need fancy mixer stuff.  Zero (0)
> post-production time.  Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
> audio-to-disk.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Problem with HTTP_POST_VARS

2002-07-25 Thread Jason Reid

You missed the $ before HTTP_POST_VARS. its $HTTP_POST_VARS (its a variable,
not a constant. only constants dont have a $ before them)

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "bob" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 25, 2002 6:29 PM
Subject: [PHP] Problem with HTTP_POST_VARS


> Hello,
>
> I'm trying to do a simple form for a local organization and I'm running
into
> problems with the server. I am unable to get any of the variables in the
> html code to post across to the php file. So, I'm figuring
register_globals
> is off. So I change my code to use HTTP_POST_VARS and HTTP_GET_VARS and
get
> this error:
>
> Parse error: parse error in
> /usr/local/etc/httpd/vhosts/htdocs/scripts/join.php on line 3
>
> Here is a snippet of the first few lines of my code:
>
>
> 
> $Agree_to_Terms_of_Membership =
> HTTP_POST_VARS["Agree_to_Terms_of_Membership"];
> $realname = HTTP_POST_VARS["realname"];
> $Company_Name = HTTP_POST_VARS["Company_Name"];
> $Description = HTTP_POST_VARS["Description"];
> $Street_Address = HTTP_POST_VARS["Street_Address"];
>
> I did a phpinfo and their ISP is running PHP Version 4.0B2 and I can see
> track_vars is on.
>
> What is going on here? Any suggestions as to what I'm doing wrong?
>
> Thanks.
>
> Rob.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Jason Reid

Actually a meta refresh isnt a good idea for this example. id personally use
a header, because then there is no entry in the back list for the processing
page, unlike if u used a meta refresh, which, if i am correct, leaves an
entry.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Lee" <[EMAIL PROTECTED]>
To: "César Aracena" <[EMAIL PROTECTED]>; "'Petre'" <[EMAIL PROTECTED]>
Cc: "'php-general'" <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 12:17 PM
Subject: Re: [PHP] Disabling Browser "BACK" button


> An Idea I have just had but not tested.
>
> To start:-
> Page1 - Input Form
> Page2 - Data Handling (i.e. processing the form)
> Page3 - Redirect handler.
>
> So, User fills in form on Page1 then submits it.  Page2 then processes
this
> data and if it handles it correctly it simply sends a redirect (something
> like a Meta Refresh with time set to 0) to Page3 which then sends you onto
> the final page.
>
> By using a querystring variable and checking this in page2 you could
> probably get rid of Page3 and have its part handled in page2.
>
> I hope this makes sense.
>
> Cheers
>
> Lee
> - Original Message -
> From: "César Aracena" <[EMAIL PROTECTED]>
> To: "'Petre'" <[EMAIL PROTECTED]>
> Cc: "'php-general'" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 31, 2002 7:06 PM
> Subject: RE: [PHP] Disabling Browser "BACK" button
>
>
> Well... you simple can't unless you take advantage from all the
> wonderful features of PHP like it's capability to know where the request
> comes from. Another interesting point would be to see if your program is
> made correctly, so your script(s) will handle just the right stuff. That
> is, if you point your form in Page1 to a Script in Page2, you should be
> pretty sure that it will handle the right stuff. After all the handling
> was done, you should be able to unset the variables in order *FORBID*
> the user to push the REFRESH or BACK buttons, submitting the data all
> over again.
>
> > -Original Message-
> > From: Petre [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 31, 2002 2:50 PM
> > To: César Aracena
> > Cc: php-general
> > Subject: Re: [PHP] Disabling Browser "BACK" button
> >
> > I hear you, but how do I know if the POST comes from a valid form
> > submit, or from a "back" ? I cannot simply unset the $_POST vars, as
> > that will prevent anything from being posted correctly, right?
> >
> >
> > César Aracena wrote:
> >
> > >I think that would be easy just by UNSETTING or emptying the
> variables
> > >that the form passed after they are processed. Do I make sence?
> > >
> > >César
> > >
> > >>-Original Message-
> > >>From: Petre [mailto:[EMAIL PROTECTED]]
> > >>Sent: Wednesday, July 31, 2002 2:43 PM
> > >>To: Martin Clifford
> > >>Cc: php-general
> > >>Subject: Re: [PHP] Disabling Browser "BACK" button
> > >>
> > >>Well, OK, then, How do you  design the app NOT to allow the form to
> > >>
> > >POST
> > >
> > >>again when the user hits "BACK"
> > >>
> > >>Martin Clifford wrote:
> > >>
> > >>>There is never a way to disable back, forward, home, etc buttons.
> > >>>
> > >They
> > >
> > >>all have shortcuts that will ALWAYS work, so there's really no
> point.
> > >>Additionally, it's all nice and good that your site works fine
> without
> > >>using cookies, and don't take this offensively, but if the client
> > >>
> > >cannot
> > >
> > >>use the back button without getting mishapen results, then it
> doesn't
> > >>sound as if the site is designed very efficiently.
> > >>
> > >>>Just my opinion.
> > >>>
> > >>>Martin Clifford
> > >>>Homepage: http://www.completesource.net
> > >>>Developer's Forums: http://www.completesource.net/forums/
> > >>>
> > >>>
> > >>>>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>>
> > >>>>>>
> > >>>HI
> > >>>Is there a way I can disable the client's browser back button,
> > >>>
> > >forcing
> > >
> > >>>them

Re: [PHP] text area with quotes

2002-07-31 Thread Jason Reid

If it adds the slashes, before u echo it back out, try stripslashes($var)
first

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Nathan Kline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 1:50 PM
Subject: [PHP] text area with quotes


> this seems so obvious yet it is giving me problems.
>
> I have a text area in a form that is passed to a php page to be
> written to a database. first though It displays the contents of the
> form in a preview page. then if everything is good the user click the
> button and it write to the DB. I pass the contents of the text area
> straight to the next page (i.e. $form_item_name) so i never mess with
> the variable.
>
> now for the problem.
>
> when it displays the variable it adds the escape character (\) to any
> ' or " in the text. if I resend the same document it adds more. how
> do i get it to display 's and "s in a variable without php adding the
> \??
>
>
> --
> Nathan Kline
> i.e. Man in the Box
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Re: Linux PHP editor

2002-08-09 Thread Jason Reid

Yep. Theres several for windows.

I've used:

-PHP4EE
-Homesite
-Dreamweaver (MX version finally has syntax highlighting)
-Good old notepad
-PHP Coder Pro (What PHP4EE was based on)

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 10:52 AM
Subject: Re: [PHP] Re: Linux PHP editor


> Is there a php editor for Win2k ?
>
> Negrea Mihai wrote:
>
> > try nedit from nedit.org
> > you can download the patterns from the site to do php syntax highlight..
> >
> > I have combined it with cervisia from kde 3 and made it look smth like
an IDE
> > :) .. and I've been working 4-6 hours per day for about half an year
with it
> > with no problems.
> >
> > I also have tried Quanta but it is too huge for nothing... but if you
need
> > syntax completion maybe you should take a look at it.
> >
> > Good luck in your open source trip ;)
> >
> > --
> > Negrea Mihai
> > web: http://www.negrea.net
> >
> > On Friday 09 August 2002 02:11 pm, [EMAIL PROTECTED] wrote:
> > > JJ Harrison\ writes:
> > > > I just switched over to Red Hat Linux from Win2k...
> > > >
> > > > Only to find my fav editor only works on windows systems...
> > > >
> > > > could someone suggest a good replacement?
> > > >
> > > >
> > > > --
> > > > JJ Harrison
> > > > [EMAIL PROTECTED]
> > > > www.tececo.com
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > > simply vi or vim of pico :)
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] URL path question

2002-08-13 Thread Jason Reid

Its an IIS problem. With apache there are several ways,
www.phpbuilder.com/columns/tim2526.php3 is IMO the best way, i currently
use it on several sites. i think this would be what you need if it was
apache you were working on

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Seairth Jacobs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 8:21 PM
Subject: [PHP] URL path question


> I would like to be able to do the following:
>
> www.sample.com/path/file.php/additional/path/
>
> Unfortunately on IIS, this gives an error.  Interestingly, the following
> does not:
>
> www.sample.com/path/file.php/
>
> I need to have a single PHP script be responsible for a series of
resources,
> but I do not want to use a query string (for various reasons) to identify
> those resources.  So, how can I do this?  Is this an IIS-specific problem
or
> does PHP just not allow this?
>
> TIA.
>
> ---
> Seairth Jacobs
> [EMAIL PROTECTED]
>
> p.s. Sorry if you see a cross-post on php.version4.  I got a warning that
> said it was a read-only list, so I am reposting to this list as well
(which
> is probably the  correct list to post to in the first place. 
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Replace

2002-08-16 Thread Jason Reid

str_replace is your friend in this situation

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message - 
From: "Alexander Lindstedt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 6:05 PM
Subject: [PHP] Replace


> If i want to find just a word in a variable, and then replace just that
> specific word... is there any simple way to do this?
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



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




Re: [PHP] Online Host Management Software

2002-08-20 Thread Jason Reid

There are quite a few options, but unless you have root access to the
server, most you cant implement. not all of them are php based, but heres
the list:

free:
simplecp (perl)
webmin (perl, not the greatest for hosting)

cost:
cpanel
plesk
hsphere
ensim

there are others, one suggestion is search through the control panel forum
at www.webhostingtalk.com for other suggestions, and peoples opinions on the
different panels.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "John S. Huggins" <[EMAIL PROTECTED]>; "php list"
<[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 7:47 PM
Subject: Re: [PHP] Online Host Management Software


> My Host runs Plesk, and I tolerate it.
>
> It aint perfect though.
>
>
> Justin French
>
>
>
> on 21/08/02 7:01 AM, John S. Huggins ([EMAIL PROTECTED]) wrote:
>
> >
> > I have been looking around for a solution to provide my customers with a
> > control panel that will allow them to control the basics including mail
> > account, dns, etc.
> >
> > My hosting is strictly a PHP/MySQL shop so I wonder if any of you can
> > suggest control panels that you like and/or tolerate.
> >
> > **
> >
> > John Huggins
> > VANet
> >
> > [EMAIL PROTECTED]
> > http://www.va.net/
> >
> > **
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




RE: [PHP] GD lib. image quality!

2002-08-25 Thread Jason Reid

If you have GD2 I'd advise using imagecopyresampled, as I found using
imagecopyresized often resulted in blue or grayish images, while
imagecopyresampled resulted in normal looking images.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Dave at Sinewaves.net" <[EMAIL PROTECTED]>
To: "Arcadius A." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, August 25, 2002 12:23 PM
Subject: RE: [PHP] GD lib. image quality!


> imageCreate will create an image, but its palette will be very limited, so
> when you try to copy your photo onto it, it will maintain the palette of
the
> original picture.  Obviously, this is not what you want, since the picture
> comes out looking all grey and faded (probably 8-16 colors!).
>
> What works for me is creating a blank image using imageCreate(), then
saving
> it as a temporary jpeg (using imageJpeg). This action will set the palette
> of the image to a jpeg's palette (close to 16-bit or better colorspace).
If
> you imageCopyResized over this temp.jpg (which you need to create whenever
> you run the script to ensure sizing is perfect), it will come out with the
> full palette of colors.
>
> Pseudo code:
>  $dest_h = whatever your calculated destination height is;
> $dest_w = whatever your calculated destination width is;
>
> $src_h = height of original image;
> $src_w = width of original image;
>
>// create the blank limited-palette image
> $base_image = imageCreate($dest_w, $dest_h);
>
>// convert and save it to temp.jpg
> imagejpeg($base_image, 'path/to/temp.jpg');
>
>// get the image pointer to the temp jpeg
> $image = imageCreateFromJpeg('path/to/temp.jpg');
>
>// get the image pointer to the original image
> $imageToResize = imageCreateFromJpeg('path/to/image_to_be_resized.jpg');
>
>// resize the original image over temp.jpg
>// since you have GD2, you could also use imageCopyResampled
> imageCopyResized($image, $imageToResize, 0, 0, 0, 0, $dest_w, $dest_h,
> $src_w, $src_h);
>
>// values for output jpeg quality
> $jpegQuality = 75;
>
>// create the resized image
> imageJpeg($image, 'path/to/thumbnail_name.jpg', $jpegQuality);
> ?>
>
>
> Then all you have to do is a little cleanup with imageDestroy() and you
> should have a nice looking thumbnail!
>
>
> I usually add a line like this to the script to make sure everything went
> smoothly:
>  echo 'Thumbnail Generator'
> .''
> .'';
> ?>
>
> It lets me see the quality of the thumbnail the second the script
completes.
>
>
> Try it - you'll get perfect thumbnails every time.  I used this technique
> for all of the pictures at www.arkestraclandestina.com with GD1.6 - and
all
> of them actually had custom color profiles!  Works like a charm.
>
> I like this method because I can be sure that the script won't break on
> sites with older PHP and GD versions - which is an important consideration
> when you're deploying applications to other sites...
>
> However!  If you are sure it will only be run on a PHP4, GD2 system, you
can
> avoid all of the temp jpg madness altogether by just altering your code to
> use imageCreateTrueColor() instead of imageCreate()!!  ;P  Easy as pie!
>
> Dave
>
>
>
> -Original Message-
> From: Arcadius A. [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 25, 2002 4:11 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] GD lib. image quality!
>
>
> Hello!
> I wrote a little script for generation thumbnails of larger images
> 
> $origImage = imageCreateFromJpeg($sourcePath."/".$currentImageName);
> $thumbnail = imageCreate($thumbWidth,$thumbHeight);// create empty
image
>
>
imageCopyResized($thumbnail,$origImage,0,0,0,0,$thumbWidth,$thumbHeight,imag
> esX($origImage),imagesY($origImage));
> imageJpeg($thumbnail, $targetPath."/".$thumbNamePrefix."_thumb.jpg");
//
> Store it
> imageDestroy($thumbnail); // cleanup
> echo "Image ".$targetPath."/".$thumbNamePrefix."_thumb.jpg"."
> created successfully!";
>
> 
>
> then, I've noticed that the quality of the thumbnails created is very bad!
> my "phpinfo()" page shows  "2.0 or higher" as GD version
>
> So, I'm wondering whether I'm doing something wrong in my code or whether
> there exist a better library to use with PHP ... a library able to
generate
> good quality JPG files...
>
> Thanks in advance.
>
> Arcadius.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php





Re: [PHP] Re: Can someone - anyone see my error?

2002-08-25 Thread Jason Reid

using register_globals=on and trying to echo out the $5400 errors as
expected, but php sees the correct entry in the $_GET superglobal array as
it should. running a simple foreach($_GET as $key => $val) returns a key of
5400 and a value of 1000 on a page with the querystring of
page.php?5400=1000, so you should be able to pull that info into another
variable correctly.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Eric Pignot" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 25, 2002 7:24 PM
Subject: [PHP] Re: Can someone - anyone see my error?


> > 
> > 
> > Send this file: 
> > 
> > 
>
> I am not really replying to your question, but just as a remark, in php, a
> variable needs to start with a letter or and underscire. (must be detailed
> in the doc)
> So I have absolutely no idea how PHP will interpret this line :
>  
> (and I would be curious to know how it actually does ! can you tell me ? )
>
> bye
>
> Eric
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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




Re: [PHP] when was array_unique fixed?

2002-08-26 Thread Jason Reid

Check the changelog --> http://www.php.net/ChangeLog-4.php

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message - 
From: "Greg Martin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 3:36 PM
Subject: [PHP] when was array_unique fixed?


> i know that array_unique was broken in version 4.0.4, but does anyone
> know which version was it fixed in?
> 
> thanks,
> greg martin
> [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



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




Re: [PHP] php_flag in httpd.conf

2002-09-07 Thread Jason Reid

Change off to on in the last  container or omit it if php is
enabled by default. thats probaly where the problem is.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca
- Original Message -
From: "Mitch Vincent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 07, 2002 9:39 PM
Subject: [PHP] php_flag in httpd.conf


> Though the manual says it's possible I have bene unable to turn the PHP
> engine on and of per *directory*..
>
> Towards the top of the httpd.conf file I have :
>
> 
>
>  Options FollowSymLinks
>  AllowOverride None
>
>  php_flag engine off
>
> 
>
>
> Then further down for a directory I need PHP in I have
>
> 
>
>  Options FollowSymLinks
>  AllowOverride None
>
>  php_flag engine off
>
> 
>
> And this doesn't work.. Note that it does seem to work including it in
>  directives but I'm using mod_vhost_alias so I don't have
>  directives for all my sites..
>
> Thanks to anyone that can help, please CC this address with replies!
>
> -Mitch
>
> I can only please one person per day. Today is not your day. Tomorrow
> doesn't look good either.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] no errors ?

2002-10-02 Thread Jason Reid

Check ur php.ini, there are settings to display showing absolutly any error,
warning, and message. they are probaly set to not show them.

error_reporting = E_ALL & ~E_NOTICE

thats what i use, only displays what i need

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "gamin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 3:51 PM
Subject: [PHP] no errors ?


> hi,
>
>   i'm running PHP 4.0.6 with apache on RedHat 7.2 , error_reporing is set
to
> default(2039) in the php.ini file :
> my script is as follows :
>
>  qwe;
>
>
> dsf
> ?>
>
> But i dont get even a parse error or anything
>
> Any clues to what is going wrong ?
>
> thx
>
> gamin.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] server error sending email from script

2002-10-06 Thread Jason Reid

it appears you are on windows, so look in php.ini for the smtp directive.
enter your isp's smtp server address there. then restart apache and it
should work.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 06, 2002 8:31 PM
Subject: [PHP] server error sending email from script


Q:
If I'm not on the server that is to be used to send the email, how can I
configure PHP to send from a certain server?
thanks all

Warning: Server Error in c:\program files\apache
group\apache\htdocs\sonicmailer\sonicadmin.php on line 276

and line 276 is
mail($address, stripslashes($subject), $finalbody, $mailheaders);

and it's not sending the email.
The variables are OK,
$mailheaders=From: blah Reply-To: [EMAIL PROTECTED]






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




Re: [PHP] Best Forum System

2002-10-12 Thread Jason Reid

phpBB all the way for me. Used it on a few sites, worked fine for my uses.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message - 
From: "Stephen" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 7:13 PM
Subject: Re: [PHP] Best Forum System


> I'd use that but the skinning difficulty compared to others is just down
> right horrible...
> 
> 
> - Original Message -
> From: "Paul Nicholson" <[EMAIL PROTECTED]>
> To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
> <[EMAIL PROTECTED]>
> Sent: Friday, October 11, 2002 6:58 PM
> Subject: Re: [PHP] Best Forum System
> 
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Hey,
> > I use ibforums(http://www.ibforums.com/)100% OO php and its FREE.
> > ~Pauly
> >
> > On Friday 11 October 2002 05:36 pm, Stephen wrote:
> > > Hello,
> > >
> > > I know there will be a load of different responses but I'm after the
> most
> > > frequent one. What exactly is the best forum system out there? I'm
> mainly
> > > after a PHP one but a Perl or CGI one will do just fine. Thanks!
> > >
> > > Thanks,
> > > Stephen Craton
> > > http://www.melchior.us
> > > http://php.melchior.us
> >
> > - --
> > ~Paul Nicholson
> > Design Specialist @ WebPower Design
> > "The webthe way you want it!"
> > [EMAIL PROTECTED]
> >
> > "It said uses Windows 98 or better, so I loaded Linux!"
> > Registered Linux User #183202 using Register Linux System # 81891
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9p2GGDyXNIUN3+UQRArHdAJ9J+ZC1Zf+gTxkKSY4zgq5TKONdkACglAQE
> > vEYPRv3tgJ5YZ+oaybak61s=
> > =oB2D
> > -END PGP SIGNATURE-
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



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




Re: [PHP] Re: Odd Problem

2002-10-13 Thread Jason Reid

Also I would check the case of the column in both the script and the DB
itself.

And yes, the query and the table schema might help if that isnt it.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Owen Prime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 13, 2002 8:07 PM
Subject: [PHP] Re: Odd Problem


> If you showed us the SQL your trying to execute and the table schema you
may
> get more helpful responses.
>
> Cheers,
>
> Owen Prime
> http://www.noggin.com.au
>
> Stephen wrote:
>
> > Hello,
> >
> > I'm running a script that inserts a form's contents into a MySQL table.
> > However, when I insert the contents, I get an error telling me this:
> >
> > Unknown column 'employee' in 'field list'
> >
> > I can't find the problem. I have a field in my table called employee but
I
> > guess it doesn't see it. Any ideas why?
> >
> > Thanks,
> > Stephen Craton
> > http://www.melchior.us
> > http://php.melchior.us
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Recommend a merchant/store product

2002-10-28 Thread Jason Reid
oscommerce http://oscommerce.com/
supports mysql as the database. i've set it up a few times, never
implemented it into production, but its fairly easy to use, and from what
i've seen extremly customizable.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Support @ Fourthrealm.com" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 7:09 PM
Subject: [PHP] Recommend a merchant/store product


> Hey everyone,
> For years I have used a fantastic merchant ( http://www.ihtmlmerchant.com
> ), which is feature packed and easy to setup and use.  It's written in a
> competing language called iHTML ( http://www.ihtml.com ).
>
> As I am getting considerably proficient at coding PHP, I find that I
> require a similar type merchant/store package that I can base future PHP
> e-commerce sites on.  I have mySQL and MS SQL Server available to me.
>
> So... my questions to the list are:
>
> 1) What store product/package do you use?  Why?  URL?
> 2) What is purchase cost?  Is it one-time or per store?
> 3) What databases does it support?
>
>
> Many thanks in advance.
>
> Peter
>
> - - - - - - - - - - - - - - - - - - - - -
> Fourth Realm Solutions
> [EMAIL PROTECTED]
> http://www.fourthrealm.com
> Tel: 519-739-1652
> - - - - - - - - - - - - - - - - - - - - -
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Geographic IP location

2002-11-02 Thread Jason Reid
http://www.phpclasses.org/netgeoclass

that 'should' work for what you want... someone else suggested it a while
age for another project

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "olinux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 02, 2002 5:54 PM
Subject: [PHP] Geographic IP location


> Hi all,
>
> I am looking for a way to determine the geographic
> location based on IP address. I understand that 100%
> accuracy is impossible.
>
> Does anyone know of a good software or service
> provider that provides quality geographic detection to
> US state level based on IP of website visitors. I have
> tried several and find that they simply use whois
> records. This is great but seems highly inaccurate.
>
> Ideally I am looking for a utility that I can feed a
> list of IP's to and then use this data to update mysql
> records.
>
> These two services look pretty decent.
>
> http://www.geobytes.com
>
> http://www.serviceobjects.com/products/dots_ipgeo.asp
>
> Thanks for any input,
> olinux
>
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] PHP Website

2002-11-15 Thread Jason Reid
Nope, though if you are you could always just try using one of the mirrors.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Van Andel, Robert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 4:56 PM
Subject: [PHP] PHP Website


> Anyone else having trouble accessing PHP.net?
>
> Robbert van Andel
>
>
>
>
>  "The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from all
> computers."
>
>
>



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




Re: [PHP] I'm in need of a PHP web host recommendation

2002-11-16 Thread Jason Reid
I suggest paying a visit to www.webhostingtalk.com and search the forums... theres 
tons of information on the large, and small hosts that might help. 

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

"OrangeHairedBoy" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Seems a bit expensive though...$7.95/month for 5megs and 1 email.
> 
> You could try your-site.com which is $5.00/month for 50megs and 25 email,
> etc...
> 
> Or, look at CIHOST.com - the folks I use. Their cheapest unix deal is ~
> $15/month for 100megs, 25+email, mysql, etc...mega fast connection too...
> One thing I like about them is their policy is to never use more than 33% of
> their bandwidth...just in case...site never goes down...i'm on a trip...
> 
> Lewis
> 
> 
> "Edward Peloke" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > http://www.ht-tech.net is who I use, VERY GOOD!  Just tell them I sent
> you.
> >
> > Eddie
> >
> > -Original Message-
> > From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 15, 2002 11:49 AM
> > To: 'Phil Schwarzmann'; [EMAIL PROTECTED]
> > Subject: RE: [PHP] I'm in need of a PHP web host recommendation
> >
> >
> > Hi Phil,
> >
> > > would like to hear some recommendations of some
> > > good companies that host PHP/MySQL and also JSP.
> >
> > http://34sp.com/ are great if you don't mind .uk-based hosting. I've heard
> > good things about http://oneandone.co.uk/ but haven't used them myself.
> >
> > At the other end of the scale, you should stay *well* away from
> > http://zenithtech.com/ - they're without a doubt the worst host I've ever
> > used.
> >
> > Cheers
> > Jon
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 




Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Reid

Check your php version. if its greater then 4.1.0, then you must either
enable 'register_globals' in your php.ini, or use $_GET['var'] or
$_POST['var'] to get data from a form

- Original Message -
From: "Mike Heffner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 2:36 AM
Subject: [PHP] Variables aren't being passed to php page


> Hi,
>
> I've recently upgraded from PHP 4.0.4p11 -> PHP 4.2.1, but now there seems
> to be a problem that variables from POST/GET are not being passed to the
> PHP page. For example, with the following file test.php, using the URL
> 'test.php?mid=1' displays 'nope'.
>
>  if (isset($mid))
> echo "$mid";
> else
> echo "nope";
> ?>
>
>
> Is this a known problem, or is this some configuration issue?
>
> Thanks for any help,
>
>
> Mike
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] GIF Manipulation

2002-07-16 Thread Jason Reid

AFAIK there is a patch to re-add gif support to gd 1.8.4 (not sure about
2.x). I saw the url for it the other day on a newsgroup, I'll see if i can
dig it up and post it.

Jason Reid
[EMAIL PROTECTED]

- Original Message -
From: "Nick Oostveen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 3:58 PM
Subject: [PHP] GIF Manipulation


> I'm currently developing a site which needs the ability to do server-side
> image cropping and resizing.  I currently have a current version of GD
> installed with PHP, however the lack of support for GIFs is causing
endless
> headaches.
>
> Is there any way to support GIFs in PHP without reverting to an older
> version of GD (and loosing PNG support in the process)?
>
> Nick Oostveen
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Break message in code.

2002-07-16 Thread Jason Reid

Have you tried using just break? without the 1?

Jason Reid
[EMAIL PROTECTED]

- Original Message -
From: "W. Andy Roche" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 10:11 PM
Subject: [PHP] Break message in code.


> Please forgive me, I am still rather new to coding in PHP.  I have looked
up
> this problem on the PHP.net site, and check my syntax, but I am just not
> getting it.
>
> Here is my problem:
>  I am working on an email page that will vaildate that there is content in
> the variables, and respond if there is not.  Here is the code to check the
> variable:
>
> If (empty ($sndrname)) {
>$error_report_msg = "Please provide a contact name.";
>  error_msg_form($error_report_msg);
>break 1;
>}
>
> When this is run, the server returns the expected output, but adds the
> following below it:
>
> Fatal error: Cannot break/continue 1 levels in
> /home/igraph/public_html/rhc/inforeq.php on line 82
>
> Line 82 is the break statement. This code was working at one, time, and I
> changed nothing other than PHP versions.  Is there is change due to the
> versions that I didn't find?
>
> TIA,
> W. Andy Roche
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] Importing CSV File : 100000 Rows!

2002-07-17 Thread Jason Reid

First off, does your mysql DB allow you to connect remotly (not including
phpmyadmin). If so, I'd suggest www.anse.de/mysqlfront, and use that to
connect to the database, and import the .csv through that. I can see the
file maybe not fully uploading, due to possibly the max file size in php, as
100,000 rows of data must be approaching at least 1mb (might be wrong there
too, depends on the data).

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: "Thomas Edison Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 11:20 PM
Subject: [PHP] Importing CSV File : 10 Rows!


> Hi,
>
> I have generated a .csv file from a .dat file using a
> VB program. Now this .csv file needs to be imported
> into my mySQL Database Table on the internet, using
> phpMyAdmin.
>
> The problem i'm facing is that the file, while
> uploading, stops somewhere in the middle. The upload
> just gets stuck.
>
> Possible reasons :
>
> 1. Number of rows is too large. About 10. Does
> mySQL Support these many rows? Is yes, is it possible
> to upload these many rows from a client to a table on
> the internet using phpMyadmin?
>
> 2. Internet connection. Due to the mere size of the
> file in terms of no. or rows, maybe my internet is not
> able to send all the data. I dont' know.
>
> Now can anyone suggest a possibly solution? Can i
> break up the file automatically and send or something?
>
> Please help..
>
> T. Edison Jr.
>
>
>
> __
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] rebooting linux using php

2002-07-18 Thread Jason Reid

Or you could do that using php:

#!/usr/local/bin/php -q


(Note those are backticks, not apostrophes)

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> If you're going to use the cron file (or crontab) then php wouldn't work
> because it is a programming languages for the web pages.  For cron files
or
> crontab, you can use the bash shell or ksh or whatever you have.  It's
> simple.  All you had to do is to create a file on hte Unix/Linux machine
and
> do the following ...
>
> --clip--
> #!/usr/bash
>
> /usr/bin/shutdown -Fr now
> --clip--
>
> Then edit the crontab or cron to put in the time you want the machine to
be
> rebooted.
>
>
> "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message
> 016201c22e91$ddb5a5c0$a529089b@TB447CCO3">news:016201c22e91$ddb5a5c0$a529089b@TB447CCO3...
> > >>-Can we reboot a linux server using a php page?
> > >Yes.
> > >>-And is it recommended?
> > >No.
> >
> > Can I get the URL of that page so I can put it in my cron file?
> >
> > ---John Holmes...
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] php security mailing list ...

2002-07-22 Thread Jason Reid

Some of the time.

Release announcments have been skipped a few times, but you'll notice people
asking on every other list about what the changes are.

- Original Message -
From: "Evan Nemerson" <[EMAIL PROTECTED]>
To: "Dario Bahena Tapia" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 9:19 AM
Subject: Re: [PHP] php security mailing list ...


> php-announce sends out notices.
>
>
>
> On Monday 22 July 2002 16:07 pm, Dario Bahena Tapia wrote:
> > Hi ...
> >
> > I want to be warned about php security issues, I couldn't find
> > an exact match in the mailing list names ... which one do you
> > recommend me?
> >
> > Thanks in advance.
> >
> > saludos
> > dario estepario ...
>
> --
> Knowledge is power. Information is liberating. Education is the premise of
> progress, in every society, in every family.
>
> Kofi Annan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




[PHP] PHP4 & Win2k 'Application Error'

2001-11-20 Thread Jason Reid

I'm running Windows 2000 Advanced server w/ SP2, with IIS and apache 1.3.22.
When i run some scripts(PEAR webinstaller.php for example) i get a
Application Error stating that php.exe (if trying under IIS) or apache.exe
(when trying under apache) have caused a error, saying:

' The instruction at "0x006b6d1" referenced memory at "0x". The
memory could not be "read". '

I've tried reinstalling both apache and php, to no avail. I came across on
reporting of this on the php.net bug tracker, but no solution. anyone know
how to fix this?

Thanks

Jason Reid
[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]