How to create a new user mailbox in PHP ?
php-general Digest 9 Nov 2001 08:34:51 - Issue 984
Topics (messages 73939 through 74004):
Re: file problem: I can´t read
73939 by: Thargor
Re: PHP and/or linux issue?
73940 by: John S. Huggins
73942 by: Gaylen Fraley
Re: Apostrophes and Textareas
73941 by:
I'm running phpBB not phpNuke and I'm subcribed to Buftraq, hope the otehrs
are more helpful for me...
Jimmy
--
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,
Hi all,
I've just finish upgrading my apache server to apache 1.3.22,
I have also compiled my php-4.0.6 with it.
When I try to test it using
? php phpinfo(); ? saved as php, the browser tries to download it instead.
I have added the application type under httpd.conf and restarted the server
I am trying to set up a redirect scirpt that in ASP was
response.redirect(escape(newpage.asp)).
I tried in PHP header(location: newpage.php)
but all i got was an error message saying that my header content had
already been sent. This PHP script was above the html script.
Am I doing something
Am I doing something wrong? Thank you.
You may print nothing before the redirect header!
?
echo hello;
header(Location: go);
exit;
#wrong!
?
?
?
header(Location: go);
exit;
echo hello;
#oke, but hello isn't print
?
?
- Original Message -
From: phantom [EMAIL PROTECTED]
To: [EMAIL
Make sure that there is no output from your PHP script - or any HTML code
whatsoever - before you call the header function.
Cheers
Scott
- Original Message -
From: phantom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 11:01 AM
Subject: [PHP] PHP Redirect /
The problem is, i need a javascript which i can write into the database,
which on the oher side can read out a php SESSION. Is this possible?
Yes? how?
It's for a navigation bar wich gets the names of links in the navigation
bar out of the database, and i have a SESSION where he writes in, the
x The problem is, i need a javascript which i can write into the database,
x which on the oher side can read out a php SESSION. Is this possible?
x Yes? how?
Javascript in browser
php on server
Pass varibales from javascript - php via urls and forms
Pass varibales from php - javascript via
Good day!
Is there any way to get names of vars and values from $HTTP_POST_VARS if I
don't know their names and (ofcourse) values? (number can be taken from
count($HTTP_POST_VARS) ) ...
This is nesesery to write a function wich write log of user's work with
remote filesystem.
Vladimir Galkov
RTFM
HTTP_POST_VARS is an array, so you can iterate with forach:
foreeach($HTTP_POST_VARS as $variableName = $variableValue){
echo PIn Variable $variableName you submitted:
.htmlentities($variableValue)./P\n;
}
For further information go on http://www.php.net, there is a _very_ good
Or other way:
while (list($key, $val) = each($HTTP_POST_VARS))
echo $key = $valbr\n;
Hidayet Dogan
[EMAIL PROTECTED]
Pleksus Bilisim Teknolojileri D.T.O. A.S.
Can someone explain to me why sessions don't work with SSI?
Let me explain my case:
I have a php script called miec.php, which uses sessions extensively. It's
a script to show products from a catalog randomly, and in the session it
keeps the products already shown, so it doesn't repeat... it
-Original Message-
From: Jimmy [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 2:41 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Looking for security annoucements
I'm running phpBB not phpNuke and I'm subcribed to Buftraq,
hope the others are more helpful for me...
i was now trying all the examples from the docs but no success yet
can someone please help?
i want to convert an image to another format i was fread-ing the one
image into
$image1
so they are binary in there
and i want to pass that to imagemagick's convert, using:
convert gif:-
Im using PHP to allow a user to update several MySql records in a batch
process. During the update I print to the browser information about the
update (records deleted, added, changed
etc.). What I would like to do
is also save this report so the user can access it at a later time.
Im
Im considering writing all the update information to a datafile
before displaying it to the user, say through an include(); What I
would like to do is direct the output (all my prints) to that
report file. It seems though that I might have to go through my
code and explicitly use fputs to
I have been troubleshooting the performance of some code for a couple of
days and I have not been able to find out what is happening.
Here's the pseudo-code
- Get jobs from the MySql database. Return all customers. Returns 10 rows.
then for each customer return their active jobs. ( About 1 to 2
It appears this function is only available for PHP4+. I have been trying
to stay compatible with PHP3 but maybe I should abandon this requirement.
Do you know of any URLs that may provide stats on versions of PHP in use?
Thanks,
Chris
Wolfram Kriesing wrote:
Im considering writing all the
Hello,
im searching the gd.dll for windows with gif support.
who can help me?
--
Thargor mailto:[EMAIL PROTECTED]
http://www.vergessene-welt.de
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Are there any refrences that would indicate the percent of sites (PHP
installs) using various versions of PHP (i.e., 60% PHP4, 30% PHP3,
etc.)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Happy Friday!
I don't know anything about the innards of the PHP/Apache relationship. I am
wondering if there is a security advantage to using the getenv() function to
access an environment variable, instead of using the $HTTP_SERVER_VARS
array, or, if register_globals is on, the global version
I'm hoping somebody has the answer to this!
I have 3 pages, one a normal PHP page, and 2 which are classes.
One class, is a MySQL class I have written to connect/update users, etc
And the other is the manage users on the system.
Is there a way I can get the users class to talk to the mysql
have a look at get_html_translation_table htmlspecialchars() ,
htmlentities() and get_html_translation_table.
these function do all the work for you without reinventing the wheel.
Steve
Joe Van Meer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
Hi there...I'm new to php coming
Hello,
what I would do is build the instance of your mysql class in the constructor
of the user class
class User{
var $db;
// constructor
function User(){
$this-db = new Mysql(True);
}
// function that show how to use the Mysql class in the User class
function foo(){
On Friday 09 November 2001 05:16, Cleber S. Mori wrote:
Hi again...
I had already RTFM...
Neither in exec or ``'s I found any thing about STDIN...
Just a blind shot:
$Data = escapeshellarg ($MyVariable);
system (echo $Data | myscript.py -param);
--
Christian Reiniger
LGDC Webmaster
Does this exist? If so what is the URL to the website. If it does not exist, I am
thinking of starting one.
Thanks
--
Clint Tredway
www.factorxsoftware.com
Get Chatster - a free CF Chat Program
http://www.factorxsoftware.com/download/
Need help with a Factor Product?
Hi !
I have a site where I do the user autentication myself. (I auth
against a database). I want to be able to let a user logout, that is
when the user is logged out she/he should not be able to just
press the back button in the browser to get back or use a cached copy
of the login screen.
How
Probably not your problem but shouldn't your php line be as follows:
?php phpinfo(); ?
ie without the space between ? and php?
Caleb Carvalho wrote:
Hi all,
I've just finish upgrading my apache server to apache 1.3.22,
I have also compiled my php-4.0.6 with it.
When I try to test it
When they click logout, remove the marker from the database that specify
they are logged in.
Then you must on all pages see if this marker is either 'on' or 'off'. But
sessions would be better for this since it is one sql query less. Just
unregister the variable on logout and check with:
if
1.4.0 was hacked, but just for fun on tuesday, on wednesday I upgraded to
1.4.2 and it was hacked by another hacker in the night!!!
I looked at the 1.4.2 for my customization, and this morning at the 1.4.4
and saw that even basic security holes are not fixed. The project team is
working on the
Hi all
I have two scripts on the server in the SAME directory.
both have this line in the beginning:
ob_start(ob_gzhandler);
in one script it works. in the other it does not...
it buffers, but does not zip the html...
the one where it does not work is VERy huge and does lots of stuff,
Hello,
I have a little question regarding regular expressions... I want to check
for the pattern
$num::
But, $num may not be started with another number (assume the number will be
51 , 1 will also match (the pattern 1:: is available in 51::) ... Currently,
my regular expression is:
I am having problems using the fopen functions
within a while loop. I am having problems passingvariables into the
function. Has anyone else had this problem?
Example:
$work_dir="$DOCUMENT_ROOT/click/oct01"; $ls_res=system("ls
$work_dir/*.html $work_dir/ls.txt");
In [EMAIL PROTECTED], Vikram Vaswani
wrote:
There is an undocumented function in php4.0.6 that allows you
to specify an XSLT callback function for errors. You can
then create a function to parse out the error array created
by the callback function. It actually captures not only
errors but also
Hey everyone, I need some help with a variable issue. How can I delcare a variable and
then if a url variable of the same name is present use that value instead?
this is what I have:
if(!$dte)
{
$dte=date(j, time()+$ctime);
}
else
{
$dte=$dte;
}
and this causing an error in the 'if' expression.
The else clause can be removed, since it is not doing anything. What is the
error message?
Kirk
Hey everyone, I need some help with a variable issue. How can
I delcare a variable and then if a url variable of the same
name is present use that value instead?
this is what I have:
replace the if statement if(!$dte)
with
if (!isset($dte))
- Original Message -
From: Johnson, Kirk [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 2:35 PM
Subject: RE: [PHP] variable issue
The else clause can be removed, since it is not doing
PHP Gurus:
I have one for you. I'm sure there is a simple solution, but I'm having
difficulty finding it.
Let's say I have:
$content = ?PHP Query_Database( $category );?;
If I use ?PHP echo $content; ?, it doesn't evaluate that content. What am
I doing wrong here?
Is there an
On Friday 09 November 2001 11:51 am, Christopher Raymond wrote:
Let's say I have:
$content = ?PHP Query_Database( $category );?;
If I use ?PHP echo $content; ?, it doesn't evaluate that content. What am
I doing wrong here?
What you're doing doesn't make any sense. If it were to work, it
I just asked a similar question yesterday. The answer is, conveniently
enough, eval().
One trick from the php.net page on the function is to do somehting like
this:
$content = ?PHP Query_Database( $category );?;
echo eval (?$content);
Christopher Raymond wrote:
PHP Gurus:
I have one for
if(!isset($dte))
{
$dte=date(j, time()+$ctime);}
You don't need the else statement.
Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]
-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 2:37 PM
To: PHP
on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL PROTECTED] wrote:
What you're doing doesn't make any sense. If it were to work, it would look
like the following:
?PHP ?PHP Query_Database( $category );? ; ?,
or something similar. I think what you want to do is:
?php
$content =
http://www.php.net/manual/en/function.eval.php
Kirk
-Original Message-
From: Christopher Raymond [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 1:11 PM
To: PHP List
Subject: Re: [PHP] Eval()??? A variables contents?
on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL
thanks for all the help. I realized that I did not need the else, and the isset()
works great! Now I have my calendar working the way I want it to!
Thanks!
Clint
-- Original Message --
From: Matthew Luchak [EMAIL PROTECTED]
Date: Fri, 9 Nov 2001 15:07:22
OK, maybe I'm missing something, but why not just replace:
?PHP echo $content;?br
with:
?PHP echo eval($content);?br
Assuming your Query_Database() function returns a string, this should
work fine.
Christopher Raymond wrote:
Okay there are two files involved here. First is
php-general Digest 9 Nov 2001 20:43:27 - Issue 985
Topics (messages 74005 through 74056):
Re: Looking for security annoucements
74005 by: Jimmy
74018 by: Mark Roedel
74039 by: Jimmy
php test page not working with apache 1.3.22
74006 by: Caleb Carvalho
I have this query
$db1 = INSERT INTO tablename
(name,email,phone,room,problem,upgrade,software,hardware,printer,network,os,
priority,submitdate)
VALUES
('$name','$email','$phone','$room','$problem','$upgrade','$software','$hardw
are','$printer','$network','$os','$priority','1996-05-01');
$cur1
I'm quite sure there is a simple solution to the problem bellow!
I like to evaluate som PHP code, but I want the result to be putted into a
string.
example:
$var = Test1;
$code = td?php echo $var1?/td;
$html = someFunction($code);
After this i want $html to contain tdTest1/td
I've checked
When PHP try to execute a program via exec() or system(), where does it
search for it?
I mean, it sertainly is not MY (foo.php owner) path, because it returns me
a
sh: YOUR_PROGRAM: command not found
It seems to be (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin ) now.
Where can I set this
What is $num going to be? A number? So how do you determine where that
number ends and where there shouldn't be another number in front of it...are
there any restrictions on the size of $num?
say $num is 51
then you're saying that you want to match
51::
but not 151::
however, what if $num is
On Fri, Nov 09, 2001 at 10:33:39PM +0100, Morten Gjetanger wrote:
I like to evaluate som PHP code, but I want the result to be putted into a
string.
example:
$var = Test1;
$code = td?php echo $var1?/td;
$html = someFunction($code);
After this i want $html to contain tdTest1/td
$var =
Hi,
I'm a newbie and I'm currently porting a system coded in another language
to PHP4.
Here's a question about the internals of PHP:
The manual states that it's not necesary to do odbc_free_result() because
PHP will free all used resources upong script completion. Ok, but what if I
reuse
On Fri, Nov 09, 2001 at 10:11:50AM -0800, Chris wrote:
Are there any refrences that would indicate the percent of sites (PHP
installs) using various versions of PHP (i.e., 60% PHP4, 30% PHP3,
etc.)?
See the top of http://php.net which refers to usage stats provided by
Netcraft and
Hello list,
I tried to compile apache 2.0.16 with php 4.0.6. Here's my ./configure line
for apache:
./configure --prefix=/usr/local/apache2 --enable-module=so
And here's my ./configure line for PHP:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --disable
-debug
Hi,
I'm having some difficulties accessing HTTP_POST_VARS
The original form has a table where each row has a set of 3 radio
buttons name=whatdo?php print $x?[] where $x is the row counter.
(I'm using PHP to pull info into a table, then the user manipulates
the info, and it places the info
Hi there !
I just want to know what is the max size that a function can be before it
becomes out of range for the function that follows?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
Hi there !
I just want to know what is the max size that a function can be before it
becomes out of range for the function that follows?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Is it possible to redirect to an IP address but have the browser address bar
show an URL?
Mike H.
http://ibiz-tools.com http://vestudiohost.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Does anyone know if PHP can be used (other than with ODBC) with the Cache
database from InterSystems?
Thanks in Advance,
Shawn Sellars
Hi everybody,
I hope someone is able to help me with this, I've been having this problem for a
couple of months now and I have not been able to find a solution. I have a form to
upload a file which submits to itself, and has two submit buttons, one called
eliminarfoto (deletephoto) and
On Fri, 9 Nov 2001, Lara J. Fabans wrote:
The original form has a table where each row has a set of 3 radio
buttons name=whatdo?php print $x?[] where $x is the row counter.
Well, for a set of raido buttons, they should all have the same name.
In your case, all 3 radio buttons should be
A while back somebody answered a question about some PHP code that would
take the $HTTP_POST_VARS and create the SQL that would write them to a
MySQL table (provided the posted var names matches the MySQL
fieldnames).
Does anyone have info on that project? The PHP searchable archive is
On Fri, 9 Nov 2001, Mike Harvey wrote:
Is it possible to redirect to an IP address but have the browser address bar
show an URL?
Assuming that you meant hostname instead of URL since the browser
address bar will always display a URL ... No.
~Chris /\
Boy, that's one of those Imagine the trouble we would get into if we
could! questions, isn't it? Just like How do I disable the back
button?, or How do I use PHP to feed me the contents of a web browser's
hard drive?
That said, some hosting services support what is called domain parking,
That Report doesn't seem to identify PHP version only total
Matt McClanahan wrote:
On Fri, Nov 09, 2001 at 10:11:50AM -0800, Chris wrote:
Are there any refrences that would indicate the percent of sites (PHP
installs) using various versions of PHP (i.e., 60% PHP4, 30% PHP3,
etc.)?
See
Hi there... newbie here!
How do I do server-side redirection?
I want to redirect the user to another URL without using javascript.
Regards,
Ernesto
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Friday 09 November 2001 07:46 pm, Ernesto wrote:
How do I do server-side redirection?
I want to redirect the user to another URL without using javascript.
RTFM.
http://php.net/header
Or, check the archives of the mailing list.
http://marc.theaimsgroup.com/?l=php-general
This question
See http://php.weblogs.com/adodb_csv
ADODB also supports SQL communications through HTTP as a database proxy. In
plain English, if you have a FoxPro or Access database that you need to
connect to from Unix, you can do so via HTTP (eg. Apache talking to IIS,
which talks to a small PHP program
Hi Daniel,
Most OOP projects contain multiple hierarchies, not just one. Normally DB
is not made the base class. Think in terms of whether the objects have
is-type-relationships or use-part-relationships.
Eg.
Boring_News uses-the-part MySQL_DB, so Boring_News uses the MySQL_DB object
as a
This is just a suggestion. Rather than creating the associative array from
scratch, prebuild one and just use copies of that associative array when you
need it. I don't know whether it will be faster, but intutitively it should.
This is analogous to pre-allocating structs in memory before using
I'm ready to rip my hair out!
I have a form which submits to a script to generate an image using the info
on the form.
I am trying to center the text over the image, and this application
requires the use of variable-width fonts. So I am using a very basic regex
to check for an all-caps
I figured out a work around. I'd still be interested if anyone else has
experienced this.
Josh
--
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
73 matches
Mail list logo