FreePgs.com Forum
December 07, 2021, 12:44:43 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click Here for Toll-Free Service for your business starting at $2.00 per month and 4.5 cents per minute
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  FreePgs Related / Support Requests / Re: MYSQL IMPORT PROBLEM on: February 24, 2007, 12:21:20 PM
Yes, time-out error definitely. Upload the SQL file and create a simple PHP script to import it instead.

(Untested)
Code:
<?
mysql_connect("mysql5.freepgs.com","username","password");
mysql_select_db("database");

$fp=fopen("filename.sql","r");
$sql="";
while(!feof($fp)){
  $sql.=fgets($fp);
}

mysql_query($sql);
?>

Good luck.
2  FreePgs Related / Support Requests / Re: Question how to put google adsense to smf? on: February 15, 2007, 10:31:21 AM
Good luck getting google to payout.

I get paid from adsense. You have to have $100 minimum and that can take a while to get if you don't have much traffic.
3  FreePgs Related / Support Requests / Re: Permission Denied, We can't make image upload forms??? on: February 09, 2007, 02:16:15 AM
Are you using enctype='multipart/form-data' ?

4  FreePgs Related / Support Requests / Re: Relative Urls: Can rewrite Resolve Root to = / on: February 09, 2007, 02:13:16 AM
Hi,
  I'm using php, wrestling with relative paths, and I'm
wondering if there is anything I can do with rewrite
or something, that I can obtain relative / to mean root.
Relative to current, the ../ and ../../ is not working
due to the php includes being called from different files
in different folders.  I'm certain that some here will know
what I'm speaking of.  Right now, I'm using absolute urls,
as it's the only thing that seems to work. 
Thanks in Advance,
East 
 

It will make it easier for you in the long run if you define a variable that holds the path to your scripts and use the variable instead of the full path hardcoded.  So define a variable in a config or include file like $root='/fpgs/fpgshttpd/doctoreast/'; then whenever you need to reference a file using PHP, you would use it as $root.'subfolder/file.php';  If you ever decide to move your script away from your freepgs account, you would only have to update the 1 line instead of searching through all your code.

Smiley
5  FreePgs Related / Support Requests / Re: Upload script on: December 26, 2006, 02:09:30 AM
There are 105 options here. Some free, some pay, but I bet you'll find something that will work.
6  FreePgs Related / Support Requests / Re: "FreePlus" or "NoCost" it will be removed on: December 26, 2006, 02:07:38 AM
No. "Extreme" is not the same as "FreePlus" or "NoCost".
7  FreePgs Related / Support Requests / Re: What teh heck is this file I have? on: June 15, 2006, 02:46:53 PM
It's an include file for some bulletin board system.
8  FreePgs Related / Support Requests / Re: PHP MYSQL - Spot the Error? on: May 19, 2006, 10:56:51 AM
Whenever I have a problem with an SQL string, I echo it after it's set. That way I can see exactly what is being called. You can copy and paste it into phpMyAdmin then too and try to run the query. phpMyAdmin usually gives pretty good error texts.

Most likely, your $searchin or $searchfor vars aren't set right.
9  FreePgs Related / Support Requests / Re: CSS on: May 10, 2006, 04:44:56 PM
Sorry, I just feel the need to  Roll Eyes
10  FreePgs Related / Support Requests / Re: CSS on: April 27, 2006, 03:47:15 PM
I try to use CSS/DIV's as much as possible... but I am guilty of using tables sometimes when DIV's could be used instead. If I am using tables, I always use classes with them though,  because 1) I can store the styles in a separate file and edit them easily and 2) you can just do so much more with css as far as styling and looking better.

Not sure about CSS? Check out this site: http://csszengarden.com/  The base html file is the same, but you can choose radically different styles by loading different stylesheets.

11  FreePgs Related / Support Requests / Re: FTP is NOT working! on: April 14, 2006, 12:35:23 AM
Thanks webzone, that was it... Needed to make it passive ftp.
12  FreePgs Related / Support Requests / Re: FTP is NOT working! on: April 14, 2006, 12:32:11 AM
FTP works for me right now. If you are behind a firewall or on a network, make your you enabled "Passive mode" (also called PASV) in your FTP client.

500 server errors are often caused by invalid .htaccess file.

I'm not getting a 500 server errors when looking at the files.. It's giving me that error when I upload to ftp. The ftp server is returning 500 and 550 errors to dreamweaver.

I am on a new wireless router since the last time I tried it. Maybe passive mode needs to be on. I'll give it a try and let you know what happens.

Thanks
13  FreePgs Related / Support Requests / FTP is NOT working! on: April 13, 2006, 11:55:14 PM
I have having a problem getting some files uploaded on ftp. Seems like half the files or more give a 500? error. Plus the thing is really slow and timing out a lot.  Just wanted to let you know. (And please fix it!)
14  FreePgs Related / Support Requests / Re: PHLogger Problems... on: February 19, 2006, 04:59:08 PM
No, it's not tracking Firefox at all. I don't think it's a javascript issue, javascript it turned on. When I load a page with the tracking code in IE, it tracks a visitor. When I load the same page in Firefox, it didn't even register a page load, whether netscape, mozilla or whatever.

I thought I'd give it a try since it was available, but I guess I will have to look elsewhere for a tracking script.

Andrew
15  FreePgs Related / Support Requests / PHLogger Problems... on: February 19, 2006, 06:03:20 AM
I just installed the PHLogger script on my site and it is working ok for IE, but not in FireFox.  I checked and the code is copied exactly. I was wondering if anybody else had this problem?

Thanks,
Andrew
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!