Gary King 37 PHP/vBulletin Guru Team Colleague

I don't think that DaniWeb IT Community should go to daniweb.com (the portal), but instead, it should go to the forum's index page, like it usually does in vBulletin. Would be less confusing for me, so I always click there to go back to the forum's index, and I'm sure others do, too.

Gary King 37 PHP/vBulletin Guru Team Colleague

I doubt the errors are random. It is caused by something, usually human error, 99.9% of the time ;)

I'm not too sure with your code, but be assured that the error is trying to make as much sense as possible, in this case. That's the best I can say for now.

Gary King 37 PHP/vBulletin Guru Team Colleague

Thank you for the resources. I've checked out the site monitoring services and signed up for a couple of them already. Are any of you familiar with CPanel? I guess that my ultimate goal is to create a script similar to the site monitor that is bundled with CPanel. I'm just not familiar enough with PHP and Apache to know where all of the services and variables are located to tell me when, for example, mail is down or apache itself has stopped running. Are there any other places you might be able to send me to help out with finding a way to monitor those services as well?

If you run a site monitor script on your website to monitor the website, then when the website is down, you won't know, and neither will the script - since the script goes down when the website does! ;)

Gary King 37 PHP/vBulletin Guru Team Colleague

.html typically seems to be more popular. I don't really mind either one, myself, I suppose. Depends on if I feel like typing the extra 'l' or not :)

Gary King 37 PHP/vBulletin Guru Team Colleague

Asking at www.vbulletin.org is your best shot.

But some psuedo code:

// connect to forum database first (use mysql_connect(), mysql_select_db())

// Then simply do something like:

$members = mysql_query("SELECT COUNT(*) AS count FROM user");

// $members['count'] should contain the total members
Gary King 37 PHP/vBulletin Guru Team Colleague

If you need to use preg_match() then use it. If strpos() can do the job, then use that. Does that answer your question? Your question wasn't really clear in your post.

Gary King 37 PHP/vBulletin Guru Team Colleague

There are some services to check and email you if your website goes down. A partial list: http://www.webhostingtalk.com/showthread.php?s=&threadid=400382

Also, your PHP code looks right. Have you tried testing it? You can test it by changing your MySQL database info, for instance, so that it cannot connect.

Gary King 37 PHP/vBulletin Guru Team Colleague

AJAX is just easier to say than whatever you have to offer :) Anyways, get used to it - the term AJAX won't be going anywhere anytime soon :)

Gary King 37 PHP/vBulletin Guru Team Colleague

AJAX is related to DHTML and Javascript. It goes in that forum. I moved this thread now.

Gary King 37 PHP/vBulletin Guru Team Colleague

Can I see it online?

Gary King 37 PHP/vBulletin Guru Team Colleague

you mean the result or wat?

I mean, do you have a URL to the website that has the script?

Gary King 37 PHP/vBulletin Guru Team Colleague

Do you have a link to the live script?

Gary King 37 PHP/vBulletin Guru Team Colleague

i did copy n paste though. wat are quotations by the way?

Well for

$currentdir = '../mp3';

it used to be

$currentdir = '../mp3;
Gary King 37 PHP/vBulletin Guru Team Colleague

So how about using 'elseif'?

Such as :

if ($choice=="staff publications"){

$query="SELECT * FROM staffpub WHERE match (authors, title, source, keywords, mesh, year, notes) against ('$name' in boolean mode) ORDER BY year DESC";

} 
elseif($choice=="books")
{
$query="SELECT * FROM books WHERE match (authors, title, callnumber keywords, edition, year, notes) against ('$name' in boolean mode) ORDER BY year DESC";
}
Gary King 37 PHP/vBulletin Guru Team Colleague

Is this 'Open/Save' dialog box that you are talking about a part of your actual script or is it the download manager associated with the browser?

Gary King 37 PHP/vBulletin Guru Team Colleague

Your code was missing some quotations as well, so I took the liberty to add them in. You probably just didn't copy and paste the text, right? :)

Gary King 37 PHP/vBulletin Guru Team Colleague

Your code was missing some quotations as well, so I took the liberty to add them in. You probably just didn't copy and paste the text, right? :)

Gary King 37 PHP/vBulletin Guru Team Colleague

Please use code tags next time. I have formatted your post.

Gary King 37 PHP/vBulletin Guru Team Colleague

Please use CODE tags next time. I have formatted your post.

Gary King 37 PHP/vBulletin Guru Team Colleague

I hope this article helps you
http://support.microsoft.com/?kbid=276393

And if IE does it again ... be sure to end task iexplore.exe from task manager ... and then try starting it again.

That's what I normally end up doing.

Gary King 37 PHP/vBulletin Guru Team Colleague

Starting up IE sometimes does not work for me. I just double-click on it to open it, then it doesn't do anything else.

What should I check out? I think I'm secure already (as in, no viruses, adware/spyware, HijackThis looks fine, etc.) so don't think that that is the problem.

Thanks!

Gary King 37 PHP/vBulletin Guru Team Colleague

Field type should be something like TEXT.

If you want timestamp, then you need a UNIX timestamp. So do something like

$query = "INSERT INTO users VALUES ('','$user',time())";
Gary King 37 PHP/vBulletin Guru Team Colleague

Tell your host to fix it.

Gary King 37 PHP/vBulletin Guru Team Colleague

Why not use a MySQL database? Easier to manage.

But if not, then you can do something like create a directory that contains all the messages, giving each filename an ID, like 1.txt, 2.txt, or something more uncommon so that they are harder to find, like an MD5 hash of the ID number given to the user.

Then to retrieve it, they can type in their ID # into a field and you can grab the file using this:

// $_REQUEST['id'] contains the ID # of the user (he just put it in to find his message

$dir = './messages/';

$message = file_get_contents($dur . md5($_REQUEST['id']));

print $message;
Gary King 37 PHP/vBulletin Guru Team Colleague

Create an .htaccess file in the directory you want to affect (and all subdirectories in it.)

The contents of .htaccess will be:

php_value session.save_handler files

Done.

Gary King 37 PHP/vBulletin Guru Team Colleague

$today becomes an array, so it itself has no value

What I suggest is to turn $today from an array to a string by doing this:

$today = serialize($today); // turns into a string

Then insert $today into the database like you normally would. In order to get the data back from $today, just unserialize before using, like so:

$user = mysql_fetch_array(mysql_query("SELECT * FROM users");

$today = unserialize($user['today']);

// $today is now useable again!
Gary King 37 PHP/vBulletin Guru Team Colleague

Make sure you can send out emails from your server.

Go here:

AdminCP -> Import & Maintenance -> Diagnostics -> Email

The rest is self-explanatory.

Gary King 37 PHP/vBulletin Guru Team Colleague

I suggest creating a new Firefox profile.

http://www.mozilla.org/support/firefox/profile#new

Gary King 37 PHP/vBulletin Guru Team Colleague

I think you need the right file system permissions.

Gary King 37 PHP/vBulletin Guru Team Colleague

If you want to take the easy course, learn PHP. First of all, it is open source, and it is much more widely used than ASP, so you will be able to easily find help if needed. There are also a ton of scripts already written in PHP, and PHP is easier to run on more platforms than ASP.

Also, PHP works well with MySQL.

belama commented: good tip +1
Gary King 37 PHP/vBulletin Guru Team Colleague

Yes, www.phpBB.com is free.
Download it here: http://prdownloads.sourceforge.net/phpbb/phpBB-2.0.13.zip?download (choose a mirror that is closest to you)

Unless there is an available converter for your current forum - which I doubt, but you can try searching for it - then it would be easiest if your members just re-registered and you installed a fresh installation of phpBB.

Gary King 37 PHP/vBulletin Guru Team Colleague

These posts are in the wrong forum anyways.

Anyhow, if the person has sent you an email then yes you can find the IP address of the PC of where the email was sent from.

And I'm not quite sure how you would find out all the websites that someone has been to if they already deleted the history. But something I would advise would be to check the Cookies as well, since many websites place cookies into your browser when you visit (including DaniWeb - to check if you are logged in or not, but other websites use it to track if you have been to their website, etc.)

Also, I would suggest using NetNanny or something similar next time so that you can track everything they do.

Gary King 37 PHP/vBulletin Guru Team Colleague

No life, for sure.. :p

Gary King 37 PHP/vBulletin Guru Team Colleague

Next time? DON'T POST THE SAME THREAD IN MULTIPLE FORUMS

Thanks!

Gary King 37 PHP/vBulletin Guru Team Colleague

This seems to be what you want: http://www.vbulletin.org/forum/showthread.php?t=38139&highlight=%2Aquote%2A it's for vB2 you could try asking them to upgrade it for you to vB3

Gary King 37 PHP/vBulletin Guru Team Colleague

I highly suggest phpBB as well :) Very easy to use and very useful.

Gary King 37 PHP/vBulletin Guru Team Colleague

Wow. Well, you'll need to know all the details about how your system is setup, like the database layout, and if files need to be modified during the install.

Normally the installation (install.php) file will just run some database commands; you could try exporting your current database (without the data - just try keeping the layout) to see if that works, and then giving that to other people to insert into their databases.

Gary King 37 PHP/vBulletin Guru Team Colleague

Glad it worked :)

Gary King 37 PHP/vBulletin Guru Team Colleague

Erm are there any screenshots that I could see?

Gary King 37 PHP/vBulletin Guru Team Colleague

I would suggest looking for one at www.vbulletin.org instead since they have mods that specifically tailor to vBulletin.

Try asking in their Modification Support forums as well :)

Gary King 37 PHP/vBulletin Guru Team Colleague

Use this code instead:

$rebate = mysql_fetch_array($rebate_information['rebate_amount']); 
$rebate = $rebate[0];

And now, $rebate is set :)

Let me know if it didn't work; my PHP is a bit on the rough side during March Break :p

Gary King 37 PHP/vBulletin Guru Team Colleague

I edited code for easier reading.

Gary King 37 PHP/vBulletin Guru Team Colleague

Interesting discussion; I actually have a barcode scanner that I could experiement with, and maybe I can make something out of it - or at least make it work, for starters.

Gary King 37 PHP/vBulletin Guru Team Colleague

I rarely use the features that come w/ my internet connection (besides internet ;)) so I'm not aware of many of them; pop3 account and webmail are only 2 of the few that I know of.

Anyways, I'm in Canada, and it's $44.95 CAD with no maximum monthly limit, and 5000/800 speeds.

Gary King 37 PHP/vBulletin Guru Team Colleague

I don't think he means that. He just wants MySQL access.

Just get a host like www.coolfreepages.com or something (I'm not too keen on free hosts, I use a paid host for many years now.)

Gary King 37 PHP/vBulletin Guru Team Colleague

Use something like this: (or modify to use an array)

$items = mysql_query("SELECT name FROM items");

while ($item = mysql_fetch_array($items))
{
$output .= $item . "
";
}

print $output;

Tada :)

Gary King 37 PHP/vBulletin Guru Team Colleague

So which host did you end up choosing? :) Also, so you are on managed hosting plan? Because rackspace is managed hosting, I know that by heart.

Gary King 37 PHP/vBulletin Guru Team Colleague

It can be on the same IP address. It technically doesn't really require connection to the internet at all, to be honest. What happens is that when you use scripts (like PHP scripts <--- PHP is also open source, free :) Your web server is probably open source and free too - Apache) the scripts then connect to the database, which is almost always on the same server.

So therefore, there is no direct connection from DB -> internet; it can just be placed on the localhost, meaning the same PC as where the scripts are resided.

Bottom line: It doesn't require it's own IP address.

Gary King 37 PHP/vBulletin Guru Team Colleague

MySQL = easy. What do you know about Access? How to use it? Or do you know the actual querying language?

Gary King 37 PHP/vBulletin Guru Team Colleague

MySQL can run on any type of server, correct. You can run it on Windows, UNIX, Linux, etc. All the downloads available: http://dev.mysql.com/downloads/mysql/4.1.html