You must not have searched to hard on the site,
http://www.php.net/file_exists
Keith
On Wed, 14 Mar 2001, Kenneth R Zink II wrote:
How would I go about checking to see if a file exist from php?
I didn't find anything on php.net when I did a search for exist.
basically, I'm trying to
Hi,
I am trying to send Form information from a seperate program I have written:
I used the header:
Content-Type: multipart/form-data
But php complains with this error:
Warning: There should have been a "boundary=something" in the Content-Type string in
test.asp on line 327(-- Line # allways
Hey!
What should I do in order to execute the next string:
$str = "html\n"
$str .= "blabla\n";
$str .= " ?php echo \"hello!\"; ?\n";
$str .= "blabla\n";
$str .= "/html\n";
When I tried using 'echo' with the string, but the php code didn't work...
Is there any way of doing this
editplus can do this.
On Wed, 14 Mar 2001 13:49:04 -0900 (AKST), chris
([EMAIL PROTECTED]) wrote:
Do any of these editors support server mappings allowing one to
auomatically preview files through a server? I find this invaluable
in
HomeSite (which is also VERY stable for me using Win2K) and I
Hello
I post my question here because I can't understand what host support is trying to say
to me:
I use paid host with PHP and MySql facilities, all working fine for me (both PHP and
MySql).
I offer to customers ability for storing updating and retrieving MySql records using
form POST ..
Hi there,
I'm using PHP and Personal Web Server in a Windows 98 PC.
What should I do to make PHP parse all .htm files and not only those with
the .php extension?
Many thanks in advance,
Jorge Alvarez
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
I'm using 4.04pl1 with --enable-trans-sids configured. I did the make
distclean that some people suggest in the annotated manual. The relative
URLs in forms and anchor are not getting the session id appended (neither
are the absolutes in header/Location, but I understand that a current
dear list members,
has anybody got a good reference in compiling XML (expat) with PHP? I've
tried following the instructions in the annotated PHP manual and I still
come across the xmltok problem. Any reference, compile script, URL, etc.
would be appreciated. Thanks!
- Herman
--
PHP General
Hi,
Is there a way to do an array_pop with php3?
Hi,
when i try and access my database from a web page i get this error
MySQL Connection Failed: Can't initialize character set 12 (path: default)
can some one please help me out with the "Can't initialize character set 12
(path: defualt) cuz i don't understand what it means by the character set
Hi all,
I'm contemplating moving one of my larger sites off of a hosting company
over to my own PIII 1 Gigahertz. Thoughts right now are to use IIS 5.0 and
either SQL Server or MySQL. I can currently get a fixed IP address DSL
connection at 1.5 meg download and 512 Upload for fairly cheap. The
You should be able to do something using PHP, try looking here,
http://www.php.net/manual/cs/features.file-upload.php
I think there is just a communication problem between you and your hosting
company. They don't allow ftp uploads, but as long as you are doing it
through http, it should work
Hi.
So, I've written all this nifty code and I'd like to do what I can from having it
pilfered.
What do you do to keep your stuff safe?
Murph
www.murphatnight.com
__
Brian Murphy - 193A Lowell St., Apt. 24 - Methuen, MA 01844 -
I'm contemplating moving one of my larger sites off of a hosting company
over to my own PIII 1 Gigahertz. Thoughts right now are to use IIS 5.0 and
either SQL Server or MySQL. I can currently get a fixed IP address DSL
connection at 1.5 meg download and 512 Upload for fairly cheap. The reason
On Wed, 14 Mar 2001 23:18, Peter Houchin wrote:
Hi,
when i try and access my database from a web page i get this error
MySQL Connection Failed: Can't initialize character set 12 (path:
default)
can some one please help me out with the "Can't initialize character
set 12 (path: defualt) cuz
I need to preload lots of graphics for user-controlled animation, changing
graphics fast.
Include() and/or require() works to slow.
Any suggestions?
--
Regards
Lars
www.DHSaps.com
www.BuyEasy.dk
www.CasinoDK.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
ssb Wed Mar 14 16:53:07 2001 EDT
Modified files:
/pear/PEAR pear.c
Log:
* implemented setErrorHandling
Index: pear/PEAR/pear.c
diff -u pear/PEAR/pear.c:1.2 pear/PEAR/pear.c:1.3
--- pear/PEAR/pear.c:1.2Tue Mar 13 17:04:45 2001
+++
Eric, I gotta ask the obvious question: did you have cookies disabled in
your browser when you were checking this out? PHPSESSID only gets appended
when cookies are disabled. If that is not the problem, I have no
suggestions. Works for me as advertised.
Kirk
-Original Message-
From:
Murph wrote:
Hi.
So, I've written all this nifty code and I'd like to do what I can from having it
pilfered.
What do you do to keep your stuff safe?
Murph
www.murphatnight.com
__
Brian Murphy - 193A Lowell St., Apt.
Thanks so much for your honest comments and input. So far I have seen zero
problems in the last 29 days with our DSL but you are absolutely correct in
that I could easily be hit with a disruption. I actually do back up our
current server with 4mm Dat and we are on a UPS but your points are very
On Thu, 15 Mar 2001 10:56, Chris wrote:
Hi,
Is there a way to do an array_pop with php3?
Off the top of my head:
use count to get the number of elements in the array
grab element(count - 1) as the popped value
Then (maybe)
unset(element[count-1])
may work; if not you might have to play
Hi,
Is there a way to do an array_pop with php3?
Here's some PHP 3 compatable code that works the same as array_pop:
function _array_pop($stack) {
$arrSize = count($stack);
$x = 1;
while(list($key, $val) = each($stack)) {
if($x count($stack)) {
$tmpArr[] = $val;
At 12:53 AM 3/15/01 +, Stig Bakken wrote:
+if (options != NULL) {
+zval **el0, **el1;
+if (((*options)-type != IS_STRING (*options)-type !=
IS_ARRAY) ||
+((*options)-type == IS_ARRAY
+
So i've heard bits and pieces that JavaDoc can parse out comments about
php...
does anyone have an example of a command line call to javadoc passing a PHP
file?
Thanks,
-Jonathan
[EMAIL PROTECTED]
(Remove spam. if you want to contact me directly)
--
PHP General Mailing List
php-general Digest 15 Mar 2001 01:57:16 - Issue 567
Topics (messages 43830 through 43945):
Tutorial for RegExpressions
43830 by: Martin Thoma
43833 by: Fredrik Wahlberg
43860 by: Nathan Cassano
Re: Day of Week??
43831 by: Tim McGuire
43832 by: Tim
Why not lease a dedicated machine in your favourite flavour. That way you
have the reliability of a hosting company that monitors 24-hrs, provides
generators, UPS, etc. but will have full control over site, configuration,
etc. There are many dedicated servers available in NT/2000/Linux/Cobalt
So i've heard bits and pieces that JavaDoc can parse out comments about
php...
does anyone have an example of a command line call to javadoc passing a PHP
file?
PHPDoc or PHP Documentator, I guess.
http://www.phpdoc.org/
Regards,
Yasuo Ohgaki
--
PHP General Mailing List
Could anyone help me out with how to print the entire contents of a
database as an Excel file? I'm familiar with the header:
header("Content-Type: application/vnd.ms-excel");
just not sure how to go about it beyond that. I have this code and
am not sure what do do after it. Thanks.
Jeff Oien
Keith Vance wrote:
You should be able to do something using PHP, try looking here,
http://www.php.net/manual/cs/features.file-upload.php
I think there is just a communication problem between you and your hosting
company. They don't allow ftp uploads, but as long as you are doing it
through
the much easier method is to change all your code extensions to be either parsed or
forbidden in httpd.conf
Files *.egn
AllowOverride AuthConfig FileInfo Indexes Limit Options
Order allow,deny
Deny from all
/Files
or
AddType application/x-httpd-php .inc
Could anyone help me out with how to print the entire contents of a
database as an Excel file? I'm familiar with the header:
header("Content-Type: application/vnd.ms-excel");
just not sure how to go about it beyond that. I have this code and
am not sure what do do after it. Thanks.
Try it this way instead (my apologies for any typos, I'm getting ready to
leave work and didn't bother to test it, but it should get the concept
across).
- - - - -
?php
error_reporting(E_ALL);
include("/home/httpd/php/open_db.inc");
// default setting for $sort_term
if ($sort_term == null)
{
I was checking my error log and the entire post-PHP contents of a
page was in my error log. I checked the access log and the page was
requested but the client got back 0 bytes. very strange.
It looks like it happened a few times.
I'm using Apache 1.3.14 on RH 7.0 with PHP 4.0.4pl1.
Actually, I think the best thing is to offer good service and value to your
customer
.
Then why would anyone want to invest the time to decompile your work to
change it?
On 3/14/01 8:30 PM, "Jack Dempsey" [EMAIL PROTECTED] wrote:
Murph wrote:
Hi.
So, I've written all this nifty code
My thanks to all for the input. I will be taking a closer look at leasing a
dedicated machine which will still give me what I am after, ie. ability to
compile, install, upgrade, software when/where I need but without some of
the sysadmin headaches.
Thanks again to everyone !!
Andre
Ok, thanks David for your help,
now to change a character set in mysql do you have to recomplie it even
though the char set i want to use is in the /usr/local/share/mysql/charsets
directory?
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001
-
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are
While not directly involving PHP, you certainly open up a database table in
Excel, just create it as a pivot table or data import from a DSN. You can
create spreadsheets based on specific SQL queries and table joins, that
Excel will work happily with.
Hope this helps!
Best regards,
Andrew
Hello,
The header will make netscape offer you a download of the file, and
IE will open it in a excell format.
For the display, just put your result in a nice html table and excell will
convert
it, it's quite simple.
print "table";
print "thEvent/th";
... print all your header here
while
I was checking my error log and the entire post-PHP contents of a
page was in my error log. I checked the access log and the page was
requested but the client got back 0 bytes. very strange.
It looks like it happened a few times.
I'm using Apache 1.3.14 on RH 7.0 with PHP
I know very little about php, but since you have already received a bunch of
useless answers, I thought I add my guesswork.
In php 4 you can access MS documents through Microsofts OLE interface. That
means you can manipulate an .xls file as you would be able to in
VisualBasic. You should look
I didn't think they were useless. Jason said he would post some
code if I wanted. Yes, I would like to see it. Pierre's post was
very helpful and is the solution I will use for now. ren's posts were
a little over my head. :) I'm sure you're really smart but not very
helpful for someone new like
I'm having a ton of trouble trying to get pictures to display. At first,
I thought I had the problem fixed - but that's because the pictures reside
on my machine. So instead of providing a path to the pictures like:
c:/phpweb/userpics/ I tried absolute paths like ../userpics and that
doesn't
It might not be it, but this stood out...
?PHP
$filedir = "../userpics";
//check for jpg format
if($fupload_type == "image/pjpeg")
{
//copy picture to new directory
if(copy($fupload, "$filedir/$CUserName.jpg"))
{
//show picture
// You forgot the closing '' tag...and you
Friends--
I know (at least the claim) that PHP can do marvelous thing to Flash
files (with libswf), presumably including "streaming" realtime
feedback of a script's action.
But I find the Flash user interface just buttugly and like LiveMotion
instead. LM can readily create SVG. So two
jon Wed Mar 14 21:07:32 2001 EDT
Modified files:
/php4/ext/standard credits.h
Log:
Whitespace (spaces to four-column tabs)
Index: php4/ext/standard/credits.h
diff -u php4/ext/standard/credits.h:1.3 php4/ext/standard/credits.h:1.4
---
Does your Apache hang?
Is that normal?
To have commands sitting for 1-2 minutes?
Using Apache 1.3.17 + PHP 4.0.4pl1 + newest MySQL on a Debian Linux box.
I use PHP for pretty much everything.
So I have Apache set to parse all files as PHP.
But that's never been a problem before.
(This is a new
Hello everybody,
How does the behind the scenes work by PHP exactly go? Does the PHP thread
remain active so long as the information is sent to the visitor? Or will PHP
parse the code and send it to Apache which will send the data to the user
itself?
The reason that I'm asking this is I'm
ok, figured my problem out.. apparently system() and exec() and all tha
can't be called from php if it is runnig as an apache mod.. anyone know
a way around this?
-Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Daniel Lynn wrote:
ok, figured my problem out.. apparently system() and exec() and all tha
can't be called from php if it is runnig as an apache mod.. anyone know
a way around this?
-Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Well, no, I'm not sure... I, personally, am a graphic designer that used to
program and somehow got suckered into programming again.. however, the person
in charge of teh server came to this conclusion for us and wether he is righ
or wrong, we have to face the fact that the exact same code to
ok, i gotcha...what's the call? perhaps there's an error with the actual
call...do you have any code you can show?
jack
Daniel Lynn wrote:
Well, no, I'm not sure... I, personally, am a graphic designer that used to
program and somehow got suckered into programming again.. however, the
Hi chris.
The codes works on my linux box too. But retaining the codes, I proceed to connect to
a imap server on a APPLE machine.
Everything works except it stops at imap_sort. Is there a conflict between mac and
linux??
terrence
Chris Lee wrote:
imap functions are notorious for not
sterlingWed Mar 14 22:24:38 2001 EDT
Modified files:
/php4/ext/bz2 bz2.c php_bz2.h
Log:
Bit of a cleanup, added some inline docs, decreased the amount of
memory used.
Index: php4/ext/bz2/bz2.c
diff -u php4/ext/bz2/bz2.c:1.8
Hi
im having a slight problem with this mail class, it
works fine up until the loop runs more than 13 times, is this a looping problem
or a mail problem? Ive attatched the mail class and the code is
below:
include
"./include/mime_mail.inc";$fp=fopen(TestFile.txt, "w");
/*loop certain
On Thu, 15 Mar 2001 17:20, Andrew V. Romero wrote:
Today I was uploading my completed script to my school's server at
http://www.u.arizona.edu/~avr/school/questionanswer.phtml?questionFileN
ame=testQA and noticed when I fill in the form and hit submit, I get a
lot of errors such as unable to
In php.general, you wrote:
I know (at least the claim) that PHP can do marvelous thing to Flash
files (with libswf), presumably including "streaming" realtime
feedback of a script's action.
It can't. PHP can generate Flash files directly (and using Ming - it beats
libswf handily -
On 14-Mar-01 Tao wrote:
Kevin,
Thanks for the reply. This will not solve my problem. The problem is, for
some
languages the sentence structure may be different. For example, the
sentence
may need to be,
$greeting = "$first_name, welcome!"
as opposed to,
$greeting =
I want to have a posting column wherein people can
post their messages and when a new message is posted
the Curent date has to be added in the mysql database.
Do u think I should use Php to generate the date or
should I have mysql to generate the date.
I am also going to allow people to search
sterlingWed Mar 14 23:03:28 2001 EDT
Modified files:
/php4/ext/bz2 bz2.c
Log:
remove a little insanity.
Index: php4/ext/bz2/bz2.c
diff -u php4/ext/bz2/bz2.c:1.9 php4/ext/bz2/bz2.c:1.10
--- php4/ext/bz2/bz2.c:1.9 Wed Mar 14 22:24:38
I am having problems figuring out how to loop to show more then one
record... Any help would be great... All I can get is the first record...
Thanks...
Code:
?php
$db = mysql_connect("localhost", "root", "*");
mysql_select_db("indywebdesign",$db);
Try using
?
$date = date ("Y-m-d H:i:s");
?
which formats the same as MySQL...
-Original Message-
From: Dhaval Desai [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 2:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php or Mysql for DATE?
I want to have a posting column wherein
On Thu, 15 Mar 2001 17:41, Andrew V. Romero wrote:
I believe it is a *nix server. I haven't looked into directory
permissions before but that is an area I will definately look into. If
this was a problem with the directory permissions, would the problem
still disappear if a file with the
On Thu, 15 Mar 2001 17:48, WreckRman2 wrote:
I am having problems figuring out how to loop to show more then one
record... Any help would be great... All I can get is the first
record...
Thanks...
Code:
?php
$db = mysql_connect("localhost", "root", "*");
On 14 Mar 2001 22:11:10 -0800, Rick St Jean [EMAIL PROTECTED] wrote:
All through this process there is a live thread between your browser and
the server.
unless you send a cancel.
One minor addition - the connection will close when you hit cancel but the PHP
code can continue running if you
On 15-Mar-01 Chris wrote:
Hi,
Is there a way to do an array_pop with php3?
unset($dirs[sizeof($dirs)-1]); // php4 array_pop();
Regards,
--
Don Read [EMAIL PROTECTED]
-- If you are going to sin, sin against God, not the bureaucracy.
On Thu, 15 Mar 2001 17:49, Dhaval Desai wrote:
I want to have a posting column wherein people can
post their messages and when a new message is posted
the Curent date has to be added in the mysql database.
Do u think I should use Php to generate the date or
should I have mysql to generate
Someone gave me the idea, and I coded it tonight
use for making option lists of legal values from a mysql field that is
enum'd.
You don't have to know the values ahead of time.
function--
function mysql_fetch_enums( $link,
On 14 Mar 2001 21:39:05 -0800, Lauri Vain [EMAIL PROTECTED] wrote:
How does the behind the scenes work by PHP exactly go? Does the PHP thread
remain active so long as the information is sent to the visitor? Or will PHP
parse the code and send it to Apache which will send the data to the user
I have php4 and Apache running on Windows 2000, and Im not able to get the
mail-function to work. The mailsystem is on an other PC, and so I added
SMTP=mailservers IP-address in the php.ini file. But still I get "Failed
to connect" when I run mail().
I have heard that there can be a problem if
101 - 170 of 170 matches
Mail list logo