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.





Page Cannot Be Displayed While Attach Images To Posts


i am including the ability for users to attach images to their posts. Now they can attach more than one image. First time round. the image gets uploaded and everything works fine. second time round though. i get a 'page cannot be displayed' error. The address in the address bar is correct. i just cant see why its working first time and not second. Anyone experienced this before or myt know why its happening?




View Complete Forum Thread with Replies

Related Forum Messages:
Formail Attach Files/images
I have downloaded numerous formmail scripts, most do not work. Had succes with Jacks but does not attach attachments. Anyone know a reliable formmail script that works and can attach files/images.

View Replies !
Library That Needs To Be Enabled To Have Images Displayed?
I am trying to display an image for a form. I do not want to use a database and Ive been trying echo to display the image but nothing is working. Is there a library that needs to be enabled to have images displayed? I have the GD Library already enabled.

View Replies !
Make Posts Continue On Another Page?
I'm was wondering how I could make it so that after the first 15 posts it continues on another page for 15 and then another and another?

Kind of like the system here. When a certain amount of posts are on a page it creates a page two to continue with the posts..

View Replies !
Add Recently Added Posts Etc To Front Page
I am running a forum and now want to create another front / homepage where i can have other stuff related to the site as well as displaying recently added posts from the forum.

I have looked in the database for some sort of date or time that a certain post has been posted but doesnt make sense, it doesnt look like a sort of time and date that is humanly readable?

View Replies !
Displays 5 Posts Per Page In Descending Order
I have been doing up a website which will, among other things, display news that I input into the MYSQL database. I have a working version of this where it just displays 5 posts per page in descending order (the latest at the top of the page) with the page numbering underneath them.

Now what I wan't to do is just dispaly the latest 5 posts on the page but, I want to dispaly them so that I can put in a Javascript function to maxamize and minimize each post by clicking on the title.

So, I have, ID, Title, Newstype, Author, Post, Date. In my mind I see this as display each of these using the COUNT(*) thing and just subtracting 1, 2, 3, 4 to get the 5 posts I want. I just don't know how to do it.

View Replies !
Page Not Displayed!
I have a site in PHP with a page 'approveMembers.php' within 'approve' directory under the site directory. This site has been hosted on net. Now the problem is when i access this page from my machine that uses a proxy server to connect to the internet, the contents get displayed properly.

However, when i use a machine that connects to the internet directly (without using a proxy), the contents do not appear in the page even though the status bar read 'Done' after loading the page. Code:

View Replies !
Page Cannot Be Displayed
OS: Windows 2003 Server
Program: EasyPHP1.8

Changed port to 81 in httpd.conf, rebooted and everything....

127.0.0.1:80 still connects to the index page
127.0.0.1:81 doesnt connect (Page cannot be displayed)
192.168.1.181:80 & 192.168.1.181:81 doesnt connect either (192.168.1.181 is the computers IP)

Is there any configuration I have to do with Windows Server 2003? This is all after a clean install of the OS. Firewall is off (default) or anyone have any advice what the problem could be?

View Replies !
The Page Cannot Be Displayed!
I have a problem when try to upload a quite BIG file (more than ~600K, less than 600K is OK). My browser said : "The page can not be displayed" - in IE and "The connection was reset" - in Mozilla Firefox.

Have someone found the problem like this before? And how can I solve it?? My very very simple code is:

View Replies !
PhpMyAdmin - Page Cannot Be Displayed
I programmed my config.inc.php file with the codes below. But i cant go to the website.. It shows an error msg, "page cannot be displayed"

What haf i done wrong.. N i m actually not sure about my local host.. Cos i m using my school wireless network..

$cfg['PmaAbsoluteUri'] = 'http://www.example.com/phpMyAdmin-2.5.7-pl1/'

$i = 0;

$cfg['Servers'][$i]['host'] = 'example.com' // MySQL hostname

$cfg['Servers'][$i]['port'] = ''

$cfg['Servers'][$i]['socket'] = ''

$cfg['Servers'][$i]['connect_type'] = 'tcp'

$cfg['Servers'][$i]['controluser'] = ''

$cfg['Servers'][$i]['controlpass'] = ''

$cfg['Servers'][$i]['auth_type'] = 'config' // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'username' // MySQL user
$cfg['Servers'][$i]['password'] = 'my_pass' // MySQL password (only needed
// with 'config' auth_type)

View Replies !
Page Cannot Be Displayed Using Php.exe On Win2k
Im using php.exe on win2k. When I visit a php page i get page cannot be
displayed. Other pages work fine. Any ideas? the php dll wont work at all,
it refuses to read the ini file at all.

Really anonying, cant figure this out.

View Replies !
SQL Statements Displayed On Every Page
Every php page that queries my MySQL db outputs the SQL string on the result page. I just want to output the results. Code:

View Replies !
&JAVA - Page Cannot Be Displayed
I have installed j2sdk1.4.2_14 to work with my php-4.3.9-3.15. And i have follow all the step from head to tail.

Now, i suppose to just create a simple php coding on java function. When i exec the page...it did not show any error but just 'The page cannot be displayed'.

I hava added a line of : export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_14/jre/lib/i386/server:/usr/java/j2sdk1.4.2_14/jre/lib/i386 to etc/init.d/httpd. Seems not working as well.

View Replies !
CHMOD 777 - Page Cannot Be Displayed. Why?
I have placed a CHMOD 777 on a folder and now all of the files inside that folder return 'page cannot be displayed' error, an internal server error (500).

I have tried on individual files as well.. the same thing happens. Anyone know what is going on?

View Replies !
Hiding Hyperlinks For Page Displayed
Can anyone point me in a direction to find a tutorial on writing a script that will hide, (not show) The text link for the home page if my vistor is on the home page. i have read a book and they have on th4ere but it only deals with changing the type of image not disabling it and hiding it from veiw.

View Replies !
Pagination Displayed In One Long Page
My site is a virtual pet style site where there are user shops and at the moment all items are displayed in one long page, not so great when theres over 100 products in one store.

Below is a copy of the code. If anyone could please give me some pointers, Id really appreciate it. I've gone through tutorials but they seems to be to advaced for what I need and I simply get lost. Code:

View Replies !
Page Blank But No Errors Displayed
I have a script that's just returning a blank page. So I'm guessing I've got an error somewhere.

In fact I know I have because if I comment out one or two classes, I get an error message coming up. But why do I get a blank page at first? How come it's not giving me an error message for my obviously faulty class? Code:

View Replies !
Flip Flop The Displayed Page
I want to test different content on a landing page to see which my visitors like the most. Version A is to be shown 50% of the time, Version B to be shown 50% of the time.

So, visitor #1 gets shown Version A, visitor #2 is shown Version B, visitor #3 shown Version A and so on.

My idea is that I would have some code that would say include(content-a.php) or include(content-b.php) depending on which is due to be shown next.

View Replies !
Upload Something To Gets Displayed On The Pagination Page
I coded an upload system, and a pagination script. These 2 things are linked together so when you upload something it gets displayed on the pagination page. Now I want to make it so if the upload page is executed, then refresh the pagination page.

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !
How To Limit Number Of Lines Displayed On The Page?
I just wrote this script to read information from a TXT file that contains list of JPEG files, and the list is rather huge. So I want to limit the number of displayed files to like 20 per page (with NEXT/PREVIOUS links to the next or previous 20), but I have no clue how to do it. Code:

View Replies !
Phone Number Is Not Displayed In The Paypal Page
I am using Paypal in my site. The problem is the phone number is not
displayed in the paypal page, but am sending the phone number in a
hidden value with the name "H_PhoneNumber".

Can anyone tell what could be the problem? Why am not getting Phone
number in the paypal page.

View Replies !
Linking Functions To Data Displayed On Page
I have a text input box, in which you can enter a user ID. You click 'find user' and this populates a table with this users details. So far pretty straight forward.

What I want, is a set of functions relating to this user, such as a simple button: 'Delete User' (the functionality of which is self explanatory). Code:

View Replies !
Page Cannot Be Displayed While Post Or Reply To A Topic
I can send emails through my forum can access Admin and change etc. for the first time ever the other night tried to post or reply to a topic and I get the below message I have tried everything I can think of. Code:

View Replies !
Editor To Be Displayed On A Page Giving To The User
I want an editor to be displayed on a page giving to the user the chance to write anything he likes, and then save those contents and display then into an html page, which is exactly what i'm doing now, posting this new thread. How can i do that?

View Replies !
How To Control The Number Of Page Links Displayed With Pagination?
Does anybody know how to control the number of page links displayed with pagination?  I mean like, with the tutorial on this site, if I had, say 50 pages of results, it actually creates individual links for page 1-50.  How could I make it truncate say 1-5, and then an arrow to goto 6-11 and vice versa? Here is the code the tutorial uses

    for($i = 1; $i <= $numofpages; $i++){
        if($i == $page){
            echo($i." ");
        }else{
            echo("<a href="$PHP_SELF?page=$i">$i</a> ");
        }
    }

View Replies !
Session :: Problems With This Web Page Might Prevent It From Being Displayed Properly
when i add php session

<?
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>

I just get this error "Problems with this web page might prevent it from being displayed properly bla bla". Of course am adding those lines just the first thing in each page b4 anything else. so am getting that error in pages that have template applied to it.

and when i delete the session lines it just back to normal. So i dont get whats the problem with the session.. there is no other way of writing it. and the session is working already properly in another project on same computer. am using php & IIS.

View Replies !
How Do You Do No New Posts/new Posts Function
On forums you have the little image at the side.  Usually one is faded which means no new posts and the other is the same image but darker which means new posts.

How do you go about logging when people have looked in a forum. Surely you can't have a table with an activity time for every forum as this would be imense.

View Replies !
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 !
Size The Page Displayed To The Size Of The Persons Browser.
I would like to know if there is some code in php that will size the page displayed to the size of the persons browser.

View Replies !
No PHP Error. Just "Page Cannot Be Displayed"
I was wondering if someone could explain why I'm receiving this error. It's
like a 404 error but I think it might be something else.

Basically, I have a page where a user inputs his email address. The system
is supposed to look up the email address and send the associated password to
that email address. It worked up until a few months ago. Note that the
validation works. So, if the user tries to submit a blank text box, it
returns an error. If the email address is not found, it returns an error
"Email not found." But if the email is valid, it just dies. This code
worked a few months ago when I initially wrote it....

View Replies !
Reg Exp: Want To Remove All Images From Page
I looked at a couple tutorials on reg exp. But have not found a way to remove all images from a page. HOw can i do it?

It seems easy enough

$text = ereg_replace("<img src [then everything until] (gif|jpeg|jpg)">[anything here]</a>);

I just can't get it, after so many tries. Have searched google too. Any ideas?

View Replies !
Howto Images From A DB To A Web Page
I am in a hurry to learn this so I am looking for a tutorial that shows how to upload the info in the database and then use php to load the images into cells of a table on a web page. Sort of like a gallery but for displaying products.

I am studying how to make thumbnails for the main page and allowing a user to click on it or a link and open a new window with the larger view of the product. I am sure this has been done a hundred times on the net but it is new to me. Anyone know of some good tutorial on doing what I am talking about.

View Replies !
Grab Images Off A Web Page
Can someone help with a script to grab all images from a page then save them to a directory on your server. For example I'd put yahoo's url and it would grab all the images on the front page and save them to my directory.

View Replies !
FTP Uploader Page For Images
I'm trying to write an FTP uploader page in PHP. I've got a couple of problems:

1) I can only get it to upload files in the same local directory as the php page and

2) It won't upload images. Works with PDF, Word files, text and html But mostly I'd want it for images!


View Replies !
Different Random Images On The Same Page
I'm trying to display three different random images from the same db on the same page. Code:

View Replies !
Check Page For Images
how to check the page (html page) for images and display the url of the images.
I'm searching for almost a week for the sample code but i can't
find anything. What are the syntax that im going to use?

View Replies !
Are Multiple GD Generated Images Possible On One Page?
I've been experimenting with generating PNG files via PHP and GD. All was going fine, until I tried to put more than one image on a single page.

<img src="draw.php?text=Picture1"><br>
<img src="draw.php?text=Picture2"><br>
<img src="draw.php?text=Picture3"><br>

The example above produced 3 images, but they all have 'Picture3' on them. Seems like theres only 1 temp storage area for the images?

View Replies !
Imagecopyresampled - Can One Use Images On The Fly, Even If The Page Headers Have Already Been Sent?
I'm looking at this page:

http://us2.php.net/manual/en/functi...pyresampled.php

I took the code from Example 2, almost exactly, and tried to use them
on this page:

http://www.monkeyclaus.org/media/au...eId=PT_tertiary

I get gibberish on the page, and then I get a warning in the error logs
about "headers already sent"

To serve an image in the middle of the page like that, do I have to
turn it into a physical file and serve it in an IMG tag?

View Replies !
Emailing Html Page With Images
how can I email an html page that has images in it? I have the html page in "page.html" and use the following in page.php: Code:

View Replies !
Create Images From Within Current Page
I did a few searches but came up empty on this subject, although I may be blind. I know how to create an image and all that jazz ... but am having trouble figuring out how to generate the image on the fly (from inside a curent page) without it spitting out crap characters at me.

I know you need to use the header content type of image/png - but that makes my whole page just an output of the image, as expected. Code:

View Replies !
How To Save(convert) A Web Page With Images In A XML, Or RTF/DOC File ?
I would like to save a web pages to a file readable by Microsoft Word
(it may be named with the extension .DOC even if it is not so...
MSWord is able to understand XML, RTF, HTML ...)

- notice that the images must be included (JPEG or GIF)

my ideas :
- write a RTF file (cannot write .DOC because the Unix has not DOM)
- save a page with the dump of the images (like the web archive from
Internet Explorer ".mht")

cons :
- must be in Linux/Unix (so DOM cannot be used)
- price may be as low as ... :)
- not a PDF because it must be writable

View Replies !
Pulling Jpeg Name Images Out Of MySQL Onto PHP Page
What I would like to do is have my PHP page
pull the name of an image (jpeg, bmp, etc.) out of MySQL and display
image from another directory. I don't want the actual image saved in
the DB, just the name.

I have the connection established from the Web Page to MySql, all I
want is how to display the image part. Does anyone have any
straightforward code to show me how to do this?

View Replies !
Could You Tell Me How To Attach My Folder
Could you tell me how to attach my folder. It will only let me send one at a time.

View Replies !
Attach Image
Does anyone know of a way to attach jpg image created in php without having to save the file to the server before attaching it? I am using this MIME code to attach the image to an email -

for($i=0;$i<$max;$i++)
{
$file = fread(fopen($this->attachment[$* i], "r"), filesize($this->attachment[$i]));*
$this->header .= "--".$this->boundary."";
$this->header .= "Content-Type: application/x-zip-compressed; name=".$this->attachment[$i]."";*
$this->header .= "Content-Transfer-Encoding: base64";
$this->header .= "Content-Disposition: attachment; filename=".$this->attachment[$i* ]."";
$this->header .= chunk_split(base64_encode($file))."";*
$file = "";
}

Can I attach the image stored as a variable for instance?

View Replies !
No Longer Attach
how can I get this script to use body for message in stead of attach it? Code:

View Replies !
Developing A Page That Displays Latest 5 Images In A Database
I am currently changing my web site so that it is PHP and mySQL powered. On the front page I have an area that will display the latest images in my portfolio and the latest text description.

Therefore, what I need is an admin page which allows me to upload images to a database which has a timestamp/date field, a thumbnail field, an image field, a text field for the title and a text field for the description. I also need a HTML form with inputs for the thumbnail upload, image upload, title and text description (in a textarea).

It would also be useful to have the page display the database contents and allow me to edit the details and also, delete rows. I then need code for that will display the most recent 5 thumbnails and the title on my index.php page.

View Replies !
Trying To Attach An *.csv File To An Email.
I am suck trying to attach an *.csv file to an email. If anybody can help me with the headers to pass to the mail() function.

View Replies !
Attach Imagejpeg To Email
I'm trying to add an imagejpeg result as an attachment of an email.

For creating the email I'm using phpmailer class
(http://phpmailer.sourceforge.net/)
Now I do create an image from a jpeg file for adding some text on it and
then send it to somebody:
here is the code:
$image = "/include/images/model.jpg";
$src = imagecreatefromjpeg($image);
$size = getimagesize($image);
$dst = imagecreatetruecolor($size[0],$size[1]);
$txt_color = ImageColorAllocate ($dst, 0, 0, 0);
ImageString ($dst, 5, 90, 30 ,"my name", $txt_color);
$tempimage = imagejpeg($dst);
if (!$mail->AddstringAttachment($tempimage,"model.jpg"))
echo ("<strong>failure attachment file</strong><br>");

Instead of attachment file, I get the failure attachment file message on the
screen after a lot of text (the jpeg file in text format).

View Replies !
Attach Image To Email
I use e-mail forms on my site frequently for user feedback, and it works great. However; now I for one of the forms I want users to upload a picture (which will send to my email ) as well. I'm still pretty new to this so I'm not quite sure how to go about it. This is what I have now: Code:

View Replies !
Attach A File In The Php Email
I have a ton of upcoming projects that require attaching files (.docs, .pdf, and .jpg) to emails once they submit a form. Any ideas on how to set this up?

<?php
$mailbody.="";
?>

or does it go in the send mail function -

<?php
mail("$email", "$emailsubject", "$mailbody", "From: $from_who");
?>

View Replies !
Attach A Zip File To Email
I have some zip files in a folder online, user can download them but i dont want to give direct links of files to user for downloading, as files are light thats why i want to attach them and send by email,

for example, if a user logs in and click on a link then the script should automatically read the target zip file in the zip files folder and then attach it in email and send to users email.

View Replies !
Attach A Picture In PHP Email
I would appreciate it if someone can tell me how I can attach a picture in an email using the following PHP code:

$headers = 'From: gt@timcon.net'
$subject='Call ' .$name;
$email='gt5@cox.net'
mail($email, $subject, $msg, $headers);

View Replies !

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