Hi All,
Just wondering if it were possible to do like the following SSI line:
from within php.
I know a php alternative should be made, but for the time being and for
future's sake
So far i've tried back ticks, passthru(), exec(), but the problem is
that the URI and other variables aren
On Sat, Jun 23, 2001 at 04:50:48PM -0700, Todd Cary wrote:
> I have created a barcode as an image stream ($im). Now, I want to
> output it in HTML to a particular row and column on a form. Do I have
> to save it as a file so that I can use the routine or is
> there a way to directly output the
It sure is, but your code needs to look like this:
class one {
function one() {
echo "one ";
}
}
class two extends one {
function two() {
parent::one();
echo "two ";
}
}
class three extends two {
function three() {
parent::two();
echo "three";
}
}
$foo
This should work...
\n";
for ($j = 0; $j < $num; $j++)
{
echo '\n';
for ($i = 0; $i <= 1; $i++)
{
@$result = mysql_fetch_array($result);
@$id = $result[id];
@$title = $result[title];
echo "
Has anyone had any luck getting it to work? I can compile both Apache fine
and add php as a module no problem and Apache is happy. But it will not
parse any PHP content. Please help!
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED]
--
PHP
McShen wrote:
> Hi
>
> I have a script which queries mySQL and outputs 32 links at once. Here is my
> scipt
>
>
> $connection = mysql_connect("***","","");
> if ($connection==false)
>{
> echo mysql_errno().":".mysql_error()."";
> exit;
>}
>
> $end = $list + 16;
>
> $
Hi
I have a script which queries mySQL and outputs 32 links at once. Here is my
scipt
\n";
echo "\n";
while ($j!=$num)
{
@$r = mysql_fetch_array($result);
@$id = $r[id];
@$title = $r[title];
echo "\n";
echo "$title";
echo "\n";
// new row in table every other link
$i++;
if (($i % 2)
Hi all,
Does anyone out there have a PHP script that will serve as an input
form which are e-mailed to wedding invitees, in turn, linking them to a
form where they can RSVP their decision to attend the wedding or not and
how many they plan to bring?
Visit http://www.lunenburg.org/wedding/rsvp
OK, thanks for that Chris.
I did get it in the end, with something very similar to what you
suggested:
$message = "";
while ( )
{
$var1 = $row["1"];
... etc
$item = "$var1 $var2 $var3 etc";
$message = $message . $item . "\n";
}
Your solution is cleaner so
I need to create a document that confirms to certain formatting criteria
and then be able to give the surfer the ability to download the
completed document preferrable, pdf. In other words, the document is a
"legal" document and has some dynamic fields. Can this be done in php
and if so, is ther
As I understand it in PHP the constructor of the parent class is not called
when a child class is initiated.
You can call it manually. Eg., using your example:
class one
{
function one()
{
echo "one ";
}
}
class two extends one
{
function two()
{
one::one();
G'day -
Sorry for this stupid question but I'm a newby trying to install php on my
win98 computer and find that neither netscape nor IE 5.5 won't open php
files that are located on my c: drive but will access php files on the net.
There must be a simple explanation.
Any help greatly appreciated
Hello,
I have a script that does TV/Tour listings for artist, I need it to sort the
list automatically so that it goes in date order but I have absolutely no
idea. I have put together the script with little to no PHP skills so it look
pretty horrific.
If you could help me out with figuring out h
You'll probably get as many approaches as replies. How about the following;
after you have connected to mysql and selected the database;
$query = "SELECT * FROM table";
$result = mysql_query ($query)
or die ("Query $query failed. The error message was
".mysql_error ());
// The followi
You should call mysql_free_result($Query) !!
It all becomes a little clearer if you change the names of the variables as
such:
$result = mysql_query("select ...");
$row = mysql_fetch_assoc($result);
That is, mysql_query() returns a "result", and mysql_fetch_*() returns a
"row" from such a resul
I have created a barcode as an image stream ($im). Now, I want to
output it in HTML to a particular row and column on a form. Do I have
to save it as a file so that I can use the routine or is
there a way to directly output the stream?
Many thanks...
Todd
--
Todd Cary
Ariste Software
[EM
I just installed PHP 4.06 on my setup, and noticed that there's a bunch of
classes/scripts in the /pear directory. Does anyone know what the status of
these scripts are, as in if they are finished quality (ie, they can be used
successfully on websites)? I thought that PEAR was still being develope
Hi all-
Is anyone using PHP 4.0.6 with GD 2.0.1? (yes I like to live on the
bleeding edge :-)
I'm developing an application that does a lot of image operations and
would like to be able to use the new ImageCopyResampled() and
ImageCreateFromString() functions.
I'm using PHP 4.0.6 with GD 1.8
Michael Hall pressed the little lettered thingies in this order...
>
> I'm stuck on a piece of code for a shopping cart.
>
> I'm on the final page where the buyer clicks BUY and several things
> happen. I want to loop through the table that stores the session info and
> extract details such as
www.oosha.com/phpdev/index.php3
Ive had some great response to the site but not as much as id hoped if you
have any ideas please email them to me and ill implement them
--
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
Hi:
I´m using PHP4 on IIS 5 on Windows 2000 Server and
it works fine.
The Microsoft NNTP Service from IIS 5 can be
managed from command shell with commands like this bellow:
cscript d:\\temp\\rgroup.vbs -t a -g
new.group.01
And it works also fine in my system.
But, when I try to run
I use this code to do this kind stuff:
- BEGIN ---
$result=mysql_query(...);
$columns=2; //Count of columns
$table="\n";
$table.='';
$col=0; //current column
//Draw table content
while ($row=mysql_fetch_row($result)){
$table.=''.$row[0].'';
$c
Hello CC,
On 23-Jun-01 17:25:54, you wrote:
>I'm having trouble understanding the docs and annotations on flock(). I've
>got a script that needs to overwrite a data file's contents without letting
>Instance B of that script truncate the data file while Instance A is still
>writing new conten
I always use "InputImageName_x > 0" to know if a button was clicked.
How can I get the value on my input type=image?
Like:
how can I get "002545645" with "$contatc"?
thanks,
Augusto
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I'm having trouble understanding the docs and annotations on flock(). I've
got a script that needs to overwrite a data file's contents without letting
Instance B of that script truncate the data file while Instance A is still
writing new content to it. How do other people do this? It seems t
McShen wrote:
> > hi
> > i have a mysql table with approx. 30 entries.
> >
> > I wanna get them(i know how to do that) and list them in a 2-column
table.
> I
> > have been trying to use a loop to do it. But it will only produce a
> 1-column
> > table. it's like
> >
> > entry 1
> > entey 2
> > entr
is this what you want? there must be an
easier way. i am sure some one else knows it be i would -
$result = mysql_query("select * from
table");
?>
$i = 0;
while($my_array =
mysql_fetch_array($result))
{
if($i%2)
{
print"{$my_array[0]";
}
else
{
print"{$my_array[0]}";
}
$i++:
}
or
Make sure your configure statement contains something like this
--with-apxs=/path/to/apxs
Julia
Quoting Daniel Guerrier ([EMAIL PROTECTED]):
> I'm trying to install PHP 4.06 as a DSO with apache
> 1.3.20 on redhat 7.1 and it produces this error. No
> of which are the problem. What else can it
how can i install the gd library for php on win2k using iis5?
- Noah
--
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]
Hello!
Is it possible to do normal inheritance on PHP?
I've following code:
--->
class one
{
function one()
{
echo "one ";
}
}
class two extends one
{
function two()
{
echo "two ";
}
}
class three extends two
{
please share if you know hwo to di it. thanks you
""McShen"" <[EMAIL PROTECTED]> wrote in message
9gqm6o$g6n$[EMAIL PROTECTED]">news:9gqm6o$g6n$[EMAIL PROTECTED]...
> hi
> i have a mysql table with approx. 30 entries.
>
> I wanna get them(i know how to do that) and list them in a 2-column table.
I'm trying to install PHP 4.06 as a DSO with apache
1.3.20 on redhat 7.1 and it produces this error. No
of which are the problem. What else can it be??
Configuring SAPI modules
checking for Apache module support via DSO through
APXS...
./configure: /software/apache/bin: is a directory
Sorry, I
Use the ucwords() function
http://www.php.net/manual/en/function.ucwords.php
Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084
http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Jason Katz-Brown <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]
I've successfully compiled an extension for my php builder (pgsql.so) by doing
the following:
phpize
./configure
make
I then copied my shiny new extension to
/usr/lib/php4/extensions/no-debug-non-zts-20001222 - which is where all my other
php extensions are (mysql.so, gd.so, imap.so, etc). The
Hi
Whats the best way to make $string title case? In other words, turn "this is
a string" into "This Is A String" ?
Thanks a bunch
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
I’m installing PHP 4.0.5, I have Apache 1.3.20
installed currently and I’m also using a built in module of mod_perl 1.25. Here’s my apache mod list
[grumster]:12:38pm:/usr/local/apache/bin:(raq)-> ./httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime
Hi all,
I have a .htaccess file with the following in it
order allow,deny
allow from all
require user pilot
Authname MySite
Authtype Basic
The page itselfs prompts for and accepts username/password correctly,
however on that page are a number of included files.. The included files are
in a subdi
sice i installed php 3.0.18 html forms whith blank file-input never returns
'none'.
$userfile is always unset.
with php 3.0.12 my file-upload scripts worked perfectly.
i know i could do samething like:
if ($userfile != 'none' && strlen($userfile)) { ... }
but i have alot of scripts to change.
Daniel Goldin (E-mail) wrote:
> Anybody know of a good chat script? I'm hoping for the chat equivalent of
> phorum. Thanks for any help.
If you can live with the hassle of rebuilding PHP, you might try ircg from
Sascha Schumann (http://www.schumann.cx). This is by FAR the most performant
chat f
Hi there,
I was wondering what happens if you call the readfile function to output a
large binary file to a client with a slow connection.
Does the script run until the whole file is sent to the client (leading to
timeout errors on servers with a low max execution time) or does it fill
some sort
> The problem involves 2 tables, one of editors and one of categories, both
> have unique ID numbers. Each editor can have authority over an arbitrary
> number of categories, and conversely, each category can have an arbitrary
> number of editors. So what is the best way to represent this in the
> Do I mysql_free_result the $Query or the $Result? If it's $Result, would
> this be the same as just going unset($Result)?
mysql_free_result() frees the ressources that the MySQL server allocated for
the results of your query. This is in the memory space of the MySQL server,
while if you unset($
If u don't want to use the pi() function.
Try M_PI. This is a pi constant its value is 3.14159265358979323846
$theta=15*M_PI/360;
- Original Message -
From: Anon Y Mous <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 23, 2001 2:21 PM
Subject: Re: [PHP] math question
>
"Daniel Goldin \(E-mail\)" <[EMAIL PROTECTED]> wrote:
> Anybody know of a good chat script? I'm hoping for the chat equivalent of
> phorum. Thanks for any help.
http://phpwizard.net/projects/phpChat/ - might give that one a go.
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.
"Jon Shoberg" <[EMAIL PROTECTED]> wrote:
> Using Apache ...
>
> Any thoughts no how I can create a link:
>
> http://cars.mydomain.com and have it redirect to
> http://www.mydomain.com/index.php?id=cars
>
> and
>
> http://www.mydomain.com/cars and have it redire
PHP 4.0.6 has been released. Like 4.0.5, this is a maintenance release
which mostly includes fixes to bugs and issues found in earlier
versions. Those of you who decided not to upgrade to 4.0.5, may now wish
to jump directly to 4.0.6 to get all the new fixes of both versions.
One very import
Have you defined the 'pi' constant?
If you are trying to use PHP's built-in PI constant, it is named 'M_PI'
Perhaps consider increasing your error reporting level so that PHP reports
problems like undefined constants - see error_reporting() for more details.
--zak
- Original Message -
pi is a function. Try this:
$theta = 15*pi()/360;
It should return 0.13089969389957
-Evan Nemerson
> $theta = 15*pi/360;
> gives a value of 0 for $theta... it should be something like 0.131...
> Julia
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
Hi,
I am developing a shopping-cart application and i need to
authorize the credit-card no. of the customer.
I need to use a post method thru my php-script a replica
of which I am giving below:
Script Start:
// Build the request string
$request.='cardnum='.urlencode("");
$re
On Fri, Jun 22, 2001 at 09:16:08PM +0300, Rouvas Stathis wrote:
> Do you experience any other sort of problems other than those warnings?
> I mean, is anything wrong with the data? Normally, nothing should be
> wrong.
>
> I have seen the same messages (especially the "service handle not
> intitia
On Fri, Jun 22, 2001 at 11:27:42AM +0100, Euan Greig wrote:
> The following code works fine if passed a valid sql statement in $sql, but
> if not it hangs.
>
> $this->conn=OCIPLogon($orauser,$orapwd,$tns) or
>die ("Could not log on to database");
> $this->stmnt = OCIParse($this->conn, $sql) o
""Julia A. Case"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $theta = 15*pi/360;
> gives a value of 0 for $theta... it should be something like 0.131...
>
> Julia
I get
echo 15 * M_PI / 360;
returns
0.13089969389957
--
PHP General Mailing Li
This error means that you are using an empty string as your pattern for the
regular expression.
Throw a test like this in before the eregi_replace calls to check if this is
the case:
if ('' === $r[1]) {
echo '$r[1] is an empty string';
} else
if (NULL === $r[1]) {
echo '$r[1] is NULL';
}
$theta = 15*pi/360;
gives a value of 0 for $theta... it should be something like 0.131...
Julia
--
[ Julia Anne Case ] [Ships are safe inside the harbor, ]
[Programmer at large] [ but is that what ships are really for.]
[ Admining Linux ] [ To thine own
Title: RE: [PHP] Is this a joke?!
Indeedy...
http://uptime.netcraft.com/up/graph?mode_u=off&mode_w=on&site=www.perl.com&submit=Examine
--
Aaron
-Original Message-
From: James Moore [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 1:06 PM
To: 'Fredrik Arild Takle'; [EMAIL PROT
Anybody know of a good chat script? I'm hoping for the chat equivalent of
phorum. Thanks for any help.
daniel
Daniel Goldin
[EMAIL PROTECTED]
323.225.1926
BlueLamp Productions
www.blue-lamp.com
--
PHP General Mailing
In article <9h05jt$cav$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Brian Weisenthal") wrote:
> I am trying to create a function that will check if a variable exists, if it
> does leave it alone, if not create it. This is similar to for
> those who know cold fusion. Anyone know a good way to deal wi
>
>Its probably just as fast for you to test it out using what you
>have written
>here as it is for someone to give you the answer.
>
Well, that thought occurred to me just after I sent the email... but there's
nothing you can do after hitting the "send" button, can you?
--Jason
--
PHP Genera
Jason Jacobs wrote:
> Hi all. I'm trying to pass an array to another page, and I'm not having
> luck. I thought maybe it would do something slick by passing it in the
> url, but it doesn't. So, how can I pass the array?
You can pass an array between pages by using the serialize() and
u
I'm a bit unclear as to which result it is I use this function on.
So lets say I;
$Query = mysql_query("SELECT something FROM here");
$Result = mysql_fetch_assoc($Query);
Do I mysql_free_result the $Query or the $Result? If it's $Result, would
this be the same as just going unset($Result)?
Thank
I'm stuck on a piece of code for a shopping cart.
I'm on the final page where the buyer clicks BUY and several things
happen. I want to loop through the table that stores the session info and
extract details such as item, price, quantity, subtotal and assign all
this info to one variable:
$var
61 matches
Mail list logo