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.





404 Error Pages


On the page which I redirect visitors to, when the file they are looking for does not exist, I want to catch the referrer URL, then strip it down to the page name only.

Example:

http://www.example.com/folder/some-page-name.html

I want to grab the words "some-page-name" from that referrer URL.




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Custom Error Pages For Web Pages?
A site has the following htaccess commands in it for custom error pages:

ErrorDocument 400 /error.php?code=400
ErrorDocument 401 /error.php?code=401
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
ErrorDocument 405 /error.php?code=405
ErrorDocument 500 /error.php?code=500
ErrorDocument 501 /error.php?code=501
ErrorDocument 502 /error.php?code=502
ErrorDocument 503 /error.php?code=503
ErrorDocument 504 /error.php?code=504

So, there is one error page with php code in it. Depending on the error code that Apache sends, it will display the correct error message on the website.

However, if I type in http://www.domain.com/fdfdsfsdf.html I will get the error page correctly. However, if I type http://www.domain.com/fdfdsfsdf.php, it does not use the custom page, but using the default apache not found page. Is there something else I need to add to the htaccess file to make php errors use the custom page?

I was told by the owner of the hosting company I work at that every time apache sees a .php extension, it automatically assumes it is a script and will not parse the correct error message for it.

Does anyone know how to get .php extensions to use the custom error page on an apache server? Is there something else I can add to the htaccess file to facilitate this?

View Replies !   View Related
Error Pages
When a user clicks on a link on my page that points to a non-existing page
he will be redirected to error/404.php (by .htaccess)

How can I find the link that he was trying to follow, and the page on which
that link was.

If a user entered a non-existing url he will also be redirected but then
only the wrong url can be fetched. How can I do that?

View Replies !   View Related
Pages = 404 Error
I have recently installed phpBB2 and from my server it runs fine but wen i try to access the pages from another pc it either comes up page cannot be displayed or the page will partially load up and very rarley does it come out correctly, the same thing happens with my phpinfo.php file.

View Replies !   View Related
Error Pages Tip
I found the following article VERY useful: custom error pages with php delivering a 404 is fairly standard stuff, but it also describes a VERY easy way to deliver 301 redirects without any .htaccess and mod_rewrite voodoo. i was just faced with the prospect of redirecting 150 pages from one domain to a new one, and i had the 301 redirect set up within 30 minutes, with no need for any mod_rewrite regex at all (all checked with the server header checker on this site.

View Replies !   View Related
HTTP_REFERER In Error Pages
I've made my own error page for 404 errors (error404.php) and added it to my .htaccess file. So far so good. This PHP script creates a log file containing all 404 errors, but I want to add the referrer from $HTTP_REFERER so I know who is referring to a page that doesn't exist anymore on my site. Just accessing $HTTP_REFERER won't work (this works only when from a local page on my site I access e.g. an image which no longer exists).

View Replies !   View Related
Custom Error Pages
I'm just trying to set up custom error pages that will include the filename requested in the output, whether they typed in the url or it was from a link... I can't seem to get this to work. I've tried using php, javascript and perl and all with no luck...

In php, $_SERVER["REQUEST_URI"] returns nothing

in perl, $ENV{"REFERER"} also returns nothing

in javascript, document.referer also returns nothing

I haven't tested these with a 'bad link', they have all been tested by entering a non-existent page in the address bar. I need this to give me the file name only just so that I can include it on the resulting 404 not found page..

View Replies !   View Related
Error Pages With .htaccess
I've done the standard old trick of adding the error page line into ..htaccess which works absolutely fine if I accidently go to any file other than .php But if I go to "doesntexist.php" I get a different error message seemingly already installed somewhere on the server. Does anyone know how to override this? There must be a setting somewhere.

View Replies !   View Related
Includes And Error Pages
I have set up a basic include script and I would like to display an error page if the user types in an incorrect url but I don't know how to go about this... Here's what I currently use:

elseif ($_GET['id'] == "1")
{ $page="1.txt"; }

elseif ($_GET['id'] == "2")
{ $page="2.txt"; }

else
{ $page="1.txt"; }

include($page);

View Replies !   View Related
Internal Server Error On PHP Pages Only.
For the past week or so I have been getting some weird happenings with PHP installed on my Windows Server. I keep getting the "Internal Server Error" on PHP pages after about 19 or 20 hours of uptime. It's weird because it works just fine up until a certain point when it seems like it just wants to give up and not work. The HTML pages work just fine and so does the email and FTP that I also run on the server. There are no problems running PHP for the first 19 or 20 hours. When I get this error, I restart the server and it works properly again...

View Replies !   View Related
Generated 404 Error Pages And Googlebot
I have a "site search" program written in PHP. All works fine - except I am unsure of what to do for "empty" searches (specifically, what header code to return).

Until now, when someone submits the form without entering any data, I have been returning a 200 OK header, and redirecting the user to the site homepage, so that the user can try again. I now read that this could cause problems, especially with Googlebot, and that I should be returning a 404 Not Found instead.

So here is my confusion:

User doesn't enter anything - I have to return something. But what? I do want to return the page he was on, so that he can try again, possibly adding a "try again" message. But what header code should I be returning?

View Replies !   View Related
Making Project Pages Error
When you see in sourceforge the projects pages you see http://sourceforge.net/project/[project_name]. I would like to do this in my site, but i've some problems to figure it out. When a new project is created, automaticly it will create a folder with is name, but then i create a php file to, so i can include the model of project page so i don't have to copy all of files, right?

When a person writes - http://mydomain/project/[wrong project] how can i call a php file when this happens? so i could say like "no project with this name" or redirect to the main page.

View Replies !   View Related
.htaccess Custom Error Pages
I am trying to create a .htaccess file in which to create custom error pages. Quote:

ErrorDocument 400 http://www.humsci.auburn.edu/errors/badrequest.php
ErrorDocument 401 http://www.humsci.auburn.edu/errors/authreqd.php
ErrorDocument 403 http://www.humsci.auburn.edu/errors/forbid.php
ErrorDocument 404 http://www.humsci.auburn.edu/errors/notfound.php
ErrorDocument 500 http://www.humsci.auburn.edu/errors/server.php

View Replies !   View Related
Parse Error - Merge The Pages Into One For The The Form
I wasn't able to fix this code so I decided to merge the pages into one for the the form. here it is: Code:

View Replies !   View Related
Blank Pages - Show How Far The Php File Got Before It Got A Syntax Error
Is there any way to make the page show how far the php file got before it got a syntax error and makes a white page because I have some larger files that do this same thing and I dont know why. I have the code that shows you what is wrong with the web page but it still shows up white here is the code:

View Replies !   View Related
PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved.

I'm on a Windows 2003/PHP 5.22 setup.  I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well.  I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work.

The install dumped all the PHP related files under "c:program filesphp".  I've ensured that path is in my windows PATH statement for my env vars.  I've also verified that "c:program filesphpphp-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". 

From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine.  It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed".  I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine.  It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error.

My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why.

View Replies !   View Related
Avioding Expired Pages, & Carrying Data Accross Multiple Form Pages
I have a checkout/order form that consists of 6 pages, all PHP. The are linked to one another, like, after the user finishes page 1, they proceed to page 2, etc... The first two pages are submitted by a GET link, so those are not in my question. The next 4 are submitted using a <form>. Throughout all of the pages, i would probably have about 25-30 variables, things that the user has to fill out. I have two questions,

1. What would be the best way for me to keep track of all the data moving throughout the pages, like storing it from page 4, and i still need to access it on page 6.
2. I don't know if anyone could help me here, but does anyone know of a way to code around those ugly "page expired" pages, because of a submitted form. If a user needs to go back, which most likely they will, is there some sort of way for me to skip the expired page?

View Replies !   View Related
Converting Html Pages Into Dynamic Pages
I built a website in html, using Dreamweaver. I need to have a database built within these pages and the person who is going to do it told me that they will have to convert all my html pages into dynamic pages (php).

Is it complicated to do this or do I just have to save my pages in php instead of html in Dreamweaver ?

View Replies !   View Related
Convert The PHP Pages To HTML Pages
how to Convert the PHP pages to HTML pages. provide me the specificaly coverting Codes or Scrpit to Converted the PHP Page to HTML page. If there in any software to convert the PHP Page to HTML pages please specify.

View Replies !   View Related
Sending People To Specific Pages That Are Coming From Specific Pages...
I want to show some specific pages to people that comes to my site from
specific urls, I know the variable $_SERVER['HTTP_REFERER'] will be
used but how?

For ex if the visitor comes from a site that is like:

I want to send this person a specific.php . I used below code but not
worked:

<?php

if($_SERVER['HTTP_REFERER'] == "www.cominghost.com" ||
$_SERVER['HTTP_REFERER'] == "cominghost.com" ||
$_SERVER['HTTP_REFERER'] == "www2.cominghost.com"){

// Specific page html goes here

}
else
{
header("Location: index.php");
}
?>

This code not worked for some cases like if the visitor comes from
http://www.cominghost.com/account/targeturl.php or
http://cominghost.com/account/targeturl.php Ok I know the if statement
not working but How?

View Replies !   View Related
Error:Parse Error: Syntax Error, Unexpected T_STRING In C:xampphtdocsgenerare.php On Line 25.
i'm using this code to create a file, and to write inside it: Code:

$fp=fopen('C:xampphtdocs'.$_POST['nume_pagina'].'.html','a+');
fwrite($fp,"$sursa");
fclose($fp);

The file does not exist but it's created automatically because of the a+ mode.Still i receive error:Parse error: syntax error, unexpected T_STRING in C:xampphtdocsgenerare.php on line 25.

View Replies !   View Related
ERROR: CURL ERROR: 60: Error Setting Certificate Verify Locations:
what this error means and how to fix it?

ERROR: cURL ERROR: 60: error setting certificate verify locations:
CAfile: /usr/local/curl-7.12.0/share/curl/curl-ca-bundle.crt
CApath: none
unable to process subscribe

View Replies !   View Related
Including Pages In Pages
When including a page inside another (include('page.php')), is it bad for
the second document to also have <head> and <body> tags etc? Im using
iframes currently,

and it works, but getting the page to match the content
is kind of a javascript hack that only works after the page is loaded, not
counting the images. So the new page loads, doesnt fit the old page size,
and its changed.

View Replies !   View Related
Error: Parse Error: Syntax Error, Unexpected $end
I got this error on my forum "Parse error: syntax error, unexpected $end in /home/bcforum/public_html/includes/template.php(151) : eval()'d code on line 45", I don’t know why but it just appears. Each time I click “post reply”, this thing appears. I think it’s about the subject, because before the error appeared the subject was automatically inputted on the subject inputbox writing “RE: subject”, now it doesn’t put noting.

View Replies !   View Related
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:

View Replies !   View Related
Fatal Error: PDFlib Error: [2516] PDF_findfont: Metrics Data For Font
I've managed it to get the first bit working of the script, that was the permissions.

I have another problem I get this error:

Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Times New Roman' not found in /var/www/html/pdf/pdf-test.php on line 13

Code: .............

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_VARIABLE On Created A Simple Form
I tried to created a simple form, after click submit will save data to a new text (.txt) file. But i'm facing following error, Code:

View Replies !   View Related
XML Error Parsing SOAP Payload On Line 1: Empty Document - Error Using NuSOAP
I posted a problem here a couple of days ago that had nothing to do with NuSOAP in the end! However this one I belive maybe being caused by NuSOAP.

I get the following error when I try to invoke a service....

XML error parsing SOAP payload on line 1: Empty document

The code is designed to send an email which it does despite the error, however I cant seem to find why i'm getting the error. Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_STRING - Call Multiple Headers
I need to call multiple headers and have managed to fix the error

'Warning: Cannot modify header information - headers already sent by (output started at '
all bar the last header by using ', false'

The line of code

Code:
Header('"Location:/".id_code(mysql_result($rs, 0, 'product_id'))', false);

and I keep getting the error message

Parse error: syntax error, unexpected T_STRING

View Replies !   View Related
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:

View Replies !   View Related
ErrorParse Error: Parse Error, Unexpected T_STRING In Order_fns.php Line 91.
keep getting this errorParse error: parse error, unexpected
T_STRING in order_fns.php line 91. the code is below for the file and
I've indicated line 91

<?php
function process_card($card_details)
{
// connect to payment gateway or
// use gpg to encrypt and mail or
// store in DB if you really want to

return true;
}

function insert_order($order_details)
{
global $HTTP_SESSION_VARS;

//extract order_details out as variables
extract($order_details);

//set shipping address same as address
if(!$ship_name&&!$ship_address&&!$ship_city&&!$ship_state&&!$ship_zip&&!$ship_country)
{
$ship_name = $name;
$ship_address = $address;
$ship_city = $city;
$ship_state = $state;
$ship_zip = $zip;
$ship_country = $country;
}

$conn = db_connect();

//insert customer address
$query = "select customerid from customers where
name = '$name' and address = '$address'
and city = '$city' and state = '$state'
and zip = '$zip' and country = '$country'";
$result = mysql_query($query);
if(mysql_numrows($result)>0)
{
$customer_id = mysql_result($result, 0, 'customerid');
}
else
{
$query = "insert into customers values
('', '$name','$address','$city','$state','$zip','$count ry')";
$result = mysql_query($query);
if (!$result)
return false;
}
$query = "select customerid from customers where
name = '$name' and address = '$address'
and city = '$city' and state = '$state'
and zip = '$zip' and country = '$country'";
$result = mysql_query($query);
if(mysql_numrows($result)>0)
$customerid = mysql_result($result, 0, 'customerid');
else
return false;
$date = date('Y-m-d');
$query = "insert into orders values
('', $customerid, ".$HTTP_SESSION_VARS['total_price'].",
'$date', 'PARTIAL', '$ship_name',
'$ship_address','$ship_city','$ship_state','$ship_ zip',
'$ship_country')";
$result = mysql_query($query);
if (!$result)
return false;


View Replies !   View Related
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:

View Replies !   View Related
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?

View Replies !   View Related
Parse Error: Syntax Error, Unexpected $end In Tests/act3.php On Line 7
i am getting a "Parse error: syntax error, unexpected $end in tests/act3.php on line 7" error. Can some one explain why this doesn't work and/or if there is just a typo in the book i bought? (there are more codes in this book that don't work. i think it has to do with my version of php. Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected ';' In /home/v504/public_html
im getting this error when i goto my brothers website that im helping him wit :

Parse error: syntax error, unexpected '' in /home/v504/public_html/includes/languages/english/index.php on line 14

my code is supose to be : i tryed to put a video into this code but took it out when it didnt work and this is what i got. and also tell me how to code a video to put it on the title section of the code.

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_CONSTANT_ENCAPSED_STRING, Expecting ',' Or '' In /home
I got an error,

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or '' in /home/pgn/public_html/game3.php on line 73

I will make line 73 RED

code removed

Anyone know what that means?

View Replies !   View Related
Warning: Pg_exec(): Query Failed: ERROR: Parser: Parse Error At ...
I have the following:

$sql= "select shopname from shop where exits SELECT shopname FROM shop where shoptype = '$_POST[option]'";

Its embedded within php. keep getting error:

sportsselect shopname from shop where exits SELECT shopname FROM shop where shoptype = 'sports'

Warning: pg_exec(): Query failed: ERROR: parser: parse error at or near "SELECT" at character 39 . in /home/students/ug/ug75ixc/public_html/shops/storeSearch.php on line 46

i know what i am doing.

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_VARIABLE, Expecting T_OLD_FUNCTION
i keep running into this and been working on it for 2 months and still can't figure it out

Parse error: syntax error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/under/public_html/kp/includes/inc-setup.php on line 16

PHP Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_STRING - Gets Variables From A Form
I have a page called results.php, that gets variables from a form and puts them into a mysql database. I get an error when the form is submitted:-

Parse error: syntax error, unexpected T_STRING in /hosted/subs/ulmb.com/g/r/greenshawaida/public_html/results.php on line 12

Lines 12-24 are just a simple if statement. Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_STRING In /home/strato
I've been trying to get this all day.

I get this error:

Parse error: syntax error, unexpected T_STRING in /home/strato/public_html/test.php on line 43

Below is the code starting with LINE 41

PHP Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING
I am getting the following error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /foldername/newarticle.php on line 14

I have removed any whitespace etc that I can find which leads me to conclude it must be a syntax error. My code is to follow: Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_VARIABLE - Photo Galery
I am trying to create a photo galery for my site. However I am getting the following error and I really can't work out why. Can anyone see what I am missing?

Parse error: syntax error, unexpected T_VARIABLE in /home/users/uks53122/html/sportsmatesreunited.co.uk/gallery/class.photogallery.php on line 25

This is the section of code that seems to be creating the code. The line in red is line 25. Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING Or T_VARIABLE Or T_NUM_STRING In C:
I'm trying to test a SELECT query. When I run the query, I receive the following message:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:InetpubfullfocusInformed est.php on line 11

I have stared at this query for a long time trying to figure out what's wrong. I can't seem to figure it out. Code:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_ELSE In /mounted-storage/home23a/sub001/
the first few lines of my code:

<?php
session_start();
if($_SESSION["login_user"] = "user")
{
Header("Location: ../members/index.php");
}
elseif ($_SESSION["login_user"] != "admin");
{
Header("Location: index.php");
}
else
{

And my error: Parse error: syntax error, unexpected T_ELSE in /mounted-storage/home23a/sub001/sc21473-GRUR/www/inphp/administration/protected.php on line 11

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_CONSTANT_ENCAPSED_STRING In /home/lizzieni/public_html/data.php On Line 3
i'm getting an error on my third line. the error is:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/lizzieni/public_html/data.php on line 3 Code:

View Replies !   View Related
Create A Table For The Results Of An Online Survey - Parse Error: Syntax Error, Unexpected T_STRING
I keep getting this error when trying to create a table for the results of an online survey - the line is

`id` NOT NULL auto_increment, Code:

View Replies !   View Related
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:

View Replies !   View Related
Error In Calling A Stored Procedure - ERROR 1064 (42000):
i've a sql query as follows:

SELECT tb1.col1,tb2.col1,tb3.col1 FROM tb1,tb2,tb3 where
tb1.col1=tb2.col2 AND tb3.col3=tb2.col3 AND tb2.col4 BETWEEN 4 AND 5
AND tb2.col5 BETWEEN 6 AND 7;

if I run the above query thru php it works, but if i try to call a
procedure for above query as shown below it thrws error
ERROR 1064 (42000): the right syntax to use near 'tb1.col2
<?
$wherestr = "tb2.col4 BETWEEN 4 AND 5 AND tb2.col5 BETWEEN 6 AND 7";
CALL proc4($wherestr);

?>
Procedure#=>

DELIMITER $$

DROP PROCEDURE IF EXISTS `midas`.`sp_dm_domain_keyword_mapping`$$
CREATE DEFINER=`oteuser`@`%` PROCEDURE `sp_dm_domain_keyword_mapping`(
whereval varchar(500))
BEGIN

set @whereval = whereval;

set @sql1 = CONCAT('SELECT tb1.col1,tb2.col1,tb3.col1 FROM tb1,tb2,tb3
where tb1.col1=tb2.col2 AND tb3.col3=tb2.col3 AND ',@whereval);
PREPARE stmt FROM @sql1;

EXECUTE stmt using @whereval;
DEALLOCATE PREPARE stmt;

View Replies !   View Related
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:

View Replies !   View Related
Parse Error: Syntax Error, Unexpected $end On A Windows Server
i have a code i made to make a little test.. im on a windows server..

<?php
set_include_path('C:hshome ipa-mumu-anime.com');
include("../test2.php");
echo "World";
?>

i get this error message and can't seem to find the solution. can anyone figure this for me please?

Parse error: syntax error, unexpected $end in C:hshome ipa-mumu-anime.com estest1.php on line 5

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_CONSTANT_ENCAPSED_STRING In /path
I tried changing
Header("Content-type: image/jpeg"); to
Header(Content-type: "image/jpeg");

Header("Content-type: "image/jpeg");

Header("Content-type: image/jpg");

but didnt work what am I missing Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /path/radupload/resize.php on line 8

Line 6 // Path to your jpeg
7
8 $upfile '/path/to/my/web/site/uploads/popular/rock07.jpg'
9 Header("Content-type: image/jpeg");
10
11 $size = GetImageSize($upfile); // Read the size
12 $width = $size[0];
13 $height = $size[1];
14
15 // Proportionally resize the image to the
16 // max sizes specified above

View Replies !   View Related
Parse Error: Syntax Error, Unexpected T_LNUMBER In Cookie
Getting the following error with the script below. Not sure what it is though .....

Parse error: syntax error, unexpected T_LNUMBER in cookie.php on line 48

PHP Code:

View Replies !   View Related
Fatal Error: Call To A Member Function On A Non-object - Error
I am getting the following error:

Fatal error: Call to a member function on a non-object in

Below is a stripped down version of the code:

View Replies !   View Related

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