Has anyone successfully set up a script to upload a file with PHP running
Apache in Win9x (in my case 98Me)?
I tried everything... the script is correct, I checked out a lot of
examples... is there any config in Apache or in PHP I'm missing???
I really need this...
At 11:24 AM 6/22/01 -0600, Unni wrote:
Is there a user group in Colorado?
Thanks
If there is one, I'd like to be a part of it.
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
--
PHP General Mailing List
Hi all,
I'm getting the following error when I try to load complex web pages with a
version of Hans Anderson's class.browser that I've modified to translate
relative links to absolute links (as well as images, flash object / embed
links). It's going to be part of a larger templating class (I'm
There's a number of things you can do with variable variables... they're
quite powerful, I like 'em a lot. :)
Anyway, you can do
?php
$myvar2 = 'stuff';
$othervar = 2;
if (isset($myvar{$othervar}))
echo $myvar{$othervar};
?
This would output
snip
stuff
/snip
I think that's what
file(http://www.163.com;) error?
this is a test:
?php
$fcontents = file ('http://www.php.net');
while (list ($line_num, $line) = each ($fcontents)) {
echo bLine $line_num:/b . htmlspecialchars ($line) . br\n;
}
?
/
This program
Hi,
and the shorthand for this :
?php
$img=ImageCreateFromJPEG($filename);
ImageJPEG($img);
?
Thanks
Arash Dejkam
Fredrik Arild Takle [EMAIL PROTECTED] wrote in message
9gvl19$er6$[EMAIL PROTECTED]">news:9gvl19$er6$[EMAIL PROTECTED]...
1. Authenticate user
2. Put the pictures in a secret
On 22-Jun-01 Nick wrote:
I writing a web based admin panel for myself for my site. My PHP script
needs to be able to read, write, and move files around. The way I'm
currently getting it to work is by making a directory owned by nobody with
all permissions set so the script can write files
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)?
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
rant
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.
/rant
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
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 cfparam for
those who know cold fusion. Anyone know a good way to deal
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
Title: RE: [PHP] Is this a joke?!
Indeedy...
http://uptime.netcraft.com/up/graph?mode_u=off_w=on=www.perl.com=Examine
--
Aaron
-Original Message-
From: James Moore [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 1:06 PM
To: 'Fredrik Arild Takle'; [EMAIL PROTECTED]
Subject:
$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
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 List
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) or
die
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
intitialized
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();
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
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 -
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 redirect to
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.net/)
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
pi
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
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
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
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
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.
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
Im installing PHP 4.0.5, I have Apache 1.3.20
installed currently and Im also using a built in module of mod_perl 1.25. Heres 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.c
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 the
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,
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
have
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
{
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]
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
is this what you want? there must be an
easier way. i am sure some one else knows it be i would -
?php
$result = mysql_query("select * from
table");
?
table
$i = 0;
while($my_array =
mysql_fetch_array($result))
{
if($i%2)
{
print"td{$my_array[0]/td/tr";
}
else
{
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
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: input type=image name=contatc value=002545645
how can I get 002545645 with $contatc?
thanks,
Augusto
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
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 content
I use this code to do this kind stuff:
- BEGIN ---
$result=mysql_query(...);
$columns=2; //Count of columns
$table="TABLE\n";
$table.='TR';
$col=0; //current column
//Draw table content
while ($row=mysql_fetch_row($result)){
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 a
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
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 item,
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
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
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 img src=xx or is
there a way to directly output the stream?
Many thanks...
Todd
--
Todd Cary
Ariste
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 result.
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 b$query/b failed. The error message was
.mysql_error ());
// The
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
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
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();
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 there
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'll
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
Hi
I have a script which queries mySQL and outputs 32 links at once. Here is my
scipt
?php
$connection = mysql_connect(***,,);
if ($connection==false)
{
echo mysql_errno().:.mysql_error().;
exit;
}
$end = $list + 16;
$query = SELECT * FROM refer ORDER BY hits desc
McShen wrote:
Hi
I have a script which queries mySQL and outputs 32 links at once. Here is my
scipt
?php
$connection = mysql_connect(***,,);
if ($connection==false)
{
echo mysql_errno().:.mysql_error().;
exit;
}
$end = $list + 16;
$query = SELECT *
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]
--
This should work...
?php
$connection = mysql_connect(***,,);
if ($connection==false)
{
echo mysql_errno().:.mysql_error().;
exit;
}
$end = $list + 16;
$query = SELECT * FROM refer ORDER BY hits desc LIMIT $list, $end;
$result = mysql_db_query (celebzone, $query);
$num =
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 =
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 img src=xx or is
there a way to directly
Hi All,
Just wondering if it were possible to do like the following SSI line:
!--#exec cgi=./cgi-bin/txtcounter.cgi--
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
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
63 matches
Mail list logo