| |
thread by: yawnmoth |
last post Jul 16 '05 by: yawnmoth
i'm running the following php script, and where i would expect it to
create a file, test.txt, it doesn't. it isn't in the directory i am
exectuting the script in, nor can i do cat on it (not that i would
expect to, since it doesn't exist, heh):
<?php
print system("ls > test.txt");
print system("cat ls.txt");
|
thread by: neo002244 |
last post Jul 16 '05 by: Randell D.
The move_uploaded_file() function is very quirky. I want to allow
users to upload images to the Web site. Here is the code:
if(!move_uploaded_file($_FILES,
$imagefile))
{
die("Could not move file: ".$_FILES."
-> $imagefile");
} else {
enter record into database...
|
thread by: Nomen Nescio |
last post Jul 16 '05 by: Nomen Nescio
can anyone be so kind as to look at
http://www.mysolution.ws/HYPOCRITE.php
and let me know why it isn't passing the form data to
http://www.mysolution.ws/insertHYPOCRITES.php
for the most part, the scripts were created with
http://phpcodegenie.sourceforge.net/
|
thread by: Lars Nielsen |
last post Jul 16 '05 by: KAH
I'm trying to execute a long query with mssql_query(), but it fails after 30 seconds.
I've tried to use ini_set in my script :
ini_set("mssql.timeout", "120");
Both just before the query and before the connection is initiated.
I've tried to add this to php.ini :
mssql.timeout = 120
But nothing seems to work, mssql_query() in the script...
|
thread by: Espen |
last post Jul 16 '05 by: Paul Brooks
Hello.
How can I make a PDF file from PHP?
What do I need, and how do I write the code?
Thanks in Advance
Espen
|
thread by: Espen |
last post Jul 16 '05 by: Nikolai Chuvakhin
I want to write to file in word, but the second line is wrong. Cannot call
tht illegal function COM.
Any Idea??
<?php
$word=new COM("Word.Application") or die("Cannot start word for you");
print "Loaded word version ($word->Version)\n";
$word->visible =1 ;
|
thread by: tarAnta |
last post Jul 16 '05 by: tarAnta
We installed ez publish 3.1 on Linux Mandrake 9.1
We used graphic setup, following all instructions. Now we login as admin
in http://localhost/ezpublish/index.php/admin/login but we see many
strange problems:
- if we go to set up-->content and try to edit a class or press "new
class" button nothing changes! - if we go to address...
|
| |
thread by: Tom Schmitt |
last post Jul 16 '05 by: Tom Schmitt
Hi everybody. For a long time now, I've been searching for a good,
fast, reliable CMS. Most of the stuff out there (like phpnuke) is too
fancy and overloaded for what I need:
- more than one Menu-Layer... submenus and all
- MySQL-support
- configurable templates
- custom input templates (not a must)
That's all I need. Do you have any...
|
thread by: JohnS |
last post Jul 16 '05 by: JohnS
Hi,
When I initially start my browser (any of 'm) and point it to my PHP script
the $PHPSESSID is always blank.
On all subsequent hits or after a refresh the value for $PHPSESSID is
fine... why do I have to complete a php file before the $PHPSESSID is set?
I tried to do session_start() before anything still blank, what did I
miss?
(Aix...
|
thread by: Cecile Muller |
last post Jul 16 '05 by: Pat Scott
I've been trying to just open a png and display it, that way:
<?
header ("Content-type: image/png");
$im = imagecreatefrompng('empty.png');
imagepng($im);
?>
But the transparency is not kept. I did try in netscape too,
but it's visible even in explorer, when comparing how the
|
thread by: Jochen Daum |
last post Jul 16 '05 by: David Robley
Hi !
If I have an input field
<form ... method="post">
<input type="text" name="abc def">
</form>
|
thread by: [XaToA] |
last post Jul 16 '05 by: Joshua Ghiloni
Hello.
I am trying to put one counter in my php with the next code:
<?php
$hitfile = "/admin/contador.txt";
if (!file_exists($hitfile)) {
$file = fopen($hitfile,"r+");
$hits = fread($file,filesize($hitfile));
fclose ($file);
}
|
thread by: m roberts |
last post Jul 16 '05 by: m roberts
I am trying to find a good PHP/mysql based frontend to create a support
database where admins can post solutions to problems we have on our
intranet.
Like Moveable Type - or something like that - except for a technical
support database.
Can be simple, can be free or for cost, but search of docs and cross
referencing would be almost...
|
thread by: The Lone Wolf |
last post Jul 16 '05 by: The Lone Wolf
hi,
i was wondering wat is wrong in this little code below???
<?php
$verifyemail = $_GET;
$checkemail = "SELECT verified FROM users WHERE (email =
'$verifyemail')";
$emailresult = mysql_query ($checkemail);
|
thread by: Nick Bartos |
last post Jul 16 '05 by: Manuel Lemos
I am looking for an open source php accelerator that works in cgi mode. I
am guessing that to do that the cache would have to be on disk and not in
memory. I was looking at the turk accelerator (since it will cache to
disk), but it says somewhere that it will not work in cgi mode. I am
almost tempted to try it though.
Ideas? BTW my...
|
| |
thread by: m roberts |
last post Jul 16 '05 by: Jim Dabell
Can anyone point me to java packages which aid in parsing web pages?
TIA
matt
|
thread by: Dennis Lee |
last post Jul 16 '05 by: Michel Feldheim
My OS is Winxp . My web server is apache 2 which is installed as a NT
service .
My php version is 4.32 , and I extracted it into "c:\php" .
I run php as a apache module .
I want to load Additional extensions .They are php_mbstring.dll,
php_xslt.dll and php_domxml.dll .
|
thread by: Dennis Lee |
last post Jul 16 '05 by: Joshua Ghiloni
My OS is Winxp . My web server is apache 2 which is installed as a NT
service .
My php version is 4.32 , and I extracted it into "c:\php" .
I run php as a apache module .
I want to load Additional extensions .They are php_mbstring.dll,
php_xslt.dll and php_domxml.dll .
|
thread by: Rajesh Kapur |
last post Jul 16 '05 by: lawrence
Does PHP work better than Java with MySQL? What are pros and cons of using
PHP vs Java? Which one is faster?
Can someone share the experience or point me to some good white papers or
benchmarks? Thanks.
|
thread by: Adam Sowalsky |
last post Jul 16 '05 by: Adam Sowalsky
Hi, newbie question ahead:
suppose i have two html-formatted documents with appropriately coded <?php ?> areas.
a typical query is this: file.php?call=123.html
in 123.html i define a variable $doctitle
How can I display $doctitle in file.php (an html-formatted file as well)
|
thread by: The Lone Wolf |
last post Jul 16 '05 by: rush
Hi,
if i try to set a cookie but the user has cookies disabled does this resolve
in an error?
if so how to prevend it?
thanks
|
thread by: jorntk |
last post Jul 16 '05 by: jorntk
if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) {
header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Authorization Required.';
exit;
} else {
echo "You entered $PHP_AUTH_USER for a username.<BR>";
|
thread by: Gil |
last post Jul 16 '05 by: Tom Thackrey
I am trying to code my "notfound.html" page when people click on the
link that will send them back to home page, that the "entire" browser is
"refreshed".
Reason for doing this. I have frames on the home page. When user click
on the link on "notfound.html", the home page appears within the home
page frame. So I see 2 home pages. I have...
|
| |
thread by: Phil Powell |
last post Jul 16 '05 by: treefroginometry
ucfirst({explode('/', $val)})
This produces a parse error expecting ')', but why? I thought this was
perfectly valid code structuring in PHP!
Any ideas?
Phil
|
thread by: Ralph Freshour |
last post Jul 16 '05 by: Andy Hassall
I'm looking in my PHP book but still figure out the best way to
validate that certain characters are contained in a string - for
example, when a user enters a username, I want to limit the characters
to a..z, A..Z,0..9 only. What's the best way to check for this?
Thanks...
|