The code of your's print's the following :
$beer's taste is great";?>
I'm not sure if there could be a problen in configuring PHP, since the only thing
I have done was making html page
containing this code.
8/31/01 6:42:02 PM, "Andrey Hristov" <[EMAIL PROTECTED]> wrote:
>
>
>PHP Test
>
>
>$
do yourself a favor... create a file, call it something like test.php and
add the following to it's contents:
/* begin test.php */
/* End test.php */
then, open this page with your browser. if PHP is working, you should see a
lot of configuration and version information, and the PHP logo etc.
Here is a slightly more readable number-to-English converter. It will deal
with negative numbers and recognizes zero; it's table-driven, so it
shouldn't be too hard to convert to other languages.
It will convert anything in +/- 10^30. This should be pretty comprehensive;
if not, extend the trip
can anyone help?
safe mode is set to "0", which i believe is "off".
i put a chmod command in one of my scripts and got the
following error on running it:
Warning: chmod failed: Operation not permitted in
/path-here/index.phtml on line 1
why won't chmod work?
the chmod command i used is:
the
OK I have been using the *same* cookie function to place cookies on the
surfers pc and it works for a few hundred people just fine. Now I have
a few people that it just won't work for.
After extensive testing the only thing I can see is that it is not
writing the cookies, we do see it writing th
who owns the file to begin with? your account? a web server typically runs
as a low access account, such as "nobody" on Unix. So, what is probably
happening is that you don't have permissions to chmod the file. Doesn't have
anything to do with your PHP configuration.
Jason Bell
- Original
I had the exact same problem, so what I have been doing is using the header
function to set cookies directly as a header. For example:
header("Set-Cookie: CookieName=$NameVar; path=/; expires=$DateVar");
I have had no problems with this way of setting cookies... So far :)
Rick
> OK I have bee
the files are all owned by me, that is, my unix login.
--- Jason Bell <[EMAIL PROTECTED]> wrote:
> who owns the file to begin with? your account? a
> web server typically runs
> as a low access account, such as "nobody" on Unix.
> So, what is probably
> happening is that you don't have permissio
at your unix prompt, (assuming you are running apache) enter the command
"ps -ef |grep httpd"
you should see the httpd (apache) process, and who owns it. Typicly this is
the user "nobody". Your file needs to be owned by the user that owns the
httpd process.
- Jason Bell
- Original Message -
i'm sorry if the solution to this problem was posted here before, but if it
was i couldn't find it.
i have an app that it's basically like this:
index.php:
$app = new App;
$app->start();
in class app:
function start() {
()
I'm getting the following error:
Warning: Unable to find ftpbuf 0 in C:\directory\page.php on line 22
Whenever I try to connect to our FTP server...it does this whenever I make a
call to ftp_login(). The server, username, and password are correct, and I
can successfully FTP into it through oth
I'm getting the following error:
Warning: Unable to find ftpbuf 0 in C:\directory\page.php on line 22
Whenever I try to connect to our FTP server...it does this whenever I make a
call to ftp_login(). The server, username, and password are correct, and I
can successfully FTP into it through oth
Afternoon List-
I have been burrowing through archives and newsgroups for awhile now and
have been trying to find some info on a better way to upload files from a
browser then doing HTTP based uploads? Are there any?
My system: PIII 750, 128MB RAM running FreeBSD 4.2 and Apache 1.3.20,
PHP 4.
I am trying to get a double data type to display the .00 in a "hole" dollar
amount (i.e. 432.00 not 432 or $432.00 not $432).
Can anyone tell me how to do this?
Thanks,
Robert J Collins
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
> I am trying to get a double data type to display the .00 in a
> "hole" dollar amount (i.e. 432.00 not 432 or $432.00 not $432).
> Can anyone tell me how to do this?
printf(); or sprintf(); is your friend
Chris
Try number_format()
if you have int than ($int_var*100)/100 or (double)$int_var
number_format((double)$int_var,...)
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "Robert J Collins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
S
I am searching a way of disabling certain functions in a particular Virtual
Host.
I search through the archive of this list and I found a begening of a
solution. I can disable functions in php.ini, but I can't use them in vhost
I want to. If I don't disable functions in php.ini, I cannot disable
I know I'm stepping on your nerv, but I can't process any
pages, although xitami is
properly installed, and has php direction in filters option. I
am using opera 5.12 as
my browser, and even when I read files trough the local
server, I can't process the
code...
Help !
Nikola
--
PHP Gen
I know I'm stepping on your nerv, but I can't process any
pages, although xitami is
properly installed, and has php direction in filters option. I
am using opera 5.12 as
my browser, and even when I read files trough the local
server, I can't process the
code...
I tried reinstalling PHP with
php_admin_value disable_functions strlen
On Fri, 31 Aug 2001, Nicolas Ross wrote:
> I am searching a way of disabling certain functions in a particular Virtual
> Host.
>
> I search through the archive of this list and I found a begening of a
> solution. I can disable functions in php.ini, but
What about going the other way? Say I have a sentence...
"Hi, my name is Bob."
...and I want to search the sentence for one of the values (people) in the
array...
$people = array("Jim","John","JP","Bob");
Can this be done?
Thanks,
Joseph
-Original Message-
yes, in_array($person,
try this :
$people = array ('philip','sasheen','jim');
$string = 'Hi, my name is philip, I miss Sasheen';
foreach ($people as $person) {
if (stristr($string,$person)) {
$matches[] = $person;
}
}
// results live in $matches now.
print_r($matches);
stristr is case
btw, you may want to search for a name surrounded by spaces as philip vs
philips, jim vs jimmy, etc. probably other considerations as well, or
maybe not :)
philip
On Fri, 31 Aug 2001, Philip Olson wrote:
> try this :
>
> $people = array ('philip','sasheen','jim');
> $string = 'Hi, my n
Is there a way one can get all the information in the tags from a
html page? I was able to get the link per se, but not the link information
or name. :( Can anyone help me out here?
Regards,
Kunal Jhunjhunwala
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PRO
This is a snippet from my code.
$FILE = "http://www.somehost.com";;
$fp = fopen($FILE, "r");
if(!$fp){
print("Somethings screwy");
}
else{
do stuff
}
Any suggestions?
Paul
Speedboy wrote:
> > I'm sure http://www.php.net exists. :)
>
> No, what my sentence meant was you're trying to do so
Sessions would definately save the data. :)
Jon Thompson Coon wrote:
> I can't cope the fact that I loose my variables every time I reload the
> page. If someone could point me to the right direction, I'd be grateful.
>
> Present problem:
>
> I have a script that has some globals (surprise). Wi
Thank you. Question answered. Several times over.
--
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]
Hey, you people are great. 5 reasonable answers to a 1 silly problem
within the hour. I'll exploit your goodwill. Here's the next one, this
is about objects (in finnish):
class Example {
var $list; // Here I set the problem
var $hinta;
var $määrä;
function Example()
{
> Here are your mistakes! This lines should be:
>
> $this->hinta = 0;
> $this->määrä = 0;
> $this->list = array(); // Initialised
>
> Thats because you haven't initiallized $this->list, but $list, that is
> internal to the Example function (in this case the constructor
Hey I got a few questions about image manipulation.
First of all, is there anyway I could have my script take a full size image
and crop out a chunk of it to be used as a thumbnail - or just simply shrink
the image down to be used as a thumbnail?
Also, is there anyway to convert misc image t
Adam -
If you're on a machine that has ImageMagick installed on it
(most Linux boxes I've been on have it installed already)
you can do something like this in PHP:
$origfile = "/home/bob/my_face.jpg";
$img_dir = "/usr/local/www/htdocs/images";
$dest_file = $img_dir . "/t_" . basename($userfi
> looks bright.
The future's so bright, I need to wear shades.
Sorry, couldn't resist.
Bottom line I'm hearing: The Dev team has no more hours to give, and is
focussing on what they believe is right. If somebody wants to sink
time/money into this, go for it.
--
WARNING [EMAIL PROTECTED] addr
>This is my quandry... I am trying to build a socket server to transfer
simple information, more of a monitoring tool. But after about 14+ hours it
just kicks out, without rhyme or reason. No errors, no nothing... I was
curious if anyone could see big gaping holes in my code that would allow f
http://php.net/mail
$headers = "From: [EMAIL PROTECTED]\r\n
$headers .= "Reply-to: [EMAIL PROTECTED]\r\n";
$headers .= "X-anything-you-want: Custom headers can be useful or fun\r\n";
$success = mail($to, $subject, $body, $headers);
if ($success){
# Mail was successfully queued for sending
}
>Finally, I've got another select box which calls a new page using get (I
tried post, and it >didn't work either), and the $current_year disappears
never to be seen again. Perplexing, >no?
You almost for sure don't have > in that last step.
Or, if you are using GET:
...=yourserver.com?current_
You can run 5 or 6 copies of PHP just fine, way easier than trying to hack
together some sort of multi-threading inside of PHP. Just be sure you use a
database or other thread-safe storage mechanism. Writing to a common file,
for example, would be pretty bad. Actually, under Linux, for small da
Check for and report bugs at http://bugs.php.net
Also, you can get instructions there on generating a backtrace with detailed
info of why Apache puked.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.c
Submitting only checked boxes is just how HTTP works.
A cool trick you can use is to do this:
name=noticias[$id] value='m'
In other words, you can convey *MORE* info by including a specific "key"
with each checkbox element from the sending script.
For keeping track of previous values, though,
echo "\n";
$dir = opendir('/path/to/images/dir') or die("Could no open images dir.");
while ($d = readdir($dir)){
if ($d != '.' && $d != '..'){
echo "$d\n";
}
}
echo "\n";
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? L
> echo $HTTP_POST_VARS['Approve_Selected_y';
That would have come from an tag.
Conjecture:
You probably didn't make nifty image buttons yet, so don't have that
variable showing up.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like M
DreamWeaver newer versions have support for PHP, almost for sure.
If nothing else, use the "raw HTML" view tab or whatever and just type in
the PHP code where you want it.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy
Change the realm out from under them.
IE, keep a dynamic list of "Realm" values to use, and when you want to
re-authenticate, present a new, unused "Realm"
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-
> another question is, at what time of the script does php call my
> session_write function to update the registered session?!
*AFTER* the connection to the browser is dead and gone, so any error output
is sent to the twilight zone.
Any error output in session_write needs to go through error_log
MySQL may not like that ; at the end of the query...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message --
There have to be samples of this in the code archives linked from
http://php.net/links.php
You'll probably want http://php.net/preg_match
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Dear Neighbor:
I'm having a tax problem and I want you to be the beneficiary
instead of the IRS...
My business has had a phenomenal year so far in 2001. In fact,
we've done so well I'm probably going to pay 2½ times more corporate
taxes than I did last year. And if we make an
Dear [EMAIL PROTECTED],
EMAIL PROCESSING COMPANY LOOKING FOR
EMAIL PROCESSORS IMMEDIATELY, TO SUSTAIN
EXPLOSIVE GROWTH. EARN $2,000-$6,000
(PART-TIME) AND $5,000-$10,000 (FULL TIME)
MONTHLY. FREE START-UP, NOT MLM, NO
EXPERIENCE NECESSARY.
SEND AN EMAIL TO: [EMAIL PROTECTED]
WITH SUBJECT
I have a user who is unable to upload files but I don't know where
to start with the troubleshooting process. I have this:
@copy("$img1", "/blah/$username/$img1_name")
or die("File upload didn't work.");
and they are getting the die message. All but one person are able
to upload.
Jeff
I know this is off topic, but I hope someone can point me in the right
direction. I have a network of three win98 machines and I just installed
corel linux on a fourth machine. Is there a tutorial somewhere that will
show me how to set up samba, or whatever else I need to access my network,
and th
I'm looking for a good script that implements an
annotation function--much like the manual at php.net. Anybody
know where I could find such a beast?
Daniel Goldin
[EMAIL PROTECTED]
323-225-1926
www.blue-lamp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
=
Note: The sender of this email has requested that you verify receipt of this email.
Please visit the web page below (click on the link) to verify receipt.
http://cgi.webbox.com/wbwc/webbox.asp?act=vr&ms=101724550&t=rlsbtsmefi
=
I am a nonprogrammer--or enthiusiastic amateur--looking into
various open source content management systems and finding myself
bewildered by the possibilities. Couldn't think of a better list
to pose these questions and hope I don't offend by going slightly
off topic.
First, what's the differnce
If PHP4 existed in 1995 then http://www.squirrelmail.org could of been
hotmail.com
If PHP4 existed in 1995 then http://phpwebsite.appstate.edu could of
been geocities.com
If PHP4 existed in 1995 then http://www.phpauction.org could of been
ebay.com
If PHP4 existed in 1995 then http://www.audiogala
http://www.linuxdoc.org/HOWTO/SMB-HOWTO.html
--On Friday, August 31, 2001 11:25 PM -0400 Data Driven Design
<[EMAIL PROTECTED]> wrote:
> corel linux on a fourth machine. Is there a tutorial somewhere that will
> show me how to set up samba, or whatever else I need to access my network,
> and th
I found the problem. A user was logged in under their username
with a different case (capital/small letters) and that caused a problem.
Jeff Oien
> I have a user who is unable to upload files but I don't know where
> to start with the troubleshooting process. I have this:
>
> @copy("$img1", "/bl
Hello Techies,
Is it possible to have our own global variables that can be shared
between more than one programs in php.Is there any other go to share between
programs(Other than flat files and database).Any help is appreciate.
Thanks in advance,
Senthi
thanks to everybody who responded.
carry
Carry Ian
e-mail: [EMAIL PROTECTED]
--
Get real solutions to all your problems.
http://www.salahkarindia.com - India's first advisory Portal
Your frie
Below is the result of your feedback form. It was submitted by
Wendi Ann ([EMAIL PROTECTED]) on Saturday, September 1, 2001 at 08:17:35
---
message: NEW !! http://tiphanie1295.devil.ruNEW !!!
To hell with porn sites..
Hi, Renze,
I have one doubt in HTML. I should not ask this in this group. I don't have
any alternative. Please consider this.
How to increase the length of the select box. It is comming width as very
less.
I would like to increase that width.
see the following code..
ISSUE
Issuing by
Depending on the version of PHP you're using, this might help:
Versions prior to PHP 4.0.5 do not handle HTTP redirects. Because of
this, directories must include trailing slashes.
It's from the fopen() manual page, http://www.php.net/fopen
Cheers
- -- -
It sounds like you want to set the select box to something wider than the
product names so that it always comes out the same width. There is likely
some elegant way to do this, but a quick fix would be to fill one of the
cells with a line of unprintable characters;. You could make it
the first
I think it's very simple to do it.
';
// new Type list
echo '' . $row['Type'];
}
// print out the rest of the row like :
// Place Name and Place Abbr and ther link
echo ''.$row['place name'];
echo ' jump '.$row['place abbr'].'';
//...
}
//...
?>
or maybe I
On Vie 31 Ago 2001 17:49, you wrote:
> What about going the other way? Say I have a sentence...
>
> "Hi, my name is Bob."
>
> ...and I want to search the sentence for one of the values (people) in the
> array...
>
> $people = array("Jim","John","JP","Bob");
>
> Can this be done?
Yes, split the se
$GLOBALS[substr($string, 0, 1)]
or :
$tmp = substr($string, 0, 1);
${$tmp} = 'add whatever value you want';
- Original Message -
From: Stig-Ørjan Smelror <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 9:35 AM
Subject: [PHP] help with strings...
> Hei all.
>
Not sure what your goal is here but the easiest (and most efficient) way
to get the first character of a string is :
$string = 'abcdef';
print $string{0}; // prints a
print $string{3}; // prints d
So in your case, maybe the following craziness is what you're wanting :
${$string{0}} = '
I think, the built-in session management can solve your problem:
http://www.php.net/manual/en/ref-session.php
Briefly, you should register your variable into the session and after
reloading the page you can get it back.
peculiarly:
http://www.php.net/manual/en/function-session-register.php
hth,
Therein lies the problem. The webserver, therefore your PHP script,
is probably *NOT* running with your credentials.
Larry
* Police Trainee <[EMAIL PROTECTED]> [010831 13:50]:
> the files are all owned by me, that is, my unix login.
> --- Jason Bell <[EMAIL PROTECTED]> wrote:
> > who owns the
http://www.phpbuilder.com/columns/chriskings20001128.php3
- Original Message -
From: Jason Radley <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 5:11 PM
Subject: [PHP] Cookies
> Does anyone know how to share cookies between servers.
> What I want to do is set a
On Sáb 01 Sep 2001 05:31, you wrote:
> > Here are your mistakes! This lines should be:
> >
> > $this->hinta = 0;
> > $this->määrä = 0;
> > $this->list = array(); // Initialised
> >
> > Thats because you haven't initiallized $this->list, but $list, that is
> > internal
Jack,
My apologies. Disregard my earlier example - it only works because the PHP
variable is "passed" to the javascript variable during onLoad when
everything is executed. But in your case, the page has already been sent to
the client and PHP can only be called by calling the server again.
Joha
yes, in_array($person, $people)!
however, you may take a look into the manual.
- Original Message -
From: Joseph Bannon <[EMAIL PROTECTED]>
To: PHP (E-mail) <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 5:40 PM
Subject: [PHP] array search
> I have an array of names, like below...
>
Jack,
You can either check your text field with JavaScript before submitting your
form or
after on server-side with PHP. I prefer to use JavaScript because it saves a
back
and forth.
here an example of that :
http://1ppl.free.fr/scripts/javascript16.htm
For the printing function, check that :
On Sáb 01 Sep 2001 05:18, you wrote:
> Hey, you people are great. 5 reasonable answers to a 1 silly problem
> within the hour. I'll exploit your goodwill. Here's the next one, this
> is about objects (in finnish):
>
> class Example {
>var $list; // Here I set the problem
>var $hinta;
>
Dear all
I want to ask if i want to perform two task after the user had click a
button,
1 is the task perform by PHP
2 is the task perform by JavaScript
is it possible to do so?
I'm actually fresh on JavaScript, before i would call the JavaScript, what
should i do first or what should i set befor
My apologies for the previous message not being complete (for some reason
CTRL-V occasionally sends the message in Outlook!).
Let's try this again.
If you're talking about a form, then what you can do is set the properties
for the button like so:
This won't work if you're thinking of using
Jack,
Yes this is possible. I assume you want to use a javascript onClick event
function. Then in your javasript code, just execute your PHP code. You can
run PHP code within a javascript block. For example, on my site I assign a
javascript variable to the value held in a PHP variable like this:
If you're talking about a form, then what you can do is set the properties
for the button like so:
> -Original Message-
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: August 31, 2001 2:13 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-WIN] Can PHP and Java work together?
101 - 177 of 177 matches
Mail list logo