I've written a class that is calling an include
function to include a setup file. The problem is that
the setup file is in another directory than the class.
I'm including the file using:
include (../common/setup.inc);
Is there a way that i can make the relative path
inside the class definition
php-general Digest 21 Dec 2003 07:41:38 - Issue 2485
Topics (messages 173079 through 173095):
Re: sessions problem
173079 by: Larry Brown
Re: include files
173080 by: Todd
Re: mysql load_file retreival
173081 by: Chris
173082 by: Larry Brown
173087
To call the file from anywhere within the document space, try this:
include($_SERVER[DOCUMENT_ROOT]./common/setup.inc);
Jim
- Original Message -
From: Robbert van Andel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 21, 2003 1:41 AM
Subject: [PHP] Includes inside
hii there,
my name is wayan mardika, i would like to ask you how to install php on
mac OS X.2.
iam new in this things. i tried to install the php on my computer.
and then what else do i need?
could you tell me the simple way to do it?
the point is, i want to run php on my own computer.
thank
Can anyone pls tell me how to dynamically list values in a ListMenu. The values do not
come from any database. They are stored in php variables. Sample code will be highly
appreciated.
Array. I am interested to know for both the cases.
Thanks !
From: Nathan Taylor [mailto:[EMAIL PROTECTED]
Sent: Sun 12/21/2003 8:00 AM
To: Chakravarthy Cuddapah
Subject: Re: [PHP] List values
Are the values in an array or individually in variables?
Nathan
?
$items[One]=1;
$items[Two]=2;
$items[Three]=3;
$items[Four]=4;
$items[Five]=5;
outPutFormDropDown($items,my_list,4);
function outPutFormDropDown($items,$field_name,$selected=){
if(!is_array($items))
return;
?
select size=1
hello list,
I have a problem with file integrity in my url.
I try to force download file with the following script:
$sFile = $dSession['DOWNLOAD'][$id][$type];
if (is_file($sFile))
{
header(Content-disposition: attachment;
hii there,
my name is wayan mardika, i would like to ask you how to install php
on mac OS X.2.
iam new in this things. i tried to install the php on my computer.
and then what else do i need?
could you tell me the simple way to do it?
the point is, i want to run php on my own computer.
thank
Hi everyone,
I would like to know if there is a way to extend the limit of 255
characters when using the Levenshtein Function?
I have used user-defined functions such levdis and xlevdist but they
often take too much time.
Thanks in advance.
-Gohaku
--
PHP General Mailing List
hello list,
I have a problem with file integrity in my url.
I try to force download file with the following script:
$sFile = $dSession['DOWNLOAD'][$id][$type];
if (is_file($sFile))
{
header(Content-disposition: attachment;
Hello everybody.
Well, i'm trying to avoid access to the site for the middle. Say there
is a initial page with a form and other pages that depends on this. Is
there a way to force users access the site thru the initial form page,
regardless of the url?
Something like this:
lynx
On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote:
:
: Well, i'm trying to avoid access to the site for the middle. Say there
: is a initial page with a form and other pages that depends on this. Is
: there a way to force users access the site thru the initial form page,
:
On Sun, Dec 21, 2003 at 01:03:43PM -0600, Eugene Lee wrote:
On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote:
:
: Well, i'm trying to avoid access to the site for the middle. Say there
: is a initial page with a form and other pages that depends on this. Is
: there a way
Cookies are a possibility but not always functional. Many people have them shut off,
or services like WebTV do not support them. Two other possibilities are seccions and
POST variables.
_SESSIONS_
forma2.php
if((!isset($_SESSION[username]) || (!isset($_SESSION[password])) {
On Sun, Dec 21, 2003 at 01:16:58PM -0600, Website Managers.net wrote:
Cookies are a possibility but not always functional. Many people have them shut off,
or services like WebTV do not support them. Two other possibilities are seccions and
POST variables.
_SESSIONS_
forma2.php
On Sun, Dec 21, 2003 at 04:11:36PM -0300, Fernando M. Maresca wrote:
: On Sun, Dec 21, 2003 at 01:03:43PM -0600, Eugene Lee wrote:
: On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote:
: :
: : Well, i'm trying to avoid access to the site for the middle. Say
: : there is a
Not really. It depends on how you use your cookie. The cookie could be
some unique ID to some session-based system (whether you use PHP session
functions or not) that keeps a track of where the user is. So let's say
the user did the right thing, went to index.php, got a cookie, and went
to
php-general Digest 21 Dec 2003 19:56:06 - Issue 2486
Topics (messages 173096 through 173111):
Re: Includes inside includes
173096 by: Website Managers.net
how to setup php on OS X.2
173097 by: wayan mardika
173102 by: friscu.supereva.it
List values
173098
There are several ways to do this. The most obvious is with cookies.
Set up your index.php to initially create a cookie that authorizes a
user to look in the site. On the rest of your PHP pages, check that
this authorization cookie exists. If not, redirect to index.php.
Thanks for the
I'm writing a script to view/download an email-attachment. If the file
happens to be an MS Word document and the browser IE (only tried with 6.0),
then the download fails.
If I choose to download (Content-Disposition: attachment;
filename=whatever.doc) then only a part of the file (2/3) is saved
On Mon, Dec 22, 2003 at 01:09:37AM +0100, Andreas Magnusson wrote:
:
: You can use the Referer header found in $_SERVER['HTTP_REFERER'] to check
: from which page the user comes from.
Unfortunately, HTTP_REFERER is not guaranteed to exist. In fact,
several Windoze firewall software actively
I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I will need to
have switched on magic quotes or use addslashes()
and stripslashes().
So I checked via
I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I will need to
have switched on magic quotes or use addslashes()
and stripslashes().
So I checked via
Hi. This is the qmail-send program at pb1.pair.com.
I'm afraid I wasn't able to deliver your message to
the following addresses.
This is a permanent error; I've given up. Sorry it
didn't work out.
[EMAIL PROTECTED]:
This message is looping: it already has my
Delivered-To line. (#5.4.6)
--- Below
I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I will need to
have switched on magic quotes or use addslashes()
and stripslashes().
So I checked via
Now I'm guessing that magic_quotes_runtime is the
one I need to have on, but is that so? I'm also
guessing that aside from using addslashes() and
stripslashes(), I could prob'ly turn on magic_quotes
in php_ini.
But perhaps because of how I've heard turning
register_globals on via php.ini
[EMAIL PROTECTED] wrote:
I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I will need to
have switched on magic quotes or use addslashes()
and
I am simply trying to redirect users from one page to another. Yet when
I use this code I get the following error:
*Warning*: Cannot add header information - headers already sent by
(output started at
/usr/local/psa/home/vhosts/miningstocks.com/httpdocs/etc/php/login/admin/test.php:8)
in
Unless you're using an 'if' statement, the header redirect must be the first line of
the page, above any HTML markup.
Jim
www.websitemanagers.net
- Original Message -
From: Scott Taylor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 21, 2003 8:04 PM
Subject: [PHP]
Scott Taylor wrote:
I am simply trying to redirect users from one page to another. Yet when
I use this code I get the following error:
*Warning*: Cannot add header information - headers already sent by
(output started at
How can I stop php.exe closing after it performs a task? I am using Windows
XP Pro.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I have this.
Table Name = events
Fields = eventname, date, info. Example
---
EVENTS
---
eventname | date| info
--
event1 | 0202 | info here
--
On Monday, December 22, 2003, at 01:13 PM, Website Managers.net wrote:
Unless you're using an 'if' statement, the header redirect must be the
first line of the page, above any HTML markup.
That's not entirely accurate.
---Quoted from http://php.net/header ---
Remember that header() must be
PHP Gurus,
I'm really stuck here. I've written the following code, and it
will never execute the if statement. I keep getting the form displayed,
and when I fill the form and hit the submit button, the
HTTP_SESSION_VARS array does not seem to take any of the values set out
in the form.
I haven't used sessions before, but it doesn't look like the variables are
being put into the session.
If they're coming from a form, then they would appear in the $_POST or
$HTTP_POST_VARS variables, not the $HTTP_SESSION_VARS variable.
HTH
Martin
-Original Message-
From: Dave G
Martin,
If they're coming from a form, then they would appear in the $_POST or
$HTTP_POST_VARS variables, not the $HTTP_SESSION_VARS variable.
Aha! Yes, that was it! Thank you for helping get my script to
work and also giving me that much more insight into session and post
variables.
Hi Eric
What you need to do is make another PHP page, maybe info.php, which will
fetch the info field from the DB and display it.
So for example, assuming the eventname field is unique, you could make
the info like something like:
a
Im currently modifying templates to include the SID constant, for the few set
of users who are rejecting session cookies.
If I have an url like -
a href=http://www.foo.com/;Go Home/a
For users who are rejecting cookies the url looks like -
a href=http://www.foo.com/?PHPSISSID=1234;Go Home/a
For
39 matches
Mail list logo