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 PRO
Hi
Your whatdo's will be whatdo0 whatdo1...whatdox
You need to do like this if I understand what you are doing :)
$row=0;
while($row < $numofrows):
$var = "whatdo".$row;
$whatdo = $submitted_vars["$var"];
//do whatever with $whatdo
.
$row ++;
endwhile;
Tom
At 09:41 AM 10/11/01, La
$string = "Mary had a little lamb whose face was icy cold. Everywhere
that Mary went the townsfolk were sure to know";
I want to display the text where the max number of characters on any
one line is 34.
1234567890123456789012345678901234
Mary had a little lamb whose face
was icy cold. Everywhe
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 strin
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 t
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 membe
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 [th
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 h
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]
T
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.)
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 parkin
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 /"\
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
down
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[]" 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 named "whatdo"
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 "sal
Does anyone know if PHP can be used (other than with ODBC) with the Cache
database from InterSystems?
Thanks in Advance,
Shawn Sellars
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 con
> 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 con
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,
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[]" 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 into 2 other ta
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 --enable-tr
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 Security
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 (ov
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 = "";
> $html = someFunction($code);
>
> After this i want $html to contain "Test1
$var = "Test1";
$cod
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 151?
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 PATH?
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 = "";
$html = someFunction($code);
After this i want $html to contain "Test1
I've checked the eval function, but i
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')";
$cur
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
OK, maybe I'm missing something, but why not just replace:
>
with:
Assuming your Query_Database() function returns a string, this should
work fine.
Christopher Raymond wrote:
>
> Okay there are two files involved here. First is my index.php file:
>
> $params = array('class' =
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
Okay there are two files involved here. First is my index.php file:
$params = array('class' => 'text10', 'content' => 'Query_Database( $category
)');
switch ( $mode ) {
case "list":
Make_TR( $params ); // This is executing the included function.
break;
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
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:
>
> ; ?>,
>
> or something similar. I think what you want to do is:
> $content = query_database($category);
> echo $content;
> ?>
>
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: PH
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 = "";
echo eval ("?>$content");
Christopher Raymond wrote:
>
> PHP Gurus:
>
> I have one for you. I'm sure there is a
On Friday 09 November 2001 11:51 am, Christopher Raymond wrote:
> Let's say I have:
>
> $content = "";
>
>
> If I use , 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 would look
like the following:
; ?>,
or som
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 = "";
If I use , it doesn't evaluate that content. What am
I doing wrong here?
Is there an equivalent to JavaScript's eval($commands) function?
TIA,
Ch
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 doi
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:
> if
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
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 als
I am having problems using the fopen functions
within a while loop. I am having problems passing variables 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");
$ar_file_lis
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:
eregi("([^0
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
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 2.
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
Probably not your problem but shouldn't your php line be as follows:
ie without the space between 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
>
> saved as php, the browser tries to downlo
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
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?
http://www.factorxsoftwa
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
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(){
$this
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 co
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"
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 o
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 conta
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, e-
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
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
> 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
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 consider
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:- jp
> -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 fo
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 wo
Hello,
For reasons not worth discussing here, I have to develop and test on
Linux/Apache some PHP pages that will have to access via ODBC a MS Access database on
an NT/IIS/PHP server.
I would like to do it by writing PHP pages that access via ODBC
some mysql or other database on my linux box, i
a great way to debug things like this is to use var_dump or print_r...
http://www.php.net/manual/en/function.var-dump.php
http://www.php.net/manual/en/function.print-r.php
short and simple :)
with kind regards,
Joffrey van Wageningen
On Fri, 9 Nov 2001, Hidayet Dogan wrote:
> Or other wa
Or other way:
while (list($key, $val) = each($HTTP_POST_VARS))
echo "$key = $val\n";
Hidayet Dogan
[EMAIL PROTECTED]
Pleksus Bilisim Teknolojileri D.T.O. A.S.
--
RTFM
HTTP_POST_VARS is an array, so you can iterate with forach:
foreeach($HTTP_POST_VARS as $variableName => $variableValue){
echo "In Variable $variableName you submitted:
".htmlentities($variableValue)."\n";
}
For further information go on http://www.php.net, there is a _very_ good
docume
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
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 vi
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
na
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 / h
> Am I doing something wrong? Thank you.
You may print nothing before the redirect header!
?>
- Original Message -
From: "phantom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 10:01 AM
Subject: [PHP] PHP Redirect / header("location: ")
> I am trying to
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 some
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
saved as php, the browser tries to download it instead.
I have added the application type under httpd.conf and restarted the server
./apachectl restart.
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, e-ma
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:
How to create a new user mailbox in PHP ?
78 matches
Mail list logo