Andy,
I think at one time I tried using double quotes but didn't get good results.
If you have time to answer, why the backslash and what the hell is "foo"?
- Original Message -
From: Andy Ladouceur <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 8:51 PM
Subject:
Hi all
Say i had text similar to below
Cairns Fine
Mareeba Fine
Innisfail Fine
I'm using the following code to grab the weather forecast for each of those
towns
$GrabURL = "forecast_map_data.txt";
$GrabStart = "PROVINCIAL CITY";
$GrabEnd = "UV ratings";
$fil
I suggest you to check www.zend.com/zend/spotlight/uploading.php
Bst Rgds
Pere
"Gerard Samuel" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok, I tried the to replicate on different browsers. Microsoft IE 5.5 ,6
> beta & Opera 5 all show this problem.
You could try fgets from the fp instead of fread. Then for each line depending
on how well structured it is you have a variety of options, but i think this
would be at least a good start:
www.php.net/preg_split - split on multiple spaces - \s+
jack
Ben Quinn wrote:
> Hi all
>
> Say i had text s
Were you using output compression with previous versions of PHP? Did it
work with images in these versions?
Also, are you seeing any errors in your Web server's error log?
Zeev
At 00:24 25-08-01, Martin Helie wrote:
>Hello everyone,
>
>I'm a newbie here, so please forgive me if this topic has
On Tue, 28 Aug 2001, Hugh Danaher wrote:
> I think at one time I tried using double quotes but didn't get good results.
> If you have time to answer, why the backslash and what the hell is "foo"?
Using the backslash escapes the double quote ... tells php to not use the
double quote (as it does t
From: Carlos Fernando Scheidecker Antunes <[EMAIL PROTECTED]>
Date: Mon, Aug 27, 2001 at 07:48:06PM -0500
Message-ID: <001201c12f5b$19d05e60$0a505ad1@Nando4>
Subject: [PHP] Multiple JavaScript Windows
> Hello All,
>
> I need to have multiple JavaScripts windows with my database PHP script.
>
>
I'm using a MySQL-database to store my session variables by using the
following code:
session_set_save_handler
"sess_open",
"sess_close",
"sess_read",
"sess_write",
"sess_destroy",
"sess_gc"
);
session.gc_probability in the php.ini file is set to 1.
In a book I read tha
Hello,
I am creating an online text editor for a magazine site and I want to be
able to apply some CSS formatting into it. The following is the script that
adds the tags where necessary, then it strips the tags by
replacing them with some tags with CSS formatting. The problem I'm
having is tha
Ermm you are missing SSL encryption. You can't just try and talk to port
443! You have to use something that talks SSL to talk to port 443.
fsockopen() does not talk SSL.
Regards
--
Jon Farmer տլ
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key ava
> Hello,
> I am trying to use the UPS Online Tools, the XML version. This requires
you
> POSTing an XML document to their Tools server, which is SSL enabled. I am
> having a problem getting this to connect in PHP (4.0.6) on my server
(Apache
> 1.3.20). In my scripts, I use
> $Socket = fsockope
var_dump before session_start won't work because session_start() uses internally
header().
The idea is that there is no use of $allowed before session_start(). The name is
session_start, so it has to be the first statement
in the script or the first after include-s/require-s. As I said it is goo
It just crossed my mind: I don't know what PHP stands for...so anyone? :)
Niklas
On Tue, 28 Aug 2001, [iso-8859-1] Niklas Lampén wrote:
> It just crossed my mind: I don't know what PHP stands for...so anyone? :)
PHP stands for ... PHP.
Adi Wibowo -- http://dewey.petra.ac.id
* Work matter: [EMAIL PROTECTED]
* Private matter : [EMAIL PROTECTED]
---
The manual says:
officially "PHP: Hypertext Preprocessor"
SED
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 28. ágúst 2001 10:38
To: Php-General
Subject: [PHP] What does PHP stand for?
It just crossed my mind: I don't know what PHP stands for...so an
Stands for PHP: Hypertext Pre-processor.
I guess they didn't like the sound of just "HP".
- seb
-Original Message-
From: Adi Wibowo [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 11:54
To: Niklas Lampén
Cc: Php-General
Subject: Re: [PHP] What does PHP stand for?
On Tue, 28 Aug 2
PHP Hypertext Preprocessor (yes, it's recursive)
HTH
Jon
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 11:38
To: Php-General
Subject: [PHP] What does PHP stand for?
It just crossed my mind: I don't know what PHP stands for...so anyone? :)
Nik
Funny that there is no meanin for the first P.
Niklas
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 13:57
To: 'Niklas Lampén'; Php-General
Subject: RE: [PHP] What does PHP stand for?
PHP Hypertext Preprocessor (yes, it's recursive)
HTH
Jon
Well I guess Rasmus is the guy who knows but as I understand it, it was
originally
Personal Home Pages
and became
PHP Hypertext Preprocessor later
Regards
jon
--
Jon Farmer Õ¿Õ¬
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send b
So PHP stands for "Personal Home Pages Hypertext Preprocessor". What a nice
name! :)
Niklas
-Original Message-
From: Jon Farmer [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 14:04
To: Niklas Lampén; Php-General
Subject: RE: [PHP] What does PHP stand for?
Well I guess Rasmus is t
Is it possible to register functions to be executed at program termination
as in unix's onexit() and pthread_cleanup_push facilities ?
D. Alvarez Arribas <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
I suggest this for the PHP ;)
Professional Hypertext Preprocessor
SED
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 28. ágúst 2001 11:11
To: Php-General
Subject: RE: [PHP] What does PHP stand for?
So PHP stands for "Personal Home Pages Hypertext Prep
Hi everyone,
Im sorry to inform you that I have decided to cancel the meeting on the 8th
of September, this is due to having very little response and it seems
pointless to have a meeting that large for literally 8 to 10 people, if
there are still people who want to meet on that day then perhaps w
Hi,
I'm creating system with user registration. I want to use sessions without cookies.
My cookies are disabled.
this is my login.php:
global $curusr, $curpass, $registered;
if (lExistUser( $usr, $pwd ) == false )// is user exist ?
{
echo $usr . $pwd;
echo " - Error";
session_destroy();
$c
From: Rosen <[EMAIL PROTECTED]>
Date: Tue, Aug 28, 2001 at 02:43:05PM +0300
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Problem using session
> Hi,
> I'm creating system with user registration. I want to use sessions without cookies.
> My cookies are disabled.
>
> this is my login.php:
>
> gl
Hello,
>From the manual:
http://www.php.net/manual/en/function.register-shutdown-function.php
py
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 7:37 AM
Subject: [PHP] cancellation cleanup handlers in PHP4?
>
> Is it possible to reg
You will find the answer to that question in the archives. Someone answer
this question a couple of days ago.
Can't remember the address of the archive tho, anyone can help me here?
py
- Original Message -
From: "Andy Ladouceur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday,
I want a function or macro to return executable code yielding syntax
preprocessing of binary trees. Because the Macro Processor seems to be
somewhat messy I though a regular function might be capable of doing the job.
e.g.
btree ('(("a", "b")("c", "d"))')
should be expanded to
hi !
I have a simmple question :)..
Lets say that I have a file called:
list.txt
and I want to take the first 10 lines from it & echo it to the browser ?
thank you
[EMAIL PROTECTED]
You can do this:
$i = 0;
$fp = fopen("list.txt", "r");
while (!feof($fp) && $i < 10) {
$i++;
$Text = fgets($fp, 4096); // Reads first 4096 characters from a row.
print "$Text\n";
};
Niklas
-Original Message-
From: Tauntz [mailto:[EMAIL PROTECTED]]
Sent: 28. elok
And one question:
Should I use "session_start()" in every php file on my site ?
Thanks,
Rosen
--
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
Oops.. Forgot to close the file. Put as last line:
fclose($fp);
Niklas
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 15:29
To: Tauntz; Php-General
Subject: RE: [PHP] How do I read the first n lines from a file?
You can do this:
$i = 0;
$fp
>Hello,
>From the manual:
>http://www.php.net/manual/en/function.register-shutdown-function.php
>
>py
Thanks (but)...
I was referring to functions that are executed in a fully functional
PHP environment including output using echo. The crippled shutdown
thing does not serve f
Hmm although the answer was "Personal Home Page Tools" and is now "Hypertext
Preprocessor" when people ask me, I say "Pre-Hypertext Processor"
Its the same meaning, and puts the letters in the correct order, so as not to
confuse people.
--
PHP General Mailing List (http://www.php.net/)
To unsub
On Tuesday 28 August 2001 02:20 pm, you wrote:
> And one question:
> Should I use "session_start()" in every php file on my site ?
>
> Thanks,
> Rosen
Yes!
--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland
[EMAIL PROTECTED]
www.sfi.ch
+41/1-824
I have dug through several forums trying to find a solution to this issue.
I have configured PHP4.0.6 with Sun's JDK1.3.1 on RH7.1. I keep receiving a
the following error message:
Fatal error: Unable to load Java Library /usr/java/jdk1.3.1/jre/lib/i386
/classic/libjvm.so, error:
/usr/java/jdk1.
yes and be carefull to put that before any aoutput is sent to the browser
(even a blank space is an output)
regards
At 14:20 28/08/01, Rosen wrote:
>And one question:
>Should I use "session_start()" in every php file on my site ?
>
>Thanks,
>Rosen
>
>
>
>
>
>--
>PHP General Mailing List (http:/
Dan,
Check the php.ini file. You need to be sure the payflow library is being
loaded. The following should be listed under extensions in your php.ini
directory:
extension=pfpro.so
extension=libpfpro.so
Also be sure that the path to the php/module file is listed as well.
Bill
--
PHP Gener
>installation for the other 400 customers using the server. Then they have to
>take the server down to install the new build. Is it any wonder that they
>just say "no"?
I have to go with the (few) extensions/librarys provided by my ISP.
If you don't run your own server, that's how it works with
m
hey.. thank you..
but is it possible to read the last lets say 10 lines from a file ?
- Original Message -
From: "Niklas Lampén" <[EMAIL PROTECTED]>
To: "Tauntz" <[EMAIL PROTECTED]>; "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 3:28 PM
Subject: RE: [PHP] How do I read
when a person write in a text area
i want to get it string and format it as it set
for example
when he write
---
how are all world
i do not see you
---
i want to store it as it set in my database
i not want it to be
how are all world i do not see you
---
Thanks
Yes. Then you have to do it a bit differently:
$file = file("list.txt"); // $file is now an array of lines in "list.txt"
for ($i = count($file); $i > count($file) - 10; $i--) {
print "$file[$i]";
};
That should do. Didn't try it thou. That prints the lines in order last,
last-1, last-2
I was using ob_gzhandler with PHP4.0.4, and everything was fine. I was using
an older version of gd and zlib, though (I think 1.8.3 and 1.1.2,
respectively -- but I'm not certain).
There are no errors in the apache log.
-Original Message-
From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
Sen
You might be better off using the file() function which reads a file into an
array, then you can use the indexes to get whatever lines you want
http://www.php.net/manual/en/function.file.php
Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117
http://www.datadrivendesign.com
Phone:
Does anyone know of a good listserv written in PHP?
Thanks!
-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
I use mcrypt to encrypt passwords, I saw somewhere international users had
trouble with the high ascii. is the any functions that can convert the high
ascii to hex or something ?
Thanks
Randy
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
can't you just explode the string with "\n" as the separator? Look up
explode function at php.net.
- seb
-Original Message-
From: Alawi Albaity [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 14:06
To: [EMAIL PROTECTED]
Subject: [PHP] How can I Get Text as it Set
when a person write i
On Tue, 28 Aug 2001 16:38:14 +1000, "Jason Brooke" <[EMAIL PROTECTED]> wrote:
>> I use the PHP virtual() function to call a CGI script, and that works
>> fine. But I need to prevent the CGI from being executed directly, in
>> case someone tries to access its URL.
>>
>> Since HTTP_REFERER is unre
i try to install php 4.0.6 on a linux redhat 6.0 with apache 1.3.20 and
apxs.
when i execute the make command i have then following message
make[1]: Entering directory `/usr/local/php-4.0.6'
/bin/sh /usr/local/php-4.0.6/libtool --silent --mode=link
gcc -I. -I/usr/local/php-4.0.6/ -I/usr/local/p
Hi,
how can I tell to refresh the main frame ( index.php ) from some subframe
I use frames ) ?
Thanks,
Rosen
--
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-m
if you're using apache, something along the lines of the following untested
directives should prevent anyone but the localhost (which is where your
virtual() calls should be coming from) from accessing the cgi's via http
order deny, allow
deny from all
allow from localhost
> Thanks for the ide
If you are on a unix box you might want to use the tail command... if you
use exec() the output will be in an array...
--
Jon Farmer Õ?Õ?
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]
-Original
The php manual mentions about compiling php with Open API headers for Ingres. We are
using the commercial version of Ingres II for NT. Is this a different animal from
Ingres for Linux or should I contact Computer Associates to get those headers? How do
I get php to access directly to Ingres II
> I use mcrypt to encrypt passwords, I saw somewhere international users
had
> trouble with the high ascii. is the any functions that can convert the
high
> ascii to hex or something ?
>
> Thanks
>
> Randy
Have a squiz here:
http://www.php.net/manual/en/ref.strings.php
--
PHP General Mail
From: Rosen <[EMAIL PROTECTED]>
Date: Tue, Aug 28, 2001 at 04:29:05PM +0300
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Refresh Main frame
> Hi,
> how can I tell to refresh the main frame ( index.php ) from some subframe
> I use frames ) ?
>
> Thanks,
> Rosen
window.parent.
I looked at those and still don't know which one i should use any ideas??
-Original Message-
From: Jason Brooke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 6:49 AM
To: Power Programmer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mcrypt
> I use mcrypt to encrypt passwords,
On Tue, 28 Aug 2001 23:38:30 +1000, "Jason Brooke" <[EMAIL PROTECTED]> wrote:
>if you're using apache, something along the lines of the following untested
>directives should prevent anyone but the localhost (which is where your
>virtual() calls should be coming from) from accessing the cgi's via
Rasmus wrote
> This is solved by people who roll distributions. Debian, Mandrake,
> RedHat, FreeBSD, etc. It is very simple to add new features to an
> existing PHP setup through these binary distributions of PHP, even for
> newbies. Once you know your way around PHP and its build system, you
Hi all
I'm facing the Problem that lots of my users are too stupid to write
their email correct.
When i mail them with php a return email is send to me by their
mailserver, which
results in LOTS of mail for the root account.
Can i get sendmail to put the returned emails in a file? so that i can
Can I send params to main frame ?
Thanks,
Rosen
"* R&Ze:" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> From: Rosen <[EMAIL PROTECTED]>
> Date: Tue, Aug 28, 2001 at 04:29:05PM +0300
> Message-ID: <[EMAIL PROTECTED]>
> Subject: [PHP] Refresh Main frame
>
>
Well on submission of the email you could try contacting their mail server
and pretend to a have a mail for them using SMTP.
If you get a "recipient ok" or similar message.. ,thre is a code for it,
then at least the server accepts mail for that address. You might be better
off croning this rather
Well to start I am lazy(so pls don't tell me to go make everything) :D
Now I am after Scripts and/or Functions that would be handy to use on at a
LAN, or on a Website Related to LANs...here are just a few things I have
thought up...
- Game Related
- Game Stats
- Clan Management
- Sharing(L
Yes but you would have to dynamically build the javascript statement up
using php with the query string you wanted and use
window.parent..location.href="index.php?">
--
Jon Farmer Õ¿Õ¬
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, se
> We don't define any virtual hosts in httpd.conf; instead, we use a
> custom handler hooked into post-read-request. So I won't be able to
> define "/path/to/usr/cgi" in httpd.conf.
>
> But if that concept will work in user .htaccess files, it would be an
> improvement over my current techniques.
> Look at it from their point of view. Say, as a customer, you want to use
> library X. The ISP looks around and eventually find it lives on a personal
> site in Greece or Hungary. Not very confidence inspiring. The ftp on this
> site is broken, so they email the author and wait a couple of days
From: Rosen <[EMAIL PROTECTED]>
Date: Tue, Aug 28, 2001 at 05:03:50PM +0300
Message-ID: <[EMAIL PROTECTED]>
Subject: Re: [PHP] Refresh Main frame
> Can I send params to main frame ?
>
> Thanks,
> Rosen
Well... yes, you can. You'll have to use a different kind of
construction though:
wi
> Now I am after Scripts and/or Functions that would be handy to use on at a
> LAN, or on a Website Related to LANs...here are just a few things I have
> thought up...
Get thy lazy behind to Freshmeat and Sourceforge. ;)
http://www.freshmeat.net
http://sourceforge.net/
Enjoy!
- Erik
--
PHP
any hint where to find the perl mod or some php-code that
contacts mailservers like you described?
> -Ursprüngliche Nachricht-
> Von: Jon Farmer [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. August 2001 16:14
> An: Sebastian Stadtlich; 'Php-General (E-Mail)
> Betreff: RE: [PHP] PHP
Does someone know of a PHP-function to reformat Sources of C-like langs?
I need to generate syntactically uniform Javascripts independent of the
specific user input.
Thanks,
D. Alvarez Arribas <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
I have installed PHP CGI 4.0 on my Win 98 machine with
PWS and tried this script that I put in the wwwroot
directory and called test.php3:
I called the page from my browser like this:
http://localhost/test.php3
The page came up, but was blank. I gave the wwwroot
dir read,exe,script
> Something which seems to not be a viable option for most things is SO
> files. For some reason, the only "real" way (documented) to get
> things into PHP is to compile them all into PHP. I've used the pdflib
> SO file and just used dl() to bring it in - works like a champ. Pity I
> can't do th
Hi,
I would like to know how to use the mailto function calling the mail
client and at the same time having the subject filled with something.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
T
For perl look at
http://www.cpan.org/modules/by-category/19_Mail_and_Usenet_News/Mail/Mail-Ch
eckUser-1.02.readme
As for php you would need to open a socket connection.. My advice would be
to use the perl module and call a perl script from php.
Regards
Jon
--
Jon Farmer Õ¿Õ¬
Systems Programm
Hi,
I would like to know how to use the mailto function calling the mail
client and most importantly having the subject filled with something.
Etc. Subject: abc inquiry
Thank you
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Arr...Might as well search Sourceforge and Freshmeat :D hehe But hopfully
posting here will get people to step out, and might hand out things that
have been working on similar...I know there was a person on here before,
looking for a thing to browse computers shares thro PHP...
- James "ReD
Well, if you're just doing this with an anchor tag:
mailto:[EMAIL PROTECTED]?subject=TheSubject";>Mail me
If you're looking for php's mail function, look at www.php.net.
Tyler Longren
[EMAIL PROTECTED]
Captain Jack Communications
www.captainjack.com
- Original Message -
From: "Mark Lo"
Rasmus Lerdorf wrote:
>>Look at it from their point of view. Say, as a customer, you want to use
>>library X. The ISP looks around and eventually find it lives on a personal
>>site in Greece or Hungary. Not very confidence inspiring. The ftp on this
>>site is broken, so they email the author a
How do I get the file size of a file on my server using PHP?
Thanks,
Joseph
--
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]
Hi All,
I have a php/mysql authentication page where 10 people can login. Each
person has thier own page that they update daily. What would be the best
way to take them to their update area? I thought of cookies but that
requires them haveing cookies turned on.
TIA
Gary
--
PHP General Mai
Rasmus Lerdorf wrote:
>>Something which seems to not be a viable option for most things is SO
>>files. For some reason, the only "real" way (documented) to get
>>things into PHP is to compile them all into PHP. I've used the pdflib
>>SO file and just used dl() to bring it in - works like a ch
filesize()
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
From: "Joseph Bannon" <[EMAIL PROTECTED]>
To: "PHP (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 5:37 PM
Subject: [PHP] How do I get the file size of a file on my server?
> How d
At 07:27 AM 8/28/01 -0700, you wrote:
>I have installed PHP CGI 4.0 on my Win 98 machine with
>PWS and tried this script that I put in the wwwroot
>directory and called test.php3:
>
>I called the page from my browser like this:
>
>http://localhost/test.php3
Why not just name the page test.php?
It stands for freedom of choice, liberty, mom and apple pie,
as far I can tell, though probably not in that order.
Niklas Lampén wrote:
>It just crossed my mind: I don't know what PHP stands for...so anyone? :)
>
>
>Niklas
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
$file_size = filesize();
if ($file_size >= 1073741824) {
$file_size = round($file_size / 1073741824 * 100) / 100 . "g";
} elseif ($file_size >= 1048576) {
$file_size = round($file_size / 1048576 * 100) / 100 . "m";
} elseif ($file_size >= 1024) {
$file_size = round($file_size / 1024 * 100) / 100 .
Read about SESSIONs in PHP4, they are flexible. If cookies are set off then the
session_id is added transparantly to every URL on
the parsed page(must be switched on in php.ini, and all hrefs have to be relative like
'/cgi-bin/some_script.php' , not
'http://www.server.com/cgi-bin/some_script.php
> Hi,
>
>I would like to know how to use the mailto function calling the
mail
> client and at the same time having the subject filled with something.
This is not a php question, it's html and easily answered by looking at a
html reference, but the answer is:
mailto:user@host?subject=The S
I run a community website with a bulletin board which I wrote in PHP. Each
member gets a profile and can submit a picture with it. However, those
members with pictures on geocites are having problems. Seems their server
denies remote hosts. Is there a way with PHP to tell their server to let
image
Hi Friends,
I am kind of new to PHP.
I am planning to install PHP4 on Windows NT with IIS as web server and
Oracle as database. Could you please help me to understand some of the
following.
What web server is better on NT with PHP?
What PHP installation mode performs better i.e. CGI, SAPI Modu
I first tried unixODBC in order to get ODBC functionality on my FreeBSD 4.2
box with PHP 4.0.3 on Apache 1.3.14. It didn't work too well, and I kept
getting an error about undefined symbols like pthread_mutex_init or
something when trying to run command-line sample applications. So someone
suggest
Hello,
I was just wondering if there was a simple function like str_con or
something like that to concatenate strings?
--
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 administrat
> What web server is better on NT with PHP?
I'm sure everyone has their own opinion, but if you're using NT, then you're
probably just as well using IIS until Apache 2.0 has a final release out.
> What PHP installation mode performs better i.e. CGI, SAPI
> Module , build or
> not build etc ?
$string0 = "hello";
$string1 = "goodbye";
$string2 = $string0 . " and " . $string1;
result:$string2 = "hello and goodbye"
- seb
-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 16:28
To: [EMAIL PROTECTED]
Subject: [PHP] concatenate?
Hel
So require them to have cookies turned on. If it's YOUR system, you
can require whatever you want. If this is something for your company,
presumably
it's a business tool of some sort, and you can then require them to do
whatever
you need to go get the job done.
Gary wrote:
> Hi All,
> I h
Make a login screen that can save cookies (so they don't have to type
username again) and keep a Session Varible of their username/password so u
know if they are Auth to enter certain areas...
This way if they don't have cookies they can login anyway... but if they do
allow cookies then it saves
Hi,
Can anyone tell me why I have a parse error here?
I'm including this file, which is 16 lines, but the error being thrown by
the including page reports a parse error in this file on line 17 ???:
cheers,
jaxon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
You need to close off this bit of code with a brace '}':
if (!isset($page_id))
{
Kirk
> -Original Message-
> From: Jaxon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] parse error AFTER end of included file??
>
>
>
doh!
thanks for spotting that Kirk!
cheers,
j
> -Original Message-
> From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 11:49 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] parse error AFTER end of included file??
>
>
> You need to close off this bit o
Jaxon,
do you have a line of white space after your closing tag?
Anyway, this looks fishy to me:
if (!isset($page_id))
{
$sql="select page_id from table where fieldname = $value";
$link_id = mysql_connect($host, $usr, $pass) or die (mysql_error());
mysql_select_d
On Wed, 29 Aug 2001 00:16:10 +1000, "Jason Brooke" <[EMAIL PROTECTED]> wrote:
>It will work in .htaccess if you enable it, or you might even be able to use
>something like:
>
>
>(untested again)
After testing this I see that:
Apache uses the IP address of the remote host to determine whether t
Hi
Why doesn't unset($this) work inside a instance of a class?
I have found a workaround, but it isn't so smart...
Laus Brandt
--
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 ad
1 - 100 of 209 matches
Mail list logo