Top.Mail.Ru
? ?
Image
Image
The PHP Community's Journal
Sunday, September 21st, 2003
Image
Image

Date:2003-09-21 12:14
Subject:Virtual() stopped working
Security:Public

My web host moved my website to a new server and virtual() has stopped working. Here is the error message I got:

Call to undefined function: virtual()

Inside my .php file, I have this line.

(?virtual("/var/www/cgi-bin/ads/ads.cgi")?)

( = <
) = >

This "calls up" my banner advert CGI script file and display on my browser window. This worked fine on my old server but not on the new server.

What settings do I need to enable in order for virtual() to work?

Many thanks.

EDIT Ack, forgot to remove < and >

7 comments | post a comment



Date:2003-09-21 19:31
Subject:Okay so I was thinking...
Security:Public

I have this database that has 480 rows, and it takes a while to process them all on the same page.. so what's the easiest way of making "pages" like.. "next 25" or something like that. I'm sure someone knows what I'm talking about, right? ^-^

11 comments | post a comment



Date:2003-09-21 21:19
Subject:getting contents of a text file
Security:Public
Mood:Image frustrated

After some time of procrastination, I am finally trying to learn php. So far, I have written a script that opens a connection to MySQL, and displays the data I specified into a webpage. But I can't seem to figure out one simple little thing. My question is, and I have been struggling with this for almost 6 hours now, is how can I display the contents of a simple text file? I have spent half the day looking it up, and trying different things, but nothing is working so far.

Example (and I have tried many variations of doing this):


<?php
$text="info.txt";
echo file_get_contents("$text");
?>


I just want to retrieve the contents of a text file, and display them in a webpage. Nothing fancy, no cvs, xml, or tab delimited text. Just simple unformatted text in a .txt file. Thanks to anyone who can help.

4 comments | post a comment


Image
Image
browse days
Image
Image
my journal
Image
Image
Image Image
Image
Image