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




Deleted Php.ini And Cant Produce An Error


I deleted every instance of php.ini on my computer and restarted IIS. I was hoping i could envoke an error so I can figure out which php.ini it was using. But my application runs normally.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Why Does This Produce A Parse Error?
ucfirst({explode('/', $val)}[0])

This produces a parse error expecting ')', but why? I thought this was
perfectly valid code structuring in PHP!

How To Produce A Tooltip ( Like One We Have In VB ) ?
How to produce a tooltip? Like one we have in VB as elements attribute.
Is there any function for it ?...

How To Produce *jpg From A Set Of Password ?
after I generate a set of password ie alpha-numeric, how / what are the command to form a *jpg file and that supposes sent out to the requestor. suppose I have a php that generates a set of password such that Ayjt12g through another php programs that will produces a *jpg file that u see the picture display as AYjt12g then I send the *.jpg to the requester.

Make Of PHP 4.3.2 Not Produce Libphp4.so
I'm runnig Linux/Mandrake9.0-Dolphin and try to update Apache 2.0.46
and PHP 4.3.2.

Apache is OK bu with PHP I've problem. I unpacked distribution, run
../configure > configure.vysl, make > make.vysl and make install. When
I search in configure.vysl or make.vysl there is nothing about
libphp4.so.

Then when I try /usr/local/apache/bin/apachectl start I've error:

Syntax error on 1105 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: cannot open shared object file:
No such file or directory

In httpd.conf I have:

LoadModule php4_module modules/libphp4.so

When I search whole my computer, there isn't libphp4.so!

I tried find solution in PHP FAQ, PHP install mailing list and search
user groups by Google. Similar problems with libphp4.so are discussed
often but I didn't found solution for my problem.

Trouble With Join Query's, Query Just Dosent Produce Results
I have the following code which I am having difficulty getting to
work. I think it may be a problem with the $got query that is being
run as if I set that to a set value then my site seems to run ok, but
I also have checked the data whichi is being held in $detailsrow[1] by
echoing them and it is perfect. I have also sutstituted the values and
ran the query in mysqql directly and it gives me the exat results I am
expecting!

Ive been on it for hours now and I cant get it to work so any help
will be fantastic,

<select name="type">
<?PHP
$mod = ("select name from modules");
$modnames = @mysql_query($mod);
$getfulltype = ("select modules.name from modules, devices where
modules.code= $detailsrow[1] and devices.type = $detailsrow[1]");
$got = mysql_query($getfulltype);
while($row = mysql_fetch_row($modnames))
{
if ($got == $row[0])

{

echo ("<option selected value="$got">$got</option> ");
}

else {
echo ("<option value="$row[0]">$row[0]</option>");
}
}
?>
</select>

Directory Deleted
So far i m using following code for deleting folders and files.But it will
only delete those folders which r empty.I want to delete those folders also
which has some files.pls give me the solution

<?php
error_reporting(0);
include("../connection.php");
$date = date("m/d/Y"); //For finding current current
function dateDiff($dformat, $endDate, $beginDate)
{
$date_parts1=explode($dformat, $beginDate);
$date_parts2=explode($dformat, $endDate);
$start_date=gregoriantojd($date_parts1[0], $date_parts1[1],
$date_parts1[2]);
$end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]);
return $end_date - $start_date;
}
?>
....................

Get ID Of Deleted Items
I wonder if there is anything similar to "mysql_insert_id();"
for deleted/updated id's?

If i do a query and DELETE WHERE text_field="",
can i get the id's of the fields that were deleted?

Session Files Will Not Be Deleted
My problem:

- i dont wan´t to destroy the session
- i want that the session will be deleted by "php" when the gc maxlifetime parameter hits
- i can turn this parameter on what i want - nothing will be deleted!
- in my specail case - i make use of session_save_path - i use my own

Could it be, that "php" doesnt delete session files in own session_save_paths ?

Copy() Deleted File?
I use this to upload boxart for games for my site.

Help! Need To Recover Deleted Tables!
Im not sure if Im in the right place here but ..

I am using a unusual combo of PHP MSSQL ODBC and MSAcess on a windows
server 2003 box. All my tables in a database were deleted using the
SQL "DROP TABLE" command. Can these be recovered? And if so, how?

Deleted Record Still Being Counted.
Can anyone see any reason why this query would not return the number of rows containing the correct "EID" "CID" where email address is "cs.com" or "webtv.com".....

for some reason it always returns 1 even if the database is empty. The only other flaw that I see is that I had a record that matched this criteria, then I deleted it from the database, but it still seems to want to count it for some reason. PHP Code:

$_SESSION['data'] Not Being Deleted?
I got a login script that basically does that: checks wether username and password is in a mysql file and then sets the variable loged_in to 1 like that PHP Code:

Filling In For Deleted Images
I am creating an image gallary where the images are numbered 1, 2, 3 etc. Users will be uploading the images so if i need to delete an image, I need the code to be able to check if that number has been deleted and replace it with the next uploaded image. I have the code pulling from a txt file with a counter to name each file.


The problem is that if images "36", "29" and "2" are removed... I need those slots to replaced in numerical order with the next uploaded images. So the next image will be named image "2" and will show up as the 2nd image on the page. Code:

File Automatically Being Deleted
Whenever index.php or .htaccess are created in a directory, they are automatically deleted. I'm guessing it is some kind of backdoor attack. Setting permissions to read only didn't help.

Does anyone know how to see what is deleting the file? or protect it?

Info Deleted Itself From Database?
I got some info (news system) in a SQL database but after some days it deletes by itself it happened to me once but i thought i didnt remembered that i deleted it but today it happened again...it deleted by itself! lol

I have other tables in the same database so its a table problem...

How can i fix this? Did i miss something at the table configuration?

How Can A Line Be Deleted From A Text File
Since, I cannot seem to delete the last line in a text database using the code below.

What other way can I delete a line from a text file?

I've Deleted Admin Username And Password,
I've deleted my admin username and password which was initially set at test. Now I can't log into my website as the administrator. How do I put Username and Password back so that I can set my own password and username again, log in to my website and edit it. Which file do I have to edit, and where do I re-set the Username and Password?

Updating Id Numbers To Be Consecutive After Deleted Some
I have a list of ip addresses that have accessed my web site and i have check boxes next to them so i can delete whichever ones i want. after i delete them, i want the name_id field to re-autoincrament after the other rows have been deleted. does anyone know how to do this? i know this line can set the autoinc to a new number, but how do i re autoinc the whole table?

Character Deleted And Mail Function
I use the mail function in order to send mail on a LAN Lotus Notes
server (SMTP). I send big html mail with the "MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1" format.
But, in the message, some characters are deleted, one for 10 lines.

After a test, (message with 1234567890), a character is deleted
approximately every 1000 character.
Have you some ideas ? The problem is coming from php or Lotus Notes ?

Script To Access Expired/deleted Domains?
Does anyone know if there is a script available to access expired/deleted domains? If not, does anyone know how do you get access to the daily expired/deleted domains database?

Reset Row "id's" After Arbitrary Value Deleted
Is there a way to reset the auto_increment value and all subsequent values for that table if you delete an arbitrary row?
example:

row 0 - test info
row 1 - test info
row 2 - test info
row 3 - test info

new auto_increment value = 4

I delete row 2, so table looks like:
row 0 - test info
row 1 - test info
row 3 - test info

the auto_increment is still 4, but there are only 3 rows in the table and the values are not correct. Is there a function or easy way to "reorganize" the row values and reset the auto_increment?

A "few" Old Session Files Never Deleted?
I have session files stored in a special tmp directory specific to a
virtual host instance. The Max_lifetime is long 86400 (1 day) which I
don't suppose is the problem.

Anyway the sessions do indeed expire and "most" of the old session
files disappear as expected.

Not all however. I am finding several old session files with Unix
last mod times weeks in the past.

This behavior observed on PHP 4.2 and 4.3.

Email Script/Javascript Parse Error: Syntax Error, Unexpected T_STRING
I've made a email script to include javascript. Now what I want to do, is that I want to hide the link in status bar when I hover over it. I've implemented javascript into the code but I keep getting the following error:

Parse error: syntax error, unexpected T_STRING in /home/****/public_html/fbmail/contact.php on line 12

Here is line 12:
$message .= '<a href="http://www.mysite.com/" onMouseOver="window.status='Click here to continue.'; return true;" onMouseOut="window.status=''; ">Click here to continue ..</a>'; The complete code:

Error Reading WWW Server Response (HTTP Header). Error Code: 0
I have been trying out the web based email program on this website to connect to a pop 3 client...it worked ok...but now when i try to logg in all i get is this error message...on the page Error occurred!

Description: Error reading WWW server response (HTTP Header). Error code: 0(0 = client terminated the connection unexpectedly, 2 = too many header lines) Code:

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STR
I am having troubles entering this info into my db. Cna someone help? This is the error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/realfina/public_html/ec/testdobaapi.php on line 22 Code:

Parse Error: Syntax Error, Unexpected '?' In /home/**/public_html/website_
Parse error: syntax error, unexpected '?' in /home/realfina/public_html/website_builder/phpcb/filgen.php on line 373

Can someone explain what this means?

Message Was Not SentMailer Error: SMTP Error: Data Not Accepted
I am getting a problem with phpmailer, when Iam trying to send mail with phpmailer on Linux Iam getting the folowing Error:

Message was not sentMailer Error: SMTP Error: Data not accepted
This is the Code Iam using in PHP/Linux: Code:

Fatal Error: PDFlib Error: Resource Category 'FontAFM'
I've searched and have yet to find out what my problem is with this script loading a font. If some one could shed some light on this I would really appreciate it. Here is the error message I'm receiving when using pdf_findfont().

Fatal error: PDFlib error: Resource category 'FontAFM' not found in /Users/namaste/Sites/make_pdf.php on line 9

My fonts and pdflib.upr reside in /fonts and the path variable in the pdflib.upr file is set to //fonts PHP Code:

Parse Error: Syntax Error, Unexpected T VARIABLE In
I can't figure this out I am posting the script as well if you see something wrong please send an email.

=====================================
<?php
$nume = $_POST['nume']
$prenume = $_POST['prenume']
$adresa = $_POST['adresa']
$telefon = $_POST['telefon']
$mobil = $_POST['mobil']
$A = $_POST['A']
$B = $_POST['B']
$C = $_POST['C']
$CE = $_POST['C+E']
$D = $_POST['D']
$zi = $_POST['zi']
$luna = $_POST['luna']
$an = $_POST['an']
$email = $_POST['email']
$comentarii = $_POST['comentarii']
$ip = getenv("REMOTE_ADDR");

$msg = "Nume: $nume
Prenume: $prenume
Adresa: $adresa
Telefon fix: $telefon
Mobil: $mobil
Categoria A: $A
CategoriaB: $B
CategoriaC: $C
CategoriaC+E: $CE
CategoriaD: $D
Data Nasterii: $zi-$luna-$an
IP: $ip";
$to = "email@example.com";
$subj = "candidat nou";
$from = "www.example.com";
mail ($to, $subj, $msg, $from);
header("Location: success.htm");
}
?>
===================================
error is Parse error: syntax error, unexpected T_VARIABLE in D:xampphtdocsestauto schoolsite_flashsend.php on line 4

Fatal Error: PDFlib Error: Function 'PDF_setcolor'
When trying to create simple pfd files with php I got stick on the following error :
I got in my php code :

pdf_rect($pdf, 110, 600, 20, 30);
pdf_setrgbcolor_fill($pdf, 0, 0, 1.0);
pdf_fill($pdf);

It would simple create an rectangle and fills it blue in the pdf file. Only when i try to execute it, it outputs : "Fatal error: PDFlib error: function 'PDF_setcolor' must not be called in 'path' scope" Someone got an idea what could be wrong?

Parse Error: Syntax Error, Unexpected T_OBJECT_OPERATOR
I got following error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /xxx/xxx/public_html/xxxx/GeteBayOfficialTime.php on line 49

what's wrong with my syntax? GeteBayOfficialTime.php required be runned at PHP 5.x.x., but my web host said support php 4.4.4. I don't know whether I got error because this reason. Code:

Fatal Error: PDFlib Error [1016] PDF_open_image_file:
I'm using the following function PDF_open_image_file($p, "jpeg", "../images/hviewlogo.jpg"); I'm 100% sure theis file exists.But it shows the following error

Fatal error: PDFlib error [1016] PDF_open_image_file: Couldn't open JPEG file '../images/hviewlogo.jpg' for reading (file not found) in C:Inetpubwwwroot\_hqsiteextraincludespdflib.php on line 56

Parse Error: Syntax Error, Unexpected $end In C:wampwwwsitescismv1
I keep getting a "Parse error: syntax error, unexpected $end in c:wampwwwsitescismv1contacts.php on line 227". Line 227 is the end of my code. From what I can tell from searching the web, it appears that there is something that is not concantenated correctly. I cannot find it though. Can anyone else see it?

Date In Apache2's Error Log When Error Caused By PHP
I've noticed since moving from Apache1/mod_php4/linux to
Apache2/mod_php5/linux that when an error is produced by PHP and put in
the error_log, the date is no longer logged as well:

Apache1/php4/linux example in Apache error_log:

[Thu Jan 8 15:06:52 2004] [error] PHP Warning: opendir(/foo/bar/): failed to open dir: No such file or directory in /blah/something/listing.html on line 84


Apache2/php5/linux example in Apache error_log:

[client 1.2.3.4] PHP Notice: Undefined variable: browserline in /foo/bar/zing.html on line 18

Is there any way to restore this, either at PHP or Apache level?

CGIWrap Error: Exec Format Error
This message usually indicates there is a problem with the script
itself. Often this indicates either that the #! line of the script
is incorrect, or the script was uploaded in binary mode instead of
ascii mode. Check to make sure that the script does not have
control-M's at the end of every line. That will prevent it from
executing. An easy fix that takes care of this most of the time
is to put '#!/.../perl --' instead of '#!/.../perl' on the first
line of the script.

This is typically a problem if the script was edited or uploaded
from a DOS/Windows/Macintosh station to a unix based server.
If you are not the owner of this script, please forward this error
and the URL that caused it to the script owner. That is often the
component in the URL right after /cgiwrap/.

does anybody know what does this message means?

Parse Error: Syntax Error, Unexpected $end In ..
The error message Parse error: syntax error, unexpected $end in FILE on
line X is one I run into frequently and I know the cause is I missed an
ending quote.

Is there an easy way to determine where the inital " started? I find
myself adding /* */ blocks or cutting/pasting sections of code out in
order to find where the error occured.

Wouldn't it it be nice if the warning message included the line in teh
source where the initial quote occured?

for example say this is my code
<?
function Build_Query(....)
code...

$my_query = "SELECT BLAH FROM ; (line 15)

more code...

} (line 100)
EOF

and you got

Parse error: syntax error, unexpected $end in MYFILE on line 100
started on line 15

Error Performing Query: You Have An Error In Your SQL Syntax Near
I have a query which pulls user info from a database table, and displays it in an HTML table. The user then has the ability to edit this data on the next page by clicking continue, where the first and last name are passed as variables, and are listed as uneditable, whereas all the other fields are able to be edited through a simple form.

Here's my problem, on the final page where the actual database UPDATE occurs, I'm getting a SQL error that looks like this
---------
Error performing query: You have an error in your SQL syntax near 'WHERE first_name='Joe' AND last_name='Schmoe' SET street_address_1='real address' at line 1
----------

It looks like its passing the first and last name fine (through hidden inputs), yet when I start to pass the edited fields as variables, it cuts off for some reason. The actual full value that I entered for "street_address_1" was "real address 333". It looks like it cut off after the "address", and didnt even bother to send the other 8 fields.

My code on the processing page looks like this
----------
$street_address_1_update=$_POST['street_address_1_update'];
$street_address_2_update=$_POST['street_address_2_update'];
$city_update=$_POST['city_update'];

$sql ="UPDATE mailing_list WHERE first_name='$first_name_update' AND last_name='$last_name_update' SET street_address_1='$street_address_1_update' street_address_2='$street_address_2_update' city='$city_update'"
----------
I only included 3 fields for brevity's sake. The rest pass the same way as these three. Again, the first and last names are simply passed as hidden inputs through the form.
Anybody have any clue what might be causing this? I know the error is a SQL one, but I may not be passing the variables correctly in PHP.

Redirect Error Reported As SQL Syntax Error
I just spent way too much time trying to track down an error that was incorrectly reported just now, and I would like to see if someone can explain to me why it was reported that way.

The purpose of the code is simply to delete a record and then redirect back to the page where the delete was started. The code looks like this:

elseif ($_GET[action] == "delete")
{
$query = "delete from product_subcategory2 where product_sku=$_GET[product_sku] and subcategory2_id=$_GET[subcategory2_id]";
$result = mysql_query($query) or die (mysql_error());
$affected_rows = mysql_affected_rows();

if ($affected_rows == 1)
{
header("Location:product.php?action=edit&product_sku=$product_sku");
}
else
{
do_header();
echo("<center><p class="body">Unable to delete Subcategory2. Please try again.</p>");
echo("<a href="product.php?action=edit&product_sku=$product_sku">Edit Product</a>");
do_footer();
}
}

The SQL was find, but the error I had was in the header line. What I had was this:

header("Location:product.php?action=edit&product_sku=<?php echo $product_sku?>");

so since I was already in PHP, I didn't need the "<?php echo" for $product_sku.

Parse Error: Syntax Error, Unexpected
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/hawkwebd/public_html/buy.php on line 2
what does this mean

ERROR: Invalid Identifer @ 726 - MYSQL ERROR
I am trying to insert this query, I inserted it directly with SQL in phpmyadmin to see what the exact error was

I'm running SQL 4

QuoteError
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Invalid Identifer @ 726 Code:

Error Deleting Row (error 1064)
I am running this sql statement:

$query = "DELETE FROM customer
WHERE cust_id = " .$custID;

I get "error 1064 : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2"
This doesn't make sense to me, since in the same script I have:

$query = "SELECT * FROM customer
WHERE cust_id = " . $custID;

and it works just fine? I tried hardcoding the custID and the delete query worked just fine, how can I get it to work with my variable?

Parse Error: Syntax Error ?
Does anyone know what this means? The file it is saying user.php is a class file however i think i got all the opening and closing braces.

QuoteParse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /*/*/*/*/includes/user.php on line 10

STRANGE "Fatal Error: Call To Undefined Function..." ERROR
why strange you ask? here goes:

I have been working with Php and Mysql for a week without any problems.
Today I tried executing a php page that connects to mysql and creates a
new database, I got this error:

"Fatal error: Call to undefined function mysql_connect() in C:Program
FilesApache GroupApache2 est\_debug_tmp.php on line 3".

I did some reading on the net and checked all my configuration, and it
looks o.k. (and it already worked well a whole week before today).

The strange thing is that I have another form that inserts data into
the same database in Mysql, and it works like a charm (needless to say
but both pages log in with the same username to the same database).

Parse Error: Parse Error, Unexpected T_STRING, Expecting ',' Or ';'
I've got error for this:

<td width="23%"><font face="Arial, Helvetica, sans-serif" size="1">
<?php echo online: $int_count;?>
</font></td>

Parse Error: Parse Error, Unexpected T_IF, Expecting ',' Or ''
I'm playing around with PHP's imap functions and I'm encountering a syntax error that I can't figure out completely.

Quote: Parse error: parse error, unexpected T_IF, expecting ',' or '' in /home/kingmike/docs/WEBMAIL/inbox.php on line 53 PHP Code:

Parse Error: Parse Error, Unexpected T_LNUMBER
what's wrong with this code?

line 19:
if($_POST['miners']*500+$_POST['magicians']*800+$_POST['knights']*1200+$_POST['rangers']*1500>$fdatabase['gold']){echo("false!");}

I got error:

Parse error: parse error, unexpected T_LNUMBER in /home/www/xyz.php on line 19

Parse Error</b>: Parse Error, Unexpected T_CONSTANT_ENCAPSED_STRING I
Someone please help me with this as i am getting the above errors.. in line 6 i..e mysql...

Parse Error: Parse Error, Unexpected T_STRING
I have edited a php script to pick up the data from a webform and convert it into a email and when i submit it i get a error.....

Parse error: parse error, unexpected T_STRING in /home/nas01l/f/flexamatic.com/user/htdocs/estore/sendmail9.php on line 6

the php is:

Parse Error: Parse Error, Unexpected T_STRING,
Can a class define a constant as Java or C does? I tried to define a constant by
define("AMAZING_VALUE", "1997"); but it prompts:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'


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