Jochen Kaechelin wrote:
> Anyone made good experiences
> with the ADODB Library for PHP4?
Yes. I use it with Oracle8 with any bad experience. It's fast
( except select_limit ) and brings some cool functions like generating
menus.
Jarry
--
PHP General Mailing List (http://www.php.net/)
To
Hi Chris,
Thanks for the speedy reply. In the GD section here
http://www.bsch.au.com/admin/phpinfo.php
it says "GIF support - enabled"
I'm starting to wonder though if PHP can do this? I looked up the
imagecolourtransparent function on the PHP site and it says:
int imagecolortransparent (int i
Hi Andy,
I don't need to use ImageCreateTrueColor() (or do I?). I just want to read a
PNG24, write a text to it and save. I don't have GD 2.0.1. And again: I can
read PNG24, but when I save it with ImagePNG($fileName), GD writes a PNG8
:-(
adu
"Andrew Chase" <[EMAIL PROTECTED]> wrote
> Make sur
Depends on what Chinese charset you want.
Simplified Chinese or Traditional.
GB or BIG5
Use a meta content type for the charset type
for simplified
for traditional
eg
Yahoo! China - NA?¢FOD1u
¦n¤F??
Lawrence.
-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED
It doesn't look like you'll be able to use GD, as GIF support was dropped in
1.6 and JPEG support was only added in 1.8. You'd have to experiment with
ImageMagick, or another command-line tool independent of PHP.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Hi all
I've been trying to make a script that imports a GIF image from an external
server (i have permission to do this, see below) and designates a certain
colour transparent for some time now and i'm not having much luck. Can
anyone help or provide a script that does this?
The images i'm usin
Is it possible to create images on the fly, if my phpinfo says nothing about
GD? What I know is that ImageCreateFromPNG() says it's undefined.
If not, what do I need to install to php to make it possible?
Niklas Lampén
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
help,
I am trying to set up a .jpg file to graph the earnings per year of a company. I can
generate a log-normal graph, can get it to display the earnings per year as circles on
the graph, but I can't get the " if () " statement to work. I know I am setting two
of the variables in the if st
Hi,
I have a dynamic multiple select where data is added to using the JavaScript
found here:
http://javascript.internet.com/forms/menu-swapper.html
I have a question: How do I read all the values into an array or something
else? My select has the NAME "read".
TIA,
Raphael
--
PHP General M
thanks dave!
--
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 just come across and odd behaviour with the register_globals and
session handling. The problem is that when I set the register globals to
on I cannot access the session_variables through the associative array
HTTP_SESSION_VARS. The manual says explicitly that with track_vars and
registe
P.S:
just as in this email :-)
Maxim Maletsky
-Original Message-
From: Maxim Maletsky
Sent: Tuesday, August 21, 2001 3:02 PM
To: 'Mark Lo'; [EMAIL PROTECTED]
Subject: RE: [PHP] charset
Chinese charset.
Maxim Maletsky
-Original Message-
From: Mark Lo [mailto:[EMAIL PROTECT
Chinese charset.
Maxim Maletsky
-Original Message-
From: Mark Lo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 3:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] charset
Hi,
What could be wrong if I don't specific the CHARSET in my webpage. If
my webpage will display bot
Hi,
What could be wrong if I don't specific the CHARSET in my webpage. If
my webpage will display both chinese and english, then what charset should i
use.
Thank you
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
No, they weren't in quotes strangely. Adding quotes removes parsing error.
Thanks David
--
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]
On Tue, 21 Aug 2001 14:50, Raphael Pirker wrote:
> What does the ending "0700" mean in this line? (please don't refer me
> to the manual, I read through it...) are these the user-permissions as
> you specify them in chmod?
>
> mkdir ("/path/to/my/dir", 0700);
Yes - it's the mode of access to the
On Tue, 21 Aug 2001 14:22, -:-Doigy-:- wrote:
> Hi Folks,
>
> In a switch, I have a load of 3 letter prefixes I'm sorting by. They
> are the truncated first 3 letters of alpha-numeric product codes which
> gives the category of the product.
> Some codes start with MB- for instance, and this cause
What does the ending "0700" mean in this line? (please don't refer me to the
manual, I read through it...) are these the user-permissions as you specify
them in chmod?
mkdir ("/path/to/my/dir", 0700);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
> Some codes start with MB- for instance, and this causes a
> parsing error.
I don't see how this would cause a parse error? Can you show
us an example?
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Hi Folks,
In a switch, I have a load of 3 letter prefixes I'm sorting by. They are
the truncated first 3 letters of alpha-numeric product codes which gives the
category of the product.
Some codes start with MB- for instance, and this causes a parsing error.
Can I fix this without changing the fa
Great work, Nick.
keep it this way!
Maxim Maletsky
-Original Message-
From: PHP Accelerator [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 12:00 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Free PHP runtime Accelerator for Linux available
Right, and nei
FOR IMMEDIATE RELEASE
Contact: [EMAIL PROTECTED]
August 15, 2001
GHOSTRIDERX RIDES FLOWLAB'S
DEEP CA
This is what I use
file://DIR to start looking in
$basedir = "C:/Inetpub/wwwroot/_ActiveClientFiles/GLS/portfolio/";
file://working DIR or the dir to change to.
$wdir = "web/";
// list of DIRs var
$dirlist;
$filelist;
$add_dir ;
/
"Getting Started with PHP/Ming"
http://www.phpbuilder.com/columns/suyoto20010809.php3
--
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]
> Just something I havent been able to sort out in the archives, but what im
> wanting to do it this. Do a listing of all files in a directory, and load
> up an array with each returned filename.
$files_dir = "/tmp";
chdir($files_dir);
$dir_handle = @opendir($files_dir) or die("Unable to open $
It is my apologise to all member of the list about the question I have been asking
about flash. I will make sure to be careful next time.
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"
Dear Lawrence
Thank you very much for this. It is very kind of you.
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 10:15 PM
Subject: RE: [PHP] php and flash
> There a
> I thought this is supposed to be nicer community, anyway, I do not mean to
> be disturbed but I am really keen to know about this issue and forgive me
> for not know enough as much as you do, I guess it is my fault then.
> Well, I will stop this matter now as I do not think this is
> worth my
On Tue, 21 Aug 2001 12:35, Chris Aitken wrote:
> Hey all,
>
> Just something I havent been able to sort out in the archives, but what
> im wanting to do it this. Do a listing of all files in a directory, and
> load up an array with each returned filename.
>
> Am I pissing into a windy pipe dream o
Ray Clouse wrote:
> When the user clicks on a link that has to gunzip a very large file, I
> want a popup to say "Working..." while the file is uncompressing.
> Then, when the file is uncompressed, I want the "Working..." popup to
> close itself and then the parent window to load a new URL (where
I thought this is supposed to be nicer community, anyway, I do not mean to
be disturbed but I am really keen to know about this issue and forgive me
for not know enough as much as you do, I guess it is my fault then.
Well, I will stop this matter now as I do not think this is worth my time
on deb
STOP asking this question again and again.
--
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 all,
Just something I havent been able to sort out in the archives, but what im
wanting to do it this. Do a listing of all files in a directory, and load
up an array with each returned filename.
Am I pissing into a windy pipe dream or is there a simple solution for this ?
Cheers
Chris
Right, and neither is the accelerator at the moment, and it may very well
never be, although there's no particular reason for that. But the scripting
engine is as it's part of PHP, and that's what I explored in order to write
the accelerator.
And now that I've studied the engine pretty intense
I have been playing with the idea of making some application backend
services using pcntl (for singaling and fork)+ sysvsem's (for
synchronisation).
However while reading thru the sysvsem source code, i noticed the
behaviour of the semaphores in PHP is basicly as a 'lock' (as one would
use a
Hi people
Is there anyone know where can I find something to study more about how to make
dynamic content in flash using php and mySql?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"
Here is a an extract from some code...
Note that if you want to read more then
one thing from the user, you better not
close STDIN, cause you can only open it once.
Here's the code it may not work without
some fixing... dunno:
-? php
function Readln(&$INPUT){
// $fp = fopen("php://stdin
Hi. Yes, it caches the result of compiling scripts and loads the compiled
code on subsequent runs, thus bypassing the parsing of source code entirely
- unless the source code has changed and the compiled code is stale.
Nick
>From: Daniel Adams <[EMAIL PROTECTED]>
>To: PHP Accelerator <[EMAIL
It appears as if the Zend Optimizer is distributed only in binary format.
They have versions for Linux on i386 and versions for Solaris running on a
Sparc Ultra processor.
However, I'm running Linux RedHat on a Ultra Sparc processor.
Is there any way I can install Zend Optimizer?
Robert Schultz
Is this different from the zend optimizer?
- Dan
On Tue, 21 Aug 2001, PHP Accelerator wrote:
> All,
>
> After a frantic week of development and digging into the bowels of the PHP
> scripting engine, I've produced an initial version of a run time
> accelerator. This works for Linux only,
All,
After a frantic week of development and digging into the bowels of the PHP
scripting engine, I've produced an initial version of a run time
accelerator. This works for Linux only, and the current version was built
with RedHat 7.0.1, PHP 4.0.6, and Apache 1.3.12 and 1.3.20. This is a share
Jason gave you a better way to do so, but if you want a "readable one", then
this code might work for you:
=($to-$from)) {
Return $rand;
// Doesn't make much sense, does it?
}
while(True) {
$tmp_num = rand($from, $to);
if($keys>sizeof($rand)) {
if(!in_array
> I'm writing a web survey in php and trying to set session timeouts. I have
> a main script that starts the session and displays the pages. Is there a
> way I can make the session timeout if they idle for too long?
Check the php.ini file, it has some settings to set the session timeout.
Other t
my favorite way "to session" people is by sticking an MD5 hash string to
every browser (except the once having it already) as a cookie valid for the
next 32 years or so. Then I log their actions in a database. This way I can
practically do any kind of checks as long as user accepts cookies, other
> OK I want to pick 5 random numbers from 1 to 200. Easy.
> They must all be different. Not so easy.
This should work well enough to give you the general idea ... sorry if it
doesn't, I grabbed some old code and modified it so I didn't embarrass
myself too much by posting spaghetti code. :
OK I want to pick 5 random numbers from 1 to 200. Easy. They must all be
different. Not so easy.
And I don't want to use shuffle because of the comments on php.net about it.
- seb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
> i'm building a registration system, and i want to strip all funky
> character map symbols from the username as well. i know strip_tags()
> gets rid of html, but how do i get rid of them?? :(
>
> i just want simple a-z, A-Z and 0-9 allowed in the username.
You'll want an ereg_replace:
// Str
hi all!
i'm building a registration system, and i want to strip all funky
character map symbols from the username as well. i know strip_tags()
gets rid of html, but how do i get rid of them?? :(
i just want simple a-z, A-Z and 0-9 allowed in the username.
please help!!
sunny
_
I have done something like this.
For the site I am working on, the user must log on. At the logon screen I
check
if(getenv("HTTPS")!="on")
{
header ("Location: https://logon_screen";);
}
every page has an include that checks $HTTPS as part of the sessions and
validation. If https!="on" then it k
> well i just compiled php again and that still didn't solve
> the problem... i guess i just need to keep recompiling php until i
> get that variable set to the right thing?
How about, send us your ./configure line and we might be able to tell
what's wrong with it instead of guessing?
This inf
I seem to be having a major problem with Apache 1.3.20 (Win32), PHP 4.0.6
and mySQL server 3.23.33 running on a Windows 98 SE machine.
I use a single mySQL persistant connection through a globals.php3 file, it
doesn't seem to be working as expected though, here is a copy of me NETSTATS
and you'll
Hi,
I'm writing a web survey in php and trying to set session timeouts. I have
a main script that starts the session and displays the pages. Is there a
way I can make the session timeout if they idle for too long?
Thanks,
Nigel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
is there a source for further information
connecting to databases with ADODB for PHP4?
I only know http://php.weblogs.com/ADODB
--
WA-P : Jochen Kaechelin
Programmierung - Beratung - Hosting
Stuttgarter Strasse 3, D-73033 Göppingen
Tel. 07161 - 92 95 94, Fax 92 95 98
--
PHP General Mailing L
Of late I've been reusing variable in my code, for
example.
$string = "when in the course of human events";
[ additional lines of code ]
$string = explode(" ", $string);
[ additional lines of code ]
$string=implode("|",$string);
{more code]
$string=substr($string,x,y);
on and on, but st
if you just want to check for the existence of the server
a ping command is sufficient,
if you want to have extended info on the server you should connect to it
using standard ftp
commands(http://www.ualberta.ca/CNS/HELP/filetran/ftp-commands.html)
opening a socket and...
regards
At 01:19 21/
I'm trying to develop an application that uses "search engine
friendly" URLs, by reading everything after test.php as the variables
necessary to display the requested dynamic content. I'm encountering
the following strange results with $PATH_INFO.
Scenario 1:
Running Apache 1.3.20 (SAPI) on WI
Hello.
Is that possible to resolve dns name and all script don't pause while no
rev-dns name is available? [gethostbyaddr()]
Regards
kras
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
> > header("Location:index.php");
header("Location: login.php");
--
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]
Ok,
I know most of you integrate your code into some for of e-commerce to accept
credit cards. I want to know what your favorite credit card gateway
(authorization) provider is.
Preferably, I am looking for a gateway that allows you to connect to their
server directly through the code, via socke
This is a shot in the dark since I've never even done PHP redirection, but
did you try using absolute system pathname (eg. /home/httpd/html/index.php),
or absolute web address (eg. http://www.yoursite.com/index.php)?
> From: [EMAIL PROTECTED] (Jay Paulson)
> Reply-To: "Jay Paulson" <[EMAIL PROTEC
> I have created a predictionscompetition and some code counts te total score of
> a match of a person.
> On the screen it workes, but in de database it goes wrong. Each person gets
> the total of the last person. There must be something wrong with the update
> statement.
> I hope someone can hel
Hello everyone-
I have a slight problem.. I'm running php 4.0.6 on RedHat 7.1 and I run my
script and it hit's:
header("Location:index.php");
well the thing is once it hits that line in my script and just fails,
however i don't get any type of parse error the browser just says 404 error
page no
you can actually download some php stuff for free.. try phpbuilder.com or
phpclass.com there's a lot out there you just have to find it.. :)
jay
- Original Message -
From: "Eugene Yi (InfoSpace Inc)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 5:10 PM
Subjec
At 03:03 PM 8/20/01 -0700, CC Zona wrote:
>To test for a valid http address, I open a socket, pass a HEAD or GET
>request, and look for a status code in the response headers. What should I
>send to an FTP server to do a similar test?
Why not just try and connect to it?
--
PHP General Mailing
Anyone recommands any company which can build an Internet shopping mall?
Thanks.
To test for a valid http address, I open a socket, pass a HEAD or GET
request, and look for a status code in the response headers. What should I
send to an FTP server to do a similar test?
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
How do I call on a switch from within an html-embedded
page?
Say I have a large php script that first verifies a
login, then allows templates for INSERTING, UPDATING,
& DELETING various records-- I need to have separate
templates load for each set of steps, but I only have
the vaguest of id
No, I'm just using PHP_AUTH_USER and PHP_AUTH PW and i am trying to
logout... The session_destroy() is not working.
--
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,
Hello,
I have created a predictionscompetition and some code counts te total score of a match
of a person.
On the screen it workes, but in de database it goes wrong. Each person gets the total
of the last person. There must be something wrong with the update statement.
I hope someone can help m
I'm writing a script to post/validate payments to www.clickbank.com
They provide a method for passing encrypted data to them, and if you get it
back on your "thank you" page, you know 100% that the customer has paid.
Unfortunately, the validation routines are only available in Perl and C...
a
> -Original Message-
> From: Ratko [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 20, 2001 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Is this a bug?
>
>
> Please try this:
> echo "996448234192168122"=="996448234192168125";
> ?>
>
> I get "true" as a result. How's that possibl
Hello
I have Following code
function updateHitCounter($id,$PHPSESSID,$type){
$flag=$this->validateSession($PHPSESSID);
if($flag==1){
include("admin/config.inc.php");
$connection = mysql_connect("$host","$username","$password");
if ($connection == false){
echo mysql_errno().": ".mysql_error()."";
I am having a little problem with Regular Expressions
In the function below I am trying to make sure only these characters
are being used in the hostname. If the hostname contains
letters,digits,periods and minus signs then it is fine and we can
let the process continue. If it has unders
Make sure you have GD 2.0.1 and PHP 4.0.6 or later for creating true-color
PNGs, per the
manual:
http://php.net/manual/en/function.imagecreatetruecolor.php
-Andy
> -Original Message-
> From: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]]
>
> Is there any way to tell ImagePNG() to create
I realize that this isn't a PHP issue, but I'd like find out they
why's/wherefore's of this:
The W3C HTM 4x spec(s) say that when using the file type on a form
input element, "User agents may use the value of the value attribute
as the initial file name."
I can't get Mozilla, Netscape, nor IE to
Just out of curiosity, is there anyone here that is using phpwebhosting.com
to host their site? Due to ALL the problems with the DSL in my area, I am
thinking about not hosting my own site anymore and phpwebhosting.com seems
to be what I need, I am just looking for some input about any problems t
Hi from a recent PHP convert,
Having a heck of a time declaring and accessing 2 dimensional info in an array.
any input on where to start looking for the answer would be greatly appreciated.
I want to have a base array of 5 elements. The first 4 elements are variables, and the
fifth is an array
Help me!
I'm working with sessions and having some difficulty. I have my
session_register(variable) at the top of page 1 and page 2.
I use the session_unregister(variable) at the bottom of page 2, everything
seems to work fine at this point. The problem is,
sometimes the user needs to visit pag
$file = basename ($path);
$file = $file.php3;
Jeremy Morano wrote:
> Hello,
>
> Can someone please show me how to use basename() correctly?
> This is what I am doing:
>
> $file = basename ($path);
> $file = basename ($path,".php3");
>
> This is the error I'm gettig:
>
> Warning: Wrong paramet
INSERT [LOW_PRIORITY | DELAYED] [IGNORE]
[INTO] tbl_name [(col_name,...)]
VALUES (expression,...),(...),...
or INSERT [LOW_PRIORITY | DELAYED] [IGNORE]
[INTO] tbl_name [(col_name,...)]
SELECT ...
or INSERT [LOW_PRIORITY | DELAYED] [IGNORE]
[INTO] tbl_name
Read in the mySQL manual at
/mysql_manual_split/manual-split/manual_Reference.html#CREATE_TABLE
etc
ie.
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,...)]
[table_options] [select_statement]
ALTER [IGNORE] TABLE tbl_name alter_spec [, alter_spec ...]
and more ...
Joha
Make sure you pass fsockopen() the optional timeout parameter, and that
the timeout is less than the maximum script execution time.
See http://www.php.net/manual/en/function.fsockopen.php
Ben
On Monday, August 20, 2001, at 12:49 PM, brian ellis wrote:
> When I use the fsockopen command onto a
header("Location: http://location.com/blah.php";);
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 13:56:25 -0500
"RoyW" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am sure there is an easy way to do this...
>
> But when my script is done do
http://www.php.net/manual/en/function.header.php
> Hi,
>
> I am sure there is an easy way to do this...
>
> But when my script is done doing whatever I want it to do - RATHER than
> print text and all to a page, I want the browser (within the same window) to
> go to a specific URL
>
> Can this
Hi,
I am sure there is an easy way to do this...
But when my script is done doing whatever I want it to do - RATHER than
print text and all to a page, I want the browser (within the same window) to
go to a specific URL
Can this be done - let's say for example to: http://www.yahoo.com
Thanks!
you are right.
I tested with 99644xxx and 964 It printed A.
However, if you are down to 644xxx is prints B which is
correct. Perhaps a limitation of 16 digits.
?
good catch
--- Ratko <[EMAIL PROTECTED]> wrote:
> Please try this:
> echo "996448234192168122"=="996448234192168125";
> ?>
>
I don't believe that can be it. I have forms working under Netscape 4+ all day
with no problems, all unnamed. I would bet it's an html issue related to the
editor you're using to create the forms. I'd like to see the html that fails.
Steve Lawson wrote:
> Try giving the form a name?
>
> I normal
Please try this:
I get "true" as a result. How's that possible?
But if I do:
echo "996448234192168122"==="996448234192168125";
then I get "false" as expected.
php 4.0.6, Debian Potatoe Linux.
Does this happen only on my computer?
thanks,
ratko
--
PHP General Mailing List (http://www.php.n
Hello,
I have read http://www.php.net/manual/en/function.setcookie.php and did not
find out a quick solution on how
to set a cookie that will NEVER expires ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
Thank you for your time
I did not even look at the fopen... DUH
Sorry about not researching properly...
At 11:14 AM 8/20/01 -0700, Anton Stroganov wrote:
>when you open the file with fopen(), use the 'a' (writing only) or 'a+'
>(reading and writing) arguments
>ie:
>int fopen ("somefile.txt"
when you open the file with fopen(), use the 'a' (writing only) or 'a+'
(reading and writing) arguments
ie:
int fopen ("somefile.txt", "a");
"...
*'a' - Open for writing only; place the file pointer at the end of the
file.
If the file does not exist, attempt to create it.
*'a+' - Op
You could use str_replace().
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 20:15:54 +0200
"Jens" <[EMAIL PROTECTED]> wrote:
> When I use Javascript with PHP i run into one problem. When I get the
> data i
> need from the database it oft
use nl2br()
http://www.php.net/nl2br
or, alternatively, use a regex to strip out the newlines
hope this helps.
- Original Message -
From: Jens <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 11:15
Subject: [PHP] converting str with \n to one line str??
> When
When I use Javascript with PHP i run into one problem. When I get the data i
need from the database it often has a lot of and \n (new lines) in it.
The are no problem when converting a string to a Javascript string, but
the \n are. The string has to be all in one line.
example:
var temp =
Hello all,
Is is possible to just append to the end of a file using
fwrite??? Currently I am reading the contents for the file into an array
then add to the array what I want and rewrite the file from the array...
And well that is just silly... How else would I do this??
--
PHP General Ma
Hello,
Can someone please show me how to use basename() correctly?
This is what I am doing:
$file = basename ($path);
$file = basename ($path,".php3");
This is the error I'm gettig:
Warning: Wrong parameter count for basename() in
/home/virtual/ppcu/home/httpd/html/jeremy/stats4.php on line 43
Hello,
what he explained with GetVariable works fine. I just want to add that you
do the opposite,
sending value to flash via php, by echoing the querystring in a php file and
use LoadVariable
to read the value and display it in the flash movie.
py
- Original Message -
From: "Tribun" <
When I use the fsockopen command onto an IP address that does not
exist, the page will freeze until it's execution time is up. Right now
I have it executing the external ping command and reading the results
from that. Does anyone have a better idea using maybe a OS-independent
scanner or some
on 8/20/01 12:07 PM, [EMAIL PROTECTED] wrote:
This gave the same result: it launches the helper app.
Please help!!
Regards.
dm
> Have you tried this?
>
> header("Content-Type: application/x-octet-stream");
> header("Content-Description: MP3 file");
>
> David Minor wrote:
>
>> Can anybody t
I'm trying to get a "working..." informational dialog or window going
with my PHP page but I'm not getting anywhere. Here's the situation:
When the user clicks on a link that has to gunzip a very large file, I
want a popup to say "Working..." while the file is uncompressing.
Then, when the file
1 - 100 of 175 matches
Mail list logo