Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Fput Function (Warning: Unable To Find File Identifier 0 In)


I made a script for logging the emails that they send on my site. It works fine on windows 98 version, but when I upload it to a Linux computer it fails. Here are the first lines of the script:

$file = fopen("log/index.html", "a+");
$today = date("G:i, l jS Y");
if ($argv[0] == "contact"){
if ($name == ""){
fputs($file, "Text comes here";
fclose$file);}

Then the output is:

Warning: fopen("log/index.html","a+") - Permission denied in /home/jonathan/public_html/beftubbies/email.php3 on line 3

Warning: Unable to find file identifier 0 in /home/jonathan/public_html/beftubbies/email.php3 on line 30




View Complete Forum Thread with Replies

Related Forum Messages:
Warning: Move_uploaded_file() [function.move-uploaded-file]: Unable To Move 'c:/wamp/
I keep getting this error when I try to use my file upload:

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'c:/wamp/tmpphp7F0C.tmp' to '' in C:wampwwwproject1upload.php on line 16

Heres the script:

View Replies !
Warning: Mysql_result() [function.mysql-result]: Unable To Jump To Row 0
i want to grab the value of a sql entry. but the thing is, sometimes this value is <NULL>. i thought, no biggy, i'll just have an if statement:

if (is_numeric(mysql_result($query, 0))) {
//do something
} else {
//do something else using mysql_result($category_id_query, 0);
}

however, this doe not work. i get this error: Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 3 is there a way to check to see if mysql_result() is <NULL> without throwing an error.

View Replies !
Exec() Function Warning: Unable To Fork (Access Violation At 77F81B4D)
I am trying to execute a DOS command with the exec() function. All I get is fork errors or access errors, regardless of what file I try to execute. Example:

<?php
exec("sync.bat");
`sync.bat`;?>

Warning: Unable to fork [sync.bat] in C:testexec.php on line 3
Warning: Unable to execute 'sync.bat' in C:testexec.php on line 4
PHP has encountered an Access Violation at 77F81B4D


Id doesn't seem to matter what kind of file I try to execute, .exe, .bat or .com. Any ideas? Has ANYONE executed an external program under php/Windows?

View Replies !
Warning: Move_uploaded_file() Unable To Move *file* To *new File* In *script*
I'm having trouble with move_uploaded_file()- my script was working fine until a month or two ago when it suddenly stopped. Now I get the error:

Warning: move_uploaded_file() Unable to move *file* to *new file* in *script*

Thats it, no permissions error or "unable to open stream"- all the searching I've done everyone seeems to get another error- but I'm only getting the one. Permissions on the folder are 777, the paths are absolute and definitely correct, safe_mode and open_basedir are both off. I even called is_uploaded_file() on the line before it and it returned true. The only thing I can think of is that the hosts upgraded to php4.4 recently- could that be it? Are there any known problems (or changes that would break my script)?

View Replies !
Warning: Unable To Open 'none' For Reading: No Such File Or Directory
I'm using copy($userfile,$dir.$userfile_name); to upload files and this works fine for small files. But if I have to upload large files (5-10mb) then I get the error message:

Warning: Unable to open 'none' for reading: No such file or directory

Are you not able to upload large files? Is there a fix to this?

View Replies !
Get The Frwrite/fput Function To Start A New Line
I have a script that simply logs the address and the referrer of the person coming to the page. The script logs the infomation down fine, but I cannot seem to get the frwrite/fput function to start a new line, it just continues on the smae line. Code:

View Replies !
Warning: Ldap_start_tls() [function.ldap-start-tls]: Unable To Start TLS:
Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Connect error in C:apachehtdocs oolconnect_ldap.php on line 46 LDAP TLS error.

And this is my code ....

View Replies !
Fput() File Size Limit
I have a simple message board that writes to a flat file. The messages are posted untill a modest limit of approx 8 messages of 30 or more words and the board will no not continue to write to the file.

Is there a limit that fput() will write??

$myfile = fopen("try.txt","a");
fputs($myfile,$mess);

fclose($myfile);


Q2 Im using the 'a' flag to write to the end of the file. I would like append to the beginning of the file so that my messages are LIFO listed on my board. I tried 'r' and 'w' with no success.

View Replies !
Unable To Find Package
I am trying to use MDB2 and can get SELECT queries to work fine, but when trying to INSERT, I am getting:

MDB2 Error: not found (/usr/lib/php/PEAR.php at line 557)
unable to find package 'MDB2_Datatype' file 'MDB2/Datatype.php'

errors.

View Replies !
Unable To Find The Wrapper Https
I tried to include a php script that i downloaded to get me real time
money exchange rates, but it uses fopen() function and i get this
error:
Fatal error: fopen(): Unable to find the wrapper "https" - did you
forget to enable it when you configured PHP?

so i found out that IIS is the problem and i need PHP 4.3+ and
OpenSSL(which i don't understand what it is or how to get it)
I tried to setup Apache 2 on my windows and use it instead of IIS, and
i setup Apache to use port 8080, but when i access any page in /htdocs,
The IE tells me that the page can't be displayed.

I want to know how to configure apache and how to run php scripts from
it (ofcourse after i configure the httpd.conf file to use php).

View Replies !
Unable To Find Php_domxml.dll Error
I have just finishing installing apache and PHP4. It is claiming that
it cannot find the php_domxml.dll file giving me the following error
when I go to load a page with dom xml function on it:

Unknown(): Unable to load dynamic library
'C:/php/extensions/php_domxml.dll' - The specified module could not be
found

I am convinced that the paths are correct as I have the following line
in php.ini:

extension_dir = "C:phpextensions"

The file, php_domxml.dll, is defininetely in the extensions folder.

View Replies !
Warning: Ftp_put(): Unable To Access
I'm using the following code on my website, but something seems to be wrong, cause everytime I try to upload something, I get this error:

Warning: ftp_put(): Unable to access in /home/cjbcc/public_html/members/koerel/party/uploads.php on line 16

<html>
<head></head>
<body>
<?
$ftp = ftp_connect("koerel.cjb.cc");
$source_file = $_POST['bestand'];
$logged = ftp_login($ftp,"***","***");
if ((!$ftp) || (!$logged)){
echo "der is iets mis!";
} else {
echo "je bent ingelogd";
}
if(isset($_FILES['bestand'])) {
    ftp_put($ftp,"x.gif",$source_file,FTP_BINARY);
    echo "Het bestand is opgeslagen";
} else {
    echo "Selecteer een bestand";
}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="bestand"><br>
<input type="submit" name="submit" value="Upload">
</form>
</body>
</html>

View Replies !
Warning: Simplexml_load_file() [function.simplexml-load-file]:
heres the errors:

Warning: simplexml_load_file() [function.simplexml-load-file]: core/combat/magic/Spark.const.xml:4: parser error : Extra content at the end of the document in C:Program Filesxampphtdocswinterswordcorecombatcombat.class.php on line 481

Warning: simplexml_load_file() [function.simplexml-load-file]: <mastery>Death</mastery> in C:Program Filesxampphtdocswinterswordcorecombatcombat.class.php on line 481

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in C:Program Filesxampphtdocswinterswordcorecombatcombat.class.php on line 481

and heres the .xml document: Code:

View Replies !
Warning: Ftp_put() [function.ftp-put]: /tmp/phpdGGc4K: No Such File Or Directory
about ftp_put. whats its' syntax

ftp_put($ftpconn, remotefile???, localfile!???? FTP ASCII)

what is remote and localfile??

ive tried to do this (in english

upload a file to _files which is really in /tmp/

then before moving it (to save disk usage) upload straight from /tmp/ to the ftp server in question

can i do this?? heres my error mess:

Warning: ftp_put() [function.ftp-put]: /tmp/phpdGGc4K: No such file or directory in /var/www/html/ftp.php on line 84

-> this is my echo error message There was a problem while uploading

View Replies !
Warning: MySQL: Unable To Save Result Set In
I'm running PHP/MySQL/Apache on my home system on Windows for testing purposes. As a run a specific query, I get this error:

Warning: MySQL: Unable to save result set in C:apachehtdocsfinal.php on line 129

Warning: Supplied argument is not a valid MySQL result resource in C:apachehtdocsfinal.php on line 132

I know the second result means the specified query cannot be found, and I'm guessing for some reason MySQL cannot save the query. Here is my code. PHP Code:

View Replies !
Warning: Unable To Open 'php2' For Reading:
I using PHP 3.0.16, Apache Web Server. and MySQL 3.22.34 in my Win 98 machine. The problem that i had is when i want to upload a picture in php the error Warning: Unable to open 'php2' for reading:Unknown error in crogram filesapache groupapachehtdocsmansteradd.php3 on line 23.

The sample of my coding is paste below. Can somebody help me to figure out what is the problem. Code:

View Replies !
Warning: Stream_select(): Unable To Select [0]: No Error In ...
<?php
while (true) {
$read = array(STDIN);
$write = $except = NULL;
if (stream_select($read, $write, $except, 0)) {
}
}
?>

When I run this in PHP4, I get a "warning: stream select(): unable to
select [0]: No error" error. In PHP5, I don't.

View Replies !
Warning: MySQL: Unable To Save Result Set
I'm getting this error:

Warning: MySQL: Unable to save result set in /www/hosts/wwwroot/mainPage.php on line 11

Here is what line 11 looks like:

$articles = mysql_query("select entryID from articles where siteID like 'senior'");

View Replies !
Warning: Is_file() [function.is-file]: Open_basedir Restriction In Effect.
on a virtual host, I get the following warning:

Warning: is_file() [function.is-file]: open_basedir restriction in effect.
File(/usr/local/httpd/htdocs/kunden/web46/html/images/1041.jpg) is not
within the allowed path(s):
(/usr/local/httpd/htdocs/kunden/web46/) in
/srv/www/htdocs/web46/html/jobholder/userdata.php on line 105

I read the documentation but the the warning makes no sense to me, because
it's obviously wrong. The tested file is within the allowed path!? Any hint?
If I call phpinfo() it shows /usr/local/httpd/htdocs/kunden/web46/ as
open_basedir.

View Replies !
Warning: (null)(): Unable To Obtain IDispatch Interface
I'm working on a site using COM to open word and excel documents, but i have an error with the CLSID, it says :

"Warning: (null)(): Unable to obtain IDispatch interface for CLSID {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}: Server execution failed in monsite.php on line 21 Word could not be started"

and line 21 is : $word = new COM("word.Application",$server) or die("Word could not be started"); i work on a win2k server with IIS.

View Replies !
PDFlib :: Warning: Dl(): Unable To Load Dynamic Library
I am a user of a Linux machine (not root) and I have installed PDFlib somewhere in my home
directory. So I can't change the '/etc/php.ini' file.

If I use the next statement "dl('!home/lib/PDFlib.so')" in my script I get the next error :

Warning: dl(): Unable to load dynamic library
'/usr/lib/php/extensions/local/usr/people/emami/lib/PDFlib.so' -
/usr/lib/php/extensions/local/usr/people/emami/lib/PDFlib.so: cannot
open shared object file

And it is understandable, because he are looking for a directory which is not exist.

View Replies !
Warning : Unknown(): Unable To Load Dynamic Library
I install php 4.3.1 on Windows XP (Use Apache 2.0.44) I open c:windowsphp.ini and uncomment line extension=php_gd2.dll When I restart Apache It has error pop up every time I open php file in browser like this:

Warning : Unknown(): Unable to load dynamic library './php_gd2.dll' - The specified module could not be found.

View Replies !
PHP Warning: Unknown(): Unable To Load Dynamic Library
I'm running a dedicated server with windows 2003 server with IIS, anyway recently a strange message started to pop out in my face each time I tried to access a page have query to the database.

---------------
PHP Warning: Unknown(): Unable to load dynamic library 'E:Program FilesSWsoftPleskAdditionalPhpextensionsphp_curl.dll' - Access is denied. in Unknown on line 0
-------------------

View Replies !
Warning: Move_uploaded_file(adverts/72ef761e130ea1d31be300277b9956dbjpg) [function.move-uploaded-file]:
I receive this message when I try to upload an image to my website. Does anyone know what it means and can you give me a basic step by step guide in how to resolve the problem?

Warning: move_uploaded_file(adverts/72ef761e130ea1d31be300277b9956dbjpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/artscraf/public_html/upload.php on line 29

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpy7BgjF' to 'adverts/72ef761e130ea1d31be300277b9956dbjpg' in /home/artscraf/public_html/upload.php on line 29

View Replies !
Warning: Ftp_put() [function.ftp-put]: Rename/move Failure: No Such File Or Directory
I've just moved our site to a new server, and after doing so I am having problems getting ftp_put() to work. We use it to upload pictures, but when I try to, it gives me the following error:

Warning: ftp_put() [function.ftp-put]: Rename/move failure: No such file or directory in /home/intimate/public_html/include/functions.php on line 271

It worked with our previous hosting company, so I'm not sure what is different. I've verified that ftp login works, so the connection itself is alright.

Here is the function, making problems:

function upload_file($source_file, $destination_file) {
if ($conn_id = ftplogin()) {
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
if (!$upload) {
return "Det lykkedes ikke at uploade $source_file til $destination_file";
}
ftp_close($conn_id);
} else {
return "Det var ikke muligt at forbinde vha. FTP";
}
return false;
}


Line 271 is the following line:

$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);

View Replies !
PHP Warning: Unable To Load Dynamic Library 'Chp4php_nsmail.dll'
I have my extention_dir = Chp4, and my extention=dllname all right, but when I try and load the page it says.

(for example)

PHP Warning: Unable to load dynamic library 'Chp4php_nsmail.dll' - One of the library files needed to run this application cannot be found.

All of the modules are located in that directory and for some reason it's still giving me this error, can anyone help?

View Replies !
PHP Warning: Unknown(): Unable To Load Dynamic Library Php_mhash.dll
I just downloaded PHP-4.3.3 for win32 and got the extensions folder and
dropped it intot he root of the PHP directory and set it's path in the
PHP.ini:

extension_dir = "c:/php/extensions/"

But I am still getting the error that it can't find the php_mhash.dll though
I can see that it is indeed in the folder....

View Replies !
Using Form To Post Info And Pic's (Warning: Unable To Fork)
I have created an admin form which allows the admin to update info and pic's to his site but I am having trouble with the update_pic script. When I pass along the form to the php script it gives me the following error message:

"Warning: Unable to fork [C:WINDOWSTEMPphp30.tmp /full/path/to/joesauto/images/anime_dvd_icongif.gif] in c:inetpubwwwrootadd_data.php on line 39"

This is line 39: exec("cp $picture /full/path/to/joesauto/images/$picture_name");
This is the form I used which was taken from this site. Code:

View Replies !
SquirrelMail Error: Warning: Fsockopen(): Unable To Connect To [ip Address]:143
If anybody has experienced the following SquirrelMail error:

Warning: fsockopen(): unable to connect to xx.xx.xx.xx:143 in
/home/virtual/siteX/fst/var/www/squirrelmail/functions/imap_general.php
on line 172

or something similar, then listen up, here's the solution. PHP 4.3.x
has known bugs with file handle and socket leak issues. This is true
up to PHP 4.3.3. The only solution for now is to revert to PHP 4.2.x.
I'm told that this issue only affects systems with 250+ SquirrelMail
sites.

View Replies !
Warning: Unable To Include 'cgi-bin/hello.cgi' - Request Execution Failed
I run PHP pages on my webserver. What I am trying to do is run a Perl script within a PHP page (and return the output to the webpage). The test script I am trying to run is this... Code:

#!/usr/bin/perl
print "Content-type: text/html";
print "HELLO WORLD!!<br>";

When I run this using <?php virtual("cgi-bin/hello.cgi") ?>, all I get is this error message....

"Warning: Unable to include 'cgi-bin/hello.cgi' - request execution failed"

Any ideas how I can run this script in my PHP page?

View Replies !
Warning: Unable To Create '/home/jj/picparty.com/users/ss/tmp/phproJvoQ': No
I am attempting to setup a file upload and I am getting an error message which is stumping me Here is the error message we get when we attempt to upload an image

Warning: Unable to create '/home/jj/picparty.com/users/ss/tmp/phproJvoQ': No
such file or directory in /home/jj/picparty.com/add.php3 on line 6 Code:

View Replies !
Warning: Ldap_bind(): Unable To Bind To Server: Invalid Credentials In
I have some problems with ldap and php fot my authentification. I don't understand why. My DN is correct in my ldap server Can you help me please?

My php script :

$login = $_POST['pseudo'];
$passe = $_POST['passe'];
$ldapServer = "localhost";

$loginDN = "uid=".$login.", o=people, dc=toto, dc=org";
$connexion = ldap_connect($ldapServer)
or die ("Impossible de se connecter au seveur LDAP");

if ($connexion) {
$result= ldap_bind($connexion, $loginDN, $passe);
// Identification
if ($result) {
echo "Connexion LDAP réussie";
} else {
echo "Connexion LDAP échouée";
}
}

My error message :

Warning: ldap_bind(): Unable to bind to server: Invalid credentials in
d:www-rootphpauth_ldap.php on line 15 ...

View Replies !
Warning: Mysql_result(): Unable To Jump To Row 0 On MySQL Result Index
i got this message:

Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 6 in c:inetpubwwwrootDreamWeaverSiteswebadminwa.php on line 2296

for these lines of code:

$sql11="delete from Booking where Booking_Id='$Booking_Id'";
$result11=mysql_query($sql11);.

View Replies !
PHP Warning: PHP Startup: Unable To Load Dynamic Library 'c:PHPExtphp_mysql.dll'
Why do I keep getting this error mesgage on my phpinfo() page trying to
get PHP and MySQL to communicate? I am running this in IIS.

Here's what I have -

My php.ini resides in my C:WINNT directory. In it, I have removed the
'' from the extension=php_mysql.dll.

Also in the php.ini file I set extension_dir = c:PHPExt

In c:PHPExt I have the following files:

libmysqli.dll
libmySQL.dll
php5apache2.dll (Do I need this since I am using IIS)?
php5ts.dll
php_mysql.dll

View Replies !
FTP - Warning: Move_uploaded_file(news/testfile.pdf) [function.move-uploaded-file.html]: Failed To Open
Is this a permission problem?

Warning: move_uploaded_file(news/testfile.pdf) [function.move-uploaded-file.html]: failed to open stream: No such file or directory in /upload/index.php on line 49

View Replies !
Warning: File_get_contents(http://someurl) [function.file-get-contents]: Failed To Open Stream: Connection Refused In /dirc
I have used the function file_get_contents to retrieve html content from a website. My code works fine in localhost but after uploading it to the server, the following error appears:

Warning: file_get_contents(http://someurl) [function.file-get-contents]: failed to open stream: Connection refused in /dirc/code.php on line 13

View Replies !
Warning: Fopen() [function.fopen]: Failed To Open Stream: No Such File Or Directory
i am trying to upload csv file from user's computer to main server the code i am using is
PHP Code:

View Replies !
File Opening Warning: Fread() [function.fread]: Length Parameter Must Be Greater Than 0
I've been getting really frustrated with this. but I'm trying to be able to open a file into a textarea for editing, but whenever the script attempts to open a file that has no data, it returns this error:

Warning: fread() [function.fread]: Length parameter must be greater than 0. in C:Program Filesxampphtdocshtmleditfile.php on line 16

Here's my code:

$filename = "main_folder/" . $_GET['file'];
$handle = fopen($filename, "r+");
$contents = fread($handle, filesize($filename));
fclose($handle);

View Replies !
Fput And Appending
I'm trying to write a variable to a file, and have it be appended to the end, on a new line. This is the code I am using: Code:

$handle = fopen('file.txt','a+');
fputs($handle, $score. "");
fclose($handle);

The file it is appending to looks like this:

900
800
600

I'd like it to look like this, after the variable is appended:

900
800
600
[the variable]

Currently it is placing a black box after 600, and then the variable. (In Binary mode)
How can I get around this problem?

View Replies !
Fatal Error: Fopen(): Unable To Find The Wrapper "https" - Did You Forget To Enable It When You Configured PHP?
i have used a script that i downloaded and uses the
fopen($url,'r'); function to access a url to retrieve data and i get
this error

Fatal error: fopen(): Unable to find the wrapper "https" - did you
forget to enable it when you configured PHP?

i checked the 'allow_url_fopen = On' in php.ini and it is set to On,
and still it didn't work

View Replies !
Warning: Main(.html) [function.main]: Failed To Open Stream: No Such File Or Directory - Include Problem Basics
A while back, I used to use the:

<?php include("$id.html"); ?>

for my site, but then I stopped for a while. Now, I come back to use it, and it doesn't work. I put this "<?php include("$id.html"); ?>" where my content normally goes in "main.php" and then I go to "site.com/main.php?id=content" (where content is an HTML), but I get an error that says:

Warning: main(.html) [function.main]: failed to open stream: No such file or directory in /home/animegal/public_html/nosuchthing/newlayout/main.php on line 74

Warning: main(.html) [function.main]: failed to open stream: No such file or directory in /home/animegal/public_html/nosuchthing/newlayout/main.php on line 74

Warning: main() [function.include]: Failed opening '.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/animegal/public_html/nosuchthing/newlayout/main.php on line 74


this used to work - that's why I think that it's me doing something wrong.

View Replies !
Unable To Find The Socket Transport "ssl"
Unable to find the socket transport "ssl" i am getting this error when i try to send mail through smtp.gmail.com? can anyone help me?

View Replies !
Warning: Smarty Error: Unable To Read Resource: "index.tpl" In
I am using "Smarty 2.1 Version" in php. It is giving following error

Warning: Smarty error: unable to read resource: "index.tpl" in
/home/httpd/tsils/parag/tradesite/Smarty.class.php on line 1095

the directory which is containing templates i.e. templates and templates_c is
having 777 permission.

Also tried with full absolute path in the Smarty.class.php. like
var $compile_dir = '/home/httpd/tsils/parag/tradesite/templates_c'

View Replies !
Warning: Unable To Complete Network Request To Host "abc".
We had one webserver based on a linux machine. The website is fully function and designed by a different person. Now we moved the machine from one IP to another one. I changed the machine ip address and the website is working partially. That site is working in between pages verywell. But once I give some input and requrest for data it is failing with the following message:

Warning: ibase_pconnect(): Unable to complete network request to host "abc". Failed to establish a connection. Connection refused in ***.php on line 347

Following this I am getting errors for ibase_trans(), ibase_commit() and ibase_close().

What i need to do in this case apart from changing the ip address. The new ip address is in different domain but the machine name is still same.

View Replies !
LDAP Function - Unable To Bind To Server:
Please any body help me to use the LDAP function in PHP.

i got an error while use the ldap function

Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't
contact LDAP server in F:User HomeRajeshMy Documentsldap est.php on line 14 LDAP bind failed...

View Replies !
Unable To Login Fatal Error: Call To Unsupported Or Undefined Function Session_save_path()
I have a login page that once a user enters the right input, should allow him to go to a Main page. The logging in part is right (using the Username and Password), but when I log in with correct Username and Password, I get the following error:

Fatal error: Call to unsupported or undefined function session_save_path() in C:apachehtdocs/login.phtml on line 26

That line in the Phtml file reads :session_save_path("c:/");

View Replies !
Row Identifier
I need advice on how to identify a row with particular field
value?

I have a table with 3 fields: id, title, date.

I need to know the order number for the row where
title=sometitle.
I need it for the $start variable in next query:

Code:
# make a query on a table in your database
// $start = ???;
$query = "SELECT * FROM table LIMIT $start,1";
$query_result_handle = mysql_query ($query)
or die ('The query failed! table_name must be a valid table
name that exists in the
database specified in mysql_select_db');

# make sure that we recieved some data from our query
$num_of_rows = mysql_num_rows ($query_result_handle)
or die ("The query: '$query' did not return any data");

print "The query: '$query' returned $num_of_rows rows of
data.<br>";

# use mysql_fetch_row to retrieve the results
$row = mysql_fetch_row ($query_result_handle);
print "The name is '$row[1]'";

View Replies !
Unique Identifier
I have a table to store information of printers. Every printer has an unique Printer ID in the format, USG1-PTRxxx or USG2-PTRxxx where USG1 or USG2 indicates the location of the printer and x denotes a number.

Whenever user adds a printer to the table, the Printer ID will "auto-increase" according to the location.. Code:

View Replies !
Crawler Identifier
I am running a website with specific functions which collects informations about users preferences on that website. But often crawlers came to my site and my scripts insert records about their visits. Is there a quick and easy solution to identify crawlers so I could neglect crawler informations.

View Replies !
Unable To Fork Exec()'d File In IIS 5.1
I am repeatedly trying to execute a file on my server using exec() or passthru() and I keep getting an Unable to Fork error. Has anybody else had a problem with this in IIS?? The path to the perl script is correct and the script works fine in the C: prompt.

View Replies !
Upload (unable To Read File)
i´m trying to upload a file. I tried many ways but it always
return the same error...

Unable to open c:file.jpg for reading.

the file exists, but any file gives me the same error..

anyone know what is happening?

View Replies !
Unable To Remove Items From A File
I am at my wits end with some code for a website I am working on. The page in question is simply for a user to add items to a list of data. The data is stored in a temp file and later added to a database. I have successfull set the page to add items to the list of data. My issue is with trying to remove a line of data from the file. The following snippet of code runs if a link has been clicked on the line of data to be removed which reloads the page running this code which is intended to remove that line...

PHP Code: ....

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved