|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 11 Jun 2000 04:58:35 -0000 Issue 1727
From: php3-digest-help
lists.php.netDate: Sat Jun 10 2000 - 23:58:35 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 11 Jun 2000 16:58:33 -0000 Issue 1728"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 10 Jun 2000 16:58:37 -0000 Issue 1726"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 11 Jun 2000 04:58:35 -0000 Issue 1727
Topics (messages 93124 through 93137):
Re: how can i restrict access to some of my guests?!
93124 by: Ahmad Anvari
ODBC Insert
93125 by: Rupert Jones
93126 by: Rupert Jones
Query Troubles
93127 by: lance.dallypost.com
Re: Interesting question...
93128 by: Matt McClanahan
93129 by: George Papadakis
93131 by: Matt McClanahan
ending sessions with a logout page php4 rc1 - followup
93130 by: Jonathan Hendler
Re: [PHP-DEV] More SOAP or Dampen Thy Evangelical Fires oh Disciples
93132 by: Jacob Stetser
PHP on Apache on Windows 98
93133 by: Brian Gramling
POP Web-based Mail Scripts?
93134 by: K Old
93135 by: Opec Kemp
Re: passing values in multiple pages
93136 by: burk.pobox.com
hmm.. which template engine to use??
93137 by: Christian Calloway
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
hi again!
i found the solution some minutes ago, use this
directive in access.conf:
<directory /home/something>
php3_engine off
</directory>
regards;
Ahmad Anvari
-----Original Message-----
From: Ahmad Anvari [mailto:webadmin
morva.net]
Sent: 2000/06/10 09:16 Þ.Ù
To: php3
lists.php.net
Subject: [PHP3] how can i restrict access to some of my guests?!
hi everybody,
i'm new in the list, it's my first message here,
i'm actually a web site administrator and we offer
web hosting services here. the problem started
yesterday! one of my guests removed some of my
files on my linux box. so, my question is
how can i avoid some of users from running php3
scripts? i want to allow a limited number of users
write and execute php scripts.
anyone can help?!
regards;
Ahmad Anvari <http://i.am/anvari>
Company: http://www.morva.net
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
im trying to insert a new record with the following, it executes ok but the record isnt added to the db:
$connection = odbc_connect("phpForum","",""); odbc_autocommit($connection, FALSE);
$strSQLInsertNewForum = "INSERT INTO Forum (ForumName,ForumDesc) VALUES ('$ForumName','$ForumDesc')";
//print($strSQLInsertNewForum); //print("<p>"); $tempRs = odbc_exec($connection,$strSQLInsertNewForum);
any idea?
thanks in advance...
attached mail follows:
dont worry found it...sorry to disturb..carry on..nothing to see..
-----Original Message-----
From: Rupert Jones [mailto:rup
bigpond.net.au]
Sent: Sunday, 11 June 2000 3:17 AM
To: php3 list
Subject: [PHP3] ODBC Insert
im trying to insert a new record with the following, it executes ok but the record isnt added to the db:
$connection = odbc_connect("phpForum","",""); odbc_autocommit($connection, FALSE);
$strSQLInsertNewForum = "INSERT INTO Forum (ForumName,ForumDesc) VALUES ('$ForumName','$ForumDesc')";
//print($strSQLInsertNewForum); //print("<p>"); $tempRs = odbc_exec($connection,$strSQLInsertNewForum);
any idea?
thanks in advance...
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I need a query that will return all payments in the thirty days proceeding $t_date. I cannot find date support in queries but know that is must be there.
Here is my code
$query = "select transactions.amount, transactions.date, transactions.type, members.affiliated from transactions, members where transactions.memberid = members.id and transactions.type = 'p' and How do I code for the thirty days preceeding $t_date";
$result = mysql_query($query, $dp);
As usual, your help will be very much appreciated
Lance Earl
attached mail follows:
On Sat, 10 Jun 2000, Marian Vasile wrote:
> How I can detect from wich country somene is comming to my web site ? > I want this because I want my web site to be automatically translated for > every visitor... > First I don't know from what country he is comming... > > How I can find out that ?
Detecting the language based on where they're connecting from isn't a realistic option, since that makes the assumption that somebody connecting to your site from, say, the US, wants to read it in english.
Aside from prodiving a pulldown menu of languages, as most international sites do, the only reliable option would be to check the HTTP Accept-Language header. Web browsers set this header with a space-delimited list of two-letter language codes. Google (www.google.com) would be a good example of a site that honors your Accept-Language setting and displays the site in the appropriate language.
Matt
attached mail follows:
You could use something like gethostbyaddr(getenv("REMOTE_ADDR")) and parse the extension but that. 1. Isnt always working cos some ips just dont have cnames 2. Would take some time. so you could perform his nslookup and then use some basic B class identification to get the best results. Good luck
Gp.
----- Original Message -----
From: "Matt McClanahan" <cardinal
dodds.net>
To: "Marian Vasile" <marianos
gmx.net>
Cc: "PHP" <php3
lists.php.net>
Sent: Saturday, June 10, 2000 10:10 PM
Subject: Re: [PHP3] Interesting question...
> On Sat, 10 Jun 2000, Marian Vasile wrote:
>
> > How I can detect from wich country somene is comming to my web site ?
> > I want this because I want my web site to be automatically translated
for
> > every visitor...
> > First I don't know from what country he is comming...
> >
> > How I can find out that ?
>
> Detecting the language based on where they're connecting from isn't a
> realistic option, since that makes the assumption that somebody connecting
> to your site from, say, the US, wants to read it in english.
>
> Aside from prodiving a pulldown menu of languages, as most international
> sites do, the only reliable option would be to check the HTTP
> Accept-Language header. Web browsers set this header with a
> space-delimited list of two-letter language codes. Google
> (www.google.com) would be a good example of a site that honors your
> Accept-Language setting and displays the site in the appropriate language.
>
> Matt
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
The fact remains, even if a user can be localized to a geographic area, it can't be assumed that they want to see a given website in the dominant language of their area. Detecting language by location is silly, and a far superior option has been written into the HTTP spec already, so why not use it?
Matt
On Sun, 11 Jun 2000, George Papadakis wrote:
> You could use something like gethostbyaddr(getenv("REMOTE_ADDR")) and parse
> the extension but that.
> 1. Isnt always working cos some ips just dont have cnames
> 2. Would take some time.
> so you could perform his nslookup and then use some basic B class
> identification to get the best results.
> Good luck
>
> ----- Original Message -----
> From: "Matt McClanahan" <cardinal
dodds.net>
> To: "Marian Vasile" <marianos
gmx.net>
> Cc: "PHP" <php3
lists.php.net>
> Sent: Saturday, June 10, 2000 10:10 PM
> Subject: Re: [PHP3] Interesting question...
>
>
> > On Sat, 10 Jun 2000, Marian Vasile wrote:
> >
> > > How I can detect from wich country somene is comming to my web site ?
> > > I want this because I want my web site to be automatically translated
> for
> > > every visitor...
> > > First I don't know from what country he is comming...
> > >
> > > How I can find out that ?
> >
> > Detecting the language based on where they're connecting from isn't a
> > realistic option, since that makes the assumption that somebody connecting
> > to your site from, say, the US, wants to read it in english.
> >
> > Aside from prodiving a pulldown menu of languages, as most international
> > sites do, the only reliable option would be to check the HTTP
> > Accept-Language header. Web browsers set this header with a
> > space-delimited list of two-letter language codes. Google
> > (www.google.com) would be a good example of a site that honors your
> > Accept-Language setting and displays the site in the appropriate language.
> >
> > Matt
attached mail follows:
It appears the error was in cookie - if I leave the content AND the IP blank, it works.....
Solved it myself, hope this interested some one.. :)
---- - - old message - - - - Hello,
I am trying to end a session by sending a new cookie and unsetting, destroying and unregistering. - it does not work - i need it to work so people don't have to close out of their browser.
using php4 rc1
I get no error messages.
<?PHP $PHPSESSID = $HTTP_COOKIE_VARS["PHPSESSID"]; session_start();
if (!isset($PHPSESSID)) { echo " you dont need to logout" } else if (isset($PHPSESSID)) { setcookie("PHPSESSID","ooblech", time()+14400,"/","my.com:443",1) or die("setting logout cookie failed"); session_destroy(); session_unset(); session_unregister("PHPSESSID"); unset($PHPSESSID);
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
At 11:14 PM -0700 6/9/00, Gary Bickford wrote: >> If Microsoft had built Outlook securely, Malicious VBScript would >>be no danger >> > >I'm no MS fan, but this is a simplistic view. Outlook could certainly be >improved, but there is an essential conflict between support for applications >within a scripting environment and security. The best that can be done is to >try to minimize both vulnerability and impact on usability depending on the >application. >
I can understand the system being able to script Outlook, but the simple fact is (and it is a simple fact) is that nothing I can open or click on or run from email should have access to system objects. Sure, ILOVEYOU would still have sent billions of emails, but it looses the fangs of being able to destroy and replace stuff on my drive and corrupt my registry.
The concern is that email is an internet application. That means it is exposed to insecure elements. Does it not make sense to use a sandbox model for email? Such as "This VBS was launched from within application X; either a) disallow access to methods outside the scope of X or b) launch detailed warning messages that WARN for each attempt to access methods outside the scope of X."
MS doesn't follow that model. It says, "Oh, launch that script. Oh, hi script from the internet, here's all the access to my innards."
Sure, the system has to be smarter and recognize context of launching, but it sure would save a lot of hassle. Maybe MS could "innovate" that someday.
-- -- icongarden.com Making good ideas grow || http://icongarden.com/
attached mail follows:
I am trying to learn PHP on my computer at home. I am using Windows 98 on a PC. I decided to use Apache as my server. I am having trouble viewing the php files. I used directions for http://thickbook.com who wrote the book I am using to learn.
I would appreciate any advice.
Thanks,
Brian Gramlin
attached mail follows:
Hello,
Anyone seen any PHP scripts that interface with POP3 email? All I can find are IMAP scripts.
Thanks, Kevin ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
attached mail follows:
Hi,
Please check out
http://phpclasses.upperdesign.com/search.html?words=pop3&go_search=1
there are a lot of PHPclasses there (other than POP :))
> -----Original Message-----
> From: K Old [mailto:kevsurf
hotmail.com]
> Sent: Sunday, June 11, 2000 2:04 PM
> To: php3
lists.php.net
> Subject: [PHP3] POP Web-based Mail Scripts?
>
>
> Hello,
>
> Anyone seen any PHP scripts that interface with POP3 email? All
> I can find
> are IMAP scripts.
>
> Thanks,
> Kevin
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
On Sat, 10 Jun 2000, Thomas Edison Jr. wrote:
> Friends, > > How do i carry forward variables or form values in > multiple pages? That is, if i have a page and i either > fill in a value or choose a value by radio button or > checkboxes on it, then go on to next pages, on each > pages feeding some value in a form element, how can i > get the values to be processed at a later stage or > maybe at a subsequent page? Is it through Sessions? if > so, how?
Unless I'm badly misunderstanding you, you are asking how to pass the value of a page (say A.php) through a second page (say B.php) to a third page (C.php). If that's what you want, put a
echo "<input type=hidden name=\"NameOfInputOnPageA\" value=\"$NameOfInputOnPageA\">";
on B.php and the value will be passed to C.php.
HTH -burk
-- burkpobox.com Linux File Managers: http://www.pobox.com/~burk/linuxfile.html
attached mail follows:
Gosh, is everyone writing their own template engine? Im not about to ask whose is best, but i'de like to make a simple suggestion. Until the creators decided to integrate a template engine into the php core, someone needs to write a common interface, into which we can plug a template engine into (and please don't ask, Im way to lazy for that). I mean all the template engines I've seen up to this point basically all do the same thing.. their just implemented differently. I don't really know or care whose is the best, even though it seems as if everyone is claiming the one they use or wrote is, I just happen to be pissed since I recently changed from FastTemplate to phplib Template, which meant a whole lotta method renaming. Anyways, everyone have a good night..
- Next message: php3-digest-help
lists.php.net: "php3 Digest 11 Jun 2000 16:58:33 -0000 Issue 1728"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 10 Jun 2000 16:58:37 -0000 Issue 1726"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]