Search found 217 matches

Actual Results

Post Posted: December 26th, 2009, 10:45 am

Hi guys, I had my external hard drive connected to my laptop, and opened in windows explorer. I wasn't transferring any files to or from the hard drive. I unplugged the laptop, but forgot that I had taken out the battery, so it turned off. After booting my laptop back up, I can't find any files on m...

Post Posted: September 11th, 2008, 9:26 pm

My friend has a recently new (~2-3 weeks) laptop from Toshiba. At random points, it restarts and shows a BSOD. The following error is shown: Problem signature: Problem Event Name: BlueScreen OS Version: 6.0.6001. Locale ID: 1033 Additional information about the problem: BCCode: 1000008e B...

Post Posted: February 27th, 2008, 12:39 am

Thanks for the suggestions guys. I'll get into it sometime soon. I'll also check out some alternatives, as suggested by you.

Post Posted: February 26th, 2008, 12:43 am

Thanks, Hob. But wouldn't I need to edit the part that actually does the extracting so that only the titles are loaded, to prevent unnecessary work?

Post Posted: February 23rd, 2008, 5:53 am

Hi guys, I want to put an RSS feed of Google or Yahoo news on my forum. After a little searching, I came across RSS2HTML (, which seems to be a working option. However, I would like to have a table of headlines only. Google News RSS Page:

Post Posted: August 19th, 2007, 7:16 am

Yup, that did the track, thanks again mate!

Post Posted: August 19th, 2007, 6:08 am

Yeah I searched my ass off, wondering why it showed no LAN adapter under the device manager. As you guessed it, the wire is plugged in right into my mobo. I remember last time I downloaded drivers off the Asrock website, that took ages, since it's situated somewhere in asia. I'll see if I can get it...

Post Posted: August 18th, 2007, 10:52 pm

When you installed XP, I bet you didn't install the drivers for the network cards, wired or wireless. Those drivers aren't automatically installed. Open the device manager. Make sure the network adaptor(s) are listed and there are no yellow or red marks. Hi Don, looks like you hit the nail on the s...

Post Posted: August 18th, 2007, 10:37 am

Hey, I've just formatted my hd, and I'm back to the newest version of Windows XP. I'm currently connected through my WLAN, since I can't seem to be able to establish my LAN connection. My PC is connected through a LAN cable to the Router, which is connected to the modem in turn. Now Windows Help say...

Post Posted: May 22nd, 2007, 11:04 pm

Static means the variable doesn't lose its value when the scope it's in is exited, although it is still unavailable to outside sources. Public variables are public, as opposed to protected which are available to the class and its children only and private which are available to the class only. But I...

Post Posted: May 12th, 2007, 2:23 am

In view of your questions I would advise you to either take a deep dive into the information pool or hire someone to do it for you.

Post Posted: May 11th, 2007, 4:08 pm

I've a pretty simple and straightforward question; is it possible to allow PHP to use more system resources (CPU power, RAM) to increase its processing / execution speed? When I'm running some scripts on my local server I don't usually need my PC for anything else, and the CPU usage level is at 5%. ...

Post Posted: May 1st, 2007, 1:04 am

I would strongly recommend removing the dark blue background from the search results, as it makes the results written in a dark font themselves nearly illegible. In addition, the link "Click Here to add a host to this database." is hidden behind the Google Ad on my screen, except for the &...

Post Posted: May 1st, 2007, 12:52 am

You put in a unix timestamp as the second parameter in the date() function. You can convert a date to a unix timestamp with either strtotime() or mktime() (look them up at However I suggest you forget about date() all in all. Try something like this: [php] $time = time(); thisYear = date('...

Post Posted: May 1st, 2007, 12:41 am

Thanks for the recommendation, but they only offer 150MB disk space, 250MB bandwidth which I feel is too little even for this. In addition, they don't allow automated scripts, like the crawler in my case.

Post Posted: April 30th, 2007, 2:40 pm

Hello hello, I'm intending to bring a nearly completed project of mine online soon, but I'm left with no hosting account - so my quest to find one begins. Having, up till now, almost always worked as a freelancer I had the luck to have friends willing to temporarily host projects for my clients whil...

Post Posted: April 28th, 2007, 1:02 am

A question that comes to mind, to which I haven't been able to find an answer easily on the net, is whether a Crond is able to run multiple scripts at the same time? Or will the tasks just stack, and be handled one by one, starting the next after the current is done?

Post Posted: April 28th, 2007, 12:52 am

Cheers guys, looks like the most feasible option so far and I'll dig into it. Thanks for the awesome link. If anyone else has any other suggestions, they are still welcome! I'm also looking for any possible solutions for non-dedicated hosting , i.e. probably not having access to cron jobs. (starting...

Post Posted: April 26th, 2007, 11:30 am

A little confusing title, I admit. I had some difficulties rephrasing the issue into one sentence. I'll start off: I have a crawler, written in PHP, that crawls several websites. The thing is that the crawler is thus initiated when the corresponding page is opened in your browser. However, the idea ...

Post Posted: November 8th, 2006, 12:06 am

The way I understood it a crawler has found his form and abuses it by auto submitting spam. I have had this issue myself as well. In case it is a person that is manually submitting the spam (which is hard to tell) you could log his IP and display a blank page (or even better, an error page) for that...

Post Posted: November 7th, 2006, 3:06 pm

When using public smtp you will find that all outgoing emails are being rejected by big corps such as AOL, COMCAST and ATT. Have you tried to get an smtp relay from your isp / bandwidth provider? Which is indeed as I wrote, the fact that public smtp relays are on many blacklists, but understandable...

Post Posted: November 7th, 2006, 1:00 pm

A fairly simple way to stop that is from using image verification. In your case, I think a single character that the form submitter needs to copy from the image will suffice.

Post Posted: November 7th, 2006, 12:42 pm

If you're talking about a PHP script, and you want to use values from SQL as a variable name other than the field names, you can manually assign them or use the SELECT ______ AS _____ formatting in the SQL statement. What he said, if that's your case. If you're moving data from one table to another...

Post Posted: November 7th, 2006, 12:38 pm

I suppose one good way to get some knowledge is through this section of the PHP Manual:

Post Posted: November 7th, 2006, 12:36 pm

Hey ho, A friend of mine is hosting some projects of mine for free - but he doesn't have an smtp server set up because some people he'd give free hosting to would abuse it (and he had no means to trace the folder sent from). So basically, I'm looking for a public relay server. Usually, public ones a...

Post Posted: October 24th, 2006, 12:33 pm

That would be simply

PHP Code: [ Select ]
echo htmlentities("<img src=''>");
  2. echo htmlentities("<img src=''>");

if you want to produce an <img> tag that people could use on their site to display the image.

Post Posted: October 15th, 2006, 12:57 pm

I'd just like to point out that it seems you write as if ozzu members owe you something, and therefore you can demand as you please. People are busy and have plenty of other things to do, including enough other people looking for help. Posts like yours aren't very enticing, you might contemplate usi...

Post Posted: October 15th, 2006, 12:45 pm

musik wrote:
Personally I don't think you would make any money for it, especially given that there are a huge amount of free templates available which are professionally designed.

Design-wise your template is quite basic and doesn't offer anything unique.

I second all statements in this post.

Post Posted: October 15th, 2006, 12:19 pm

You can use header("Location") to instantly redirect a successfully logged in user. As for the login 'script', seeing what I use is nestled in the rest of the software, and the internet is littered with 'login scripts', I'll refrain from posting any. Check up h...

Post Posted: April 11th, 2006, 11:54 am

This ought to do the trick. [php] // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidat...

Post Posted: April 11th, 2006, 11:52 am

You can just use $_POST['thisfile'].

Post Posted: January 25th, 2006, 8:31 am

Someone needs anger management therapy.

Although, I can't deny sometimes I would just like to throw my PC out the window.

Post Posted: January 24th, 2006, 6:49 am

Well, if you already have an array of the pages (as I assume that is what you mean by 'array of go's'), I would go this way; [php] if( !empty($_GET['go'] ) { if( in_array($_GET['go'], $arPages) ) { include_once($_GET['go'].".php"); } else { echo "Requested page does not exist!"; ...

Post Posted: January 22nd, 2006, 1:26 pm

Quick and dirty:
Code: [ Select ]
<select name="country"> <option value='<?=$user['user_location']?>'><?=$user['user_location']?></option <option value='Afghanistan'>Afghanistan</option> ... </select>
replace $user['use...

Post Posted: January 21st, 2006, 3:45 am

With the instantiation in the loop taken out, the second example seems about 25% faster (compared to his 288%), and the third 75% (compared to his 486%). And this is still using OOP "as a football in golf".

Post Posted: January 20th, 2006, 12:55 pm

That article is RIDICULOUS! First of all, it's from 2003. PHP has had a major improvement in OOP since then. What is even more ridiculous is that he takes a football (OOP) and a golfball ("neither") and then plays golf with them and then concludes "golfballs are way better than footba...

Post Posted: January 20th, 2006, 10:46 am

*sigh* Use quotes around strings such as $_POST['Home_Phone']

Post Posted: January 20th, 2006, 9:10 am

FutileSoul wrote:
bbott1982 wrote:
Guess somebody got pissed off for paying so much money for a little cup of coffee. LOL

no, the problem is that they couldn't order a small, medium, or large. instead they have crazy names for their sizes.

How do they name 'em?

Post Posted: January 20th, 2006, 7:21 am

hehe, nice one

Post Posted: January 20th, 2006, 7:13 am

A database would be much better for that. SQL really isn't that hard, the basics that you need 90% of the time are 4 very simple formats. You should definitely consider stepping over to a database as soon as possible when you want to store things and manage them.

Post Posted: January 19th, 2006, 11:56 pm

All you need is wordwrap(). The last parameter (cut) is standardly set to 0 so it shouldn't be cutting words apart.

Post Posted: January 19th, 2006, 11:53 pm

Do you mean session timeouts? Store the IP and the last time() he accessed a page. On the next page, check whether x minutes have passed since his last pageview, and call a session timeout of it's been too long.
This is done (mainly) with logged in members.

Post Posted: January 19th, 2006, 2:18 pm

That will definitely do the trick. Thanks joebert :)

Post Posted: January 19th, 2006, 1:12 pm

I want to make a function that is identical to __autoload() in PHP5, only that it should work for functions. The idea is that I will call my functions as such:
PHP Code: [ Select ]
 func($funcName, $param1, $param2, $param3);
Then, func() will include the file $funcName.php (which holds the function's defini...

Post Posted: January 19th, 2006, 7:50 am

Url prefixing would work. I wouldn't be thousands of files containing the pages, it would be one file. And when it gets to much at least you have a hard copy of the pages you could easily transform into a database table Yeah what I meant was having to write down all those filenames, not that the na...

Post Posted: January 19th, 2006, 12:17 am

Rabid Dog wrote:
bvilches wrote:
I think it's more secure doing static includes.

Clever, very clever

lmao. I'll hear you when you have thousands of files. And I don't think I heard anything against the prefixing of your domain? How do you get a bad URL past that?

Post Posted: January 18th, 2006, 1:51 pm

I have to admit, me personally, I have never had a centralized resource that I learned from. Though, whenever you look up a function at there are some warnings there, and some user contributed notes are useful as well. I guess, and I'm taking myself as an example, the security comes with the...

Post Posted: January 18th, 2006, 9:29 am

I am a tad confused here, not really sure what it is you're intending to do. Could it be that you only want to check for the the former city in case the radio button is selected? In that case, this should do it. [php] //use regular expressions to ensure the visitor entered alpha text for first name ...

Post Posted: January 18th, 2006, 8:59 am

I am not sure what kind of margin exactly you want. When I view that page in FF, there is a bottom margin of approx 5-10px.

I like the design, by the way.

Post Posted: January 18th, 2006, 8:40 am

Ever since my first reply to you you seem to have a standard offensive stance against me, yet I have nothing against you. Um the value being passed could be considered an object as you are not performing the action on the array but rather the value contained inside the array at the specirfied index....

Post Posted: January 18th, 2006, 8:15 am

Oh and just for the record The difference is caused by the fact, that the PHP function file_exists() does not work on URL wrappers within PHP4, but works on ftp:// URLs in PHP5. (When the host is running our Hardening-Patch for PHP such a remote URL inclusion is of course not allowed and logged). h...

Post Posted: January 18th, 2006, 1:03 am

Reading a file into an array
PHP Code: [ Select ]
so effectively your file would be page1 page2 page3 page4 That does not seem something I would enjoy doing either, or anyone. Secondly, strip tags removes html and php tags. Tell me how that will prevent

Post Posted: January 18th, 2006, 12:54 am

Yes, I would indeed recommend that.

Post Posted: January 18th, 2006, 12:52 am

OOP is meant for the medium to large scale projects. I would not recommend it for a small program as that would be verbose indeed. But the larger the scale, the more useful it gets. And that being said we didn't take the other advantages (as partially mentioned above) in mind ;). A little off topic,...

Post Posted: January 17th, 2006, 12:27 pm

You will need a programming language such as PHP to do this. I would not use Java Script as this is easily exploited.
There are PHP scripts freely available on the net, check out, or try to google some.

Post Posted: January 17th, 2006, 12:18 pm

This snippet of CSS code will deal with all empty space on the top, left, right, and bottom.

Code: [ Select ]
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
  1. body {
  2.     margin-left: 0px;
  3.     margin-top: 0px;
  4.     margin-right: 0px;
  5.     margin-bottom: 0px;
  6. }

If you do not know how to deal with CSS let me know.

Post Posted: January 17th, 2006, 12:15 pm

Procedural code is also a huge pain in the butt if you review your code after a few months. Glad we straightened that out ;)

Post Posted: January 17th, 2006, 12:11 pm

There you go =)

Post Posted: January 17th, 2006, 12:08 pm

Well, Zend Development Environment easily aligns all rules accordingly with CTRL+SHIFT+F, but it's not for free. (It is an excellent choice though, given all its options).

Post Posted: January 17th, 2006, 12:03 pm

I presume you are checking only files on your server, as you are using fopen(). In that case, you can simply use file_exists() that ships with PHP.
PHP Code: [ Select ]
 if( file_exists("filename.ext") ) { // File exists } else { // File does not exist }
Also, I don't think it is a good idea to set...

Post Posted: January 17th, 2006, 11:59 am

I understand that it is fuzzy and probably it's not worth it to dig deeper into this. I'v e read a comment on on this issue but it did not mention any specific explanation either. In PHP 5, there is neither a need to pass objects by reference nor assigning them by reference. That quote, howe...

Post Posted: January 17th, 2006, 11:46 am

I'm sorry, I'm probably not able to help you on the statistics point, but I would just like to make a comment on good practice. It's not good practice and could be potential danger including $_GET['section'].php. Doing the $_GET thingy with your include files is a SERIOUS flaw in the system unless ...

Post Posted: January 17th, 2006, 11:30 am

An MX lookup is easy to get around. Enter and it will result in true. Therefore, indeed, e-mail activation is a must.
I presumed you were solely talking about XSS by mentioning 'secure' forms, hence my first reply.

Post Posted: January 16th, 2006, 12:57 am

To quote my post above. Please read it. The array with the numbers is just an example to illustrate the issue I found with foreach() and passing as a reference . Using unset() at the end made everything work flawlessly, as mentioned above, and therefor my problem was solved. I am just looking for an...

Post Posted: January 16th, 2006, 12:46 am

I second that last motion. There's a good chance you'll mix id's up.

Post Posted: January 15th, 2006, 2:04 pm

I'm not sure you really need to check whether the domain really has a mailserver. A regular expression to check the format will do the trick. As to clearing fields, this is my function that handles it: function cleanInput($input, $mode, $isUserInput=1) { if( $isUserInput == 1 ) { if( is_array($input...

Post Posted: January 15th, 2006, 11:37 am

I would really need some more information to look into this. Please be more specific =)

Post Posted: January 15th, 2006, 11:33 am

The array with the numbers is just an example to illustrate the issue I found with foreach() and passing as a reference. Using unset() at the end made everything work flawlessly, as mentioned above, and therefor my problem was solved. I am just looking for an explanation as to why foreach() behaves ...

Post Posted: January 15th, 2006, 7:05 am

PHP Code: [ Select ]
echo "2,4,6,8";
  2. echo "2,4,6,8";

Will output 2,4,6,8 as well, but I need to edit the values of the array being passed ;)

And just a side notice, you don't need brackets around $v*2, as with multiplying, the value is first assigned, and then returned (unlike $v++).

Post Posted: January 15th, 2006, 4:47 am

I found out the solution. Unset($value).
PHP Code: [ Select ]
 foreach ($ar as &$v) { $v *= 2; unset($v); } foreach($ar as $v) echo $v."<br>";
Will output, correctly, 2 4 6 8. It is still unclear to me why this problem normally occurs, though. If anyone would care to explain, that would b...

Post Posted: January 15th, 2006, 4:37 am

An idea is to make a file called linkout.php that takes a $target and then directs the user to $target URL and adds 1 to the amount of times this $target has been visited. Then, you should prepend each url with out.php?target=. It'll work like this: <a href='out.php?'>MySi...

Post Posted: January 15th, 2006, 4:13 am

I try to write as little lines as possible (with OOP).

Post Posted: January 15th, 2006, 4:12 am

Hey, I stumbled upon a weird bug in my program, and I was able to filter out the concrete bug. And that bug occurs when passing values by reference at foreach(). Example: [php] $ar = array(1,2,3,4); foreach ($ar as $v) $v *= 2; foreach($ar as $v) echo $v."<br>"; echo "<BR>...

Post Posted: January 15th, 2006, 4:04 am

I'm sorry, I'm probably not able to help you on the statistics point, but I would just like to make a comment on good practice. It's not good practice and could be potential danger including $_GET['section'].php. First, you should not depend on magic quotes, and second, if the value of section is an...

Post Posted: January 13th, 2006, 12:06 pm

Wow, I'm stupid. I've used the function before correctly, not sure what's gotten into me to use it this way suddenly.

What an evening! I'm all dazed (the function name typo as well). =)

Thanks PsyckBoy!

Post Posted: January 13th, 2006, 11:20 am

Stupid me, what a typo :) The code is not really relevant. If you need an example, take this e.g.: [php] $sql = "SELECT * FROM `users` WHERE `username`='myname'"; $query1 = mysql_query($query, $link_ident); // Works $query2 = mysql_real_escape_string($sql); // This turns it into SELECT * F...

Post Posted: January 13th, 2006, 9:39 am

it's mysql_real_escape_string, not excape =)
The link's ... string.php but it doesn't state this kind of problem.

Post Posted: January 13th, 2006, 9:21 am

Hey guys, I'm running PHP5/phpMyAdmin 2.7.0-pl2/MySQL 4.1.16-nt on localhost. When I invoke mysql_[real_]escape_string() on a query it adds backslashes for e.g. single quotes. But when I do this, I get an SQL error. When I remove the line that invokes mysql_real_escape_string, it's all good. The err...

Post Posted: December 30th, 2005, 10:31 am

You do realise you totally ignored my main arguement on empty()'s descriptivity being not any better than if(), and so speak as if it was never told. But I'll drop it, it's not worth it :)

Post Posted: December 30th, 2005, 4:32 am

I disagree with you, heyer. First reason would be that empty() is just as obvious as if(!$var). You say that with if($var) it is not obvious what you are checking for. You say that it may be the value 0, FALSE, NULL, etc. That is correct, as all these values return false on a convert to a boolean, w...

Post Posted: December 29th, 2005, 9:49 am

My question is rather straightforward and simple; Since by using if($var) the actual check is if( (boolean) $var), and empty() is exactly the opposite of (boolean) $var. Therefor, if(!$var) is exactly the same as if(empty($var)) [and if($var) equals if(!empty($var)) ] What's the use of empty()? I re...

Post Posted: October 15th, 2005, 12:59 pm

In PHP, the value is stored in $_SERVER['HTTP_USER_AGENT'].

Post Posted: October 15th, 2005, 12:58 pm

You can just use google to search through your site. Create a form, and set the action to "" Replace the word "query" with your form's query field value (don't touch '+site') and replace "" with your website...

Post Posted: October 15th, 2005, 12:54 pm

Did you try align:center; ?

Post Posted: September 1st, 2005, 11:13 am

gisele wrote:
hello what about using REGEXP function?
This function uses regular expressions patterns
Code: [ Select ]
WHERE name REGEXP('^[0-9]')

Thank you! That completely solved my problem!

Post Posted: September 1st, 2005, 8:24 am

Hi, a rather simple question; what is the most efficient way to find entries in a MySQL database that start with a number? I'm aware of the part
Code: [ Select ]
WHERE `name` LIKE '$search%'
that finds entries that start with $search. However, I'm looking to find entries that start with 0-9, and obvious...

Post Posted: August 22nd, 2005, 2:26 am

When I save the session_id in a cookie, the session doesn't work. It's like ScienceOfSpock pointed out, it's what makes the session fail. What I tried: User logs in; save session in a cookie and set the session_id in the database for that user Next time; if there is the session_id cookie, retreive t...

Post Posted: August 20th, 2005, 11:03 am

I've noticed that if you close FF, then open, you'll still be logged in, and this is not the case in IE. What would be the wisest way of making a 'remember-me' for IE? Cookies, yes, but what value to store? The session id will probably cause the problems again. Would the user_id be the best choice? ...

Post Posted: August 20th, 2005, 6:27 am

What UPSGuy means is that you should use a regular expression to find the "," in the value and then replace it with.. nothing. which is as good as removing it.

Post Posted: August 20th, 2005, 6:24 am

Thanks for all the info guys! Setting the cookie was indeed probably the reason of failure.

Along the side; All those header configurations in Dr.Lang's code, is it correct that they all counter caching? Could you (dr lang), or anybody else, explain why you would be doing that?

Thanks again!

Post Posted: August 19th, 2005, 10:52 am

sana wrote:
from what i know they are brown biscuits and sometimes chocolate chips on top .. not dangerous at all if not taken in access.. :D

It's obvious you're joking,
because a real cookie doesn't need to be brown. :)

Post Posted: August 19th, 2005, 6:15 am

Please read the last post in this thread.

Post Posted: July 2nd, 2005, 6:11 am

Hi, I'm using the following script to put a watermark on an image: [php] header('content-type: image/jpeg'); $imgSrc = strip_tags($_GET['src']); $watermark = imagecreatefrompng('watermark.png'); $watermark_width = imagesx($watermark); $watermark_height = imagesy($watermark); $image = imagecreatetrue...

Post Posted: May 30th, 2005, 8:02 am

I will be looking forward to a solution as well, may that be with a lesser urge than the user above. I am sorry I cannot help myself on this area.

Post Posted: May 9th, 2005, 6:40 am

Don't forget to replace "" with $_SERVER['REMOTE_ADDR'] ;)

Post Posted: May 8th, 2005, 3:34 am

Thanks for the additional help. I'm not sure if you have any experience with vBulletin, which I really don't , but I've noticed that when one receives an e-mail from the admin through vBulletin, the only recipient shown is yourself as well. Do you, or anybody else know, whether vBulletin is using th...

Post Posted: May 7th, 2005, 6:49 am

I was trying to avoid the loop, but I'll give it a go. How long does it take to send all mails, and to how many users?

By the way, how would I create a temporary copy of the users table (the email addresses) most efficiently? Would I have to loop it, too?


Post Posted: May 6th, 2005, 11:13 am

Hi, I'm making a mass e-mailer, which will send off a mail to every user from that database. It's not a big case. Although there's one thing, on the site people can hide their e-mail address from other users. Therefor my client wants that when you receive an e-mail from the site, you only see your o...

Post Posted: October 17th, 2004, 5:14 am

neksus wrote:
How are you supposed to send the message if you dont know who your recipient is?

the recipient would be the mobile number solely, portals dont care about the company provider.

Post Posted: October 8th, 2004, 7:19 am

sending via a portal doesnt require you to have the companies address, it will send anywhere where there is a mobile network.

Post Posted: October 7th, 2004, 11:58 am

indeed it was via a portal, as i wrote above.

Post Posted: October 7th, 2004, 10:49 am

Looks awesome, however I'd need to look up some European companies (such as KPN). May I ask where you found those addresses?

And actually, I was looking for a different method, so you could send worldwide, via a portal. I know the basic guidelines, wondering if anyone knows more about it?

Post Posted: October 7th, 2004, 8:58 am

I've seen several sites offering this service, however im looking for a tutorial or some guidelines about this. They dont have to hold my hand, but at this moment i do not have a clue on what to do.
I could not find any at google. Id be thankful if you could submit any =)

Post Posted: September 22nd, 2004, 7:19 am

cristiu wrote:
<?php header("Refresh: 5; url=");
include this in page that you want to display the message after 5 seconds you will be redirect to ""

thats what i meant. thanks.

Post Posted: September 21st, 2004, 10:26 am

im using the header() function to redirect the user from one page to another, however ive noticed this happens immediately.
I want to display some text on the page that redirects, and would want the page to appear for say 2 seconds and then redirect, if you know what i mean.


Post Posted: September 1st, 2004, 8:07 am

Though, should I be using addslashes() on a user inputted file field?

Post Posted: August 31st, 2004, 12:59 pm

i thought of the above too however i did not test it because i considdered it invalid. Will try then tho.

Post Posted: August 31st, 2004, 12:57 pm

it will end up in your "Junk E-Mail" box..

(Aint that annoying? Thats exactly why i created that thread, where noone had/posted an answer to)

Post Posted: August 30th, 2004, 1:48 pm

I see, I didn't realise that.

I have another question, if im in any way inserting user input into a database, if I want to prevent any coding or stuff, am i required to do what - strip_tags(), addslashes() or any other stuff ?

Post Posted: August 30th, 2004, 1:29 pm

i thank you. does it take alot of memory?

Post Posted: August 30th, 2004, 9:06 am

Code: [ Select ]
$query = "SELECT * from users"; if($_POST['username']!=""){ $query .= " Where username = '".$_POST['username']."'"; } $result = mysql_query($query);
You should clean any data submitted by a u...

Post Posted: August 28th, 2004, 11:12 am

What if you make a search page, where there are certain fields. However, not all of those fields need to be filled in. If you would do a simple SELECT, and some field would be empty (say username), it would only select where the username is also blank (WHERE `username`='$_POST[username'], while $_PO...

Post Posted: August 28th, 2004, 11:09 am

Yeah, i already had a few tables exported, i guess i can fix this in a while. Thanks for the tips tho.

Post Posted: August 27th, 2004, 1:25 pm

confirm: you cant see his name?
do you have a link?

Post Posted: August 27th, 2004, 7:22 am

err no, because the variables arent entries, but actually fields. Let me explain this better, its for a poll. Users can submit a value from 1-10. Because I want to make stat bars of how many users voted 1, 2, 3 etc etc i created fields in the mysql db table, named 1 2 3 4 5 6 7 8 9 10. After rating,...

Post Posted: August 27th, 2004, 7:02 am

theres about 10 variables that all have a different value. Say i want to do something special with the one that holds the highest value.

Is there a quicker and more efficienter way than using 20 lines for if a >b && a>c && a>d etc etc etc

Post Posted: August 27th, 2004, 7:00 am

ah crap. i forgot. i dont have anymore access to the FTP either. And yeah the database is still accessable with current login details.
But whats the use of it now.

Post Posted: August 27th, 2004, 1:23 am

I (used to) have hosting shared with a buddy, hes paying. Anyways, im not sure if he screwed me, but he changed the password and deleted most of the files i had hosted there. However i was busy on a project of mine, and while i cannot access the phpmyadmin over the cpanel, i believe it is possible t...

Post Posted: August 24th, 2004, 8:51 am

[php]<?php // Connect to the database server $dbcnx = @mysql_connect('localhost', 'root', 'psswd'); if (!$dbcnx) { die( '<p>Unable to connect to the ' . 'database server at this time.</p>' ); } // Select the database if (! @mysql_select_db('members', $dbcnx) ) { die( '<p>Unable ...

Post Posted: August 22nd, 2004, 3:49 am

i have earned €600 and i did not use any contract once. Happy clients :)

Post Posted: August 21st, 2004, 6:19 am

you can access the MySQL database through PHPMyAdmin (thats probably whats installed).
There you can select the table, go to 'Browse' and edit any rows inserted.

Post Posted: August 21st, 2004, 4:29 am

if after if will run unless the stuff to do for that if includes a return else if runs only when the if evaluates to false else runs when if & all else if's evaluate to false. ofcourse, i understand that, however if you considder [code] if(!$var){ //... } if($v...

Post Posted: August 21st, 2004, 4:25 am

And I don't think iframes are the only way of opening a new page in a part of the main page? Indeed, you can handle that with PHP: [code] <?php if(!$id) { include("YOURHOMECONTENT.php"); } else { if(file_exists("$id.php"))...

Post Posted: August 21st, 2004, 4:20 am

Thanks, ive seen that before, but i got stuck on the note:

Note: If you only want to determine if a particular needle occurs within haystack, use the faster and less memory intensive function strpos() instead.

Post Posted: August 21st, 2004, 4:15 am

err in that case (concerning only the selection and processing of the groups) the radio buttons should be displayed, whatever way you want to (i wont mix myself into that then). So, for the processing, you can either use the same document, or another (lets say we use another document to clear things...

Post Posted: August 21st, 2004, 3:55 am

Do you need to call out the variable as $_COOKIE[username]? On a server installed with PHP 5, yes. In PHP 4 it also possible to call on the cookie simply by the variable name, say just $username. But this is only to support old scripts. $_COOKIE['name'] was already introduced in PHP 4, so it will w...

Post Posted: August 21st, 2004, 3:48 am

Thanks to Atno for his understanding, i share his opinion considdering the answers however i thought i could give it a try. On-topic: What ive noticed it doesnt matter what kind of mail you send, may you be using your buddy's address with a message such as "whens the next soccer match?", it ends up ...

Post Posted: August 20th, 2004, 10:28 am

is there any advantage on not using else if, for example:
Code: [ Select ]
  1. if($bool){
  2. //...
  3. }
  4. if(!$bool){
  5. //...
  6. }

instead of
Code: [ Select ]
} else if(!$bool){
  1. if($bool){
  2. //...
  3. } else if(!$bool){
  4. //...
  5. }

Post Posted: August 20th, 2004, 10:19 am

Before everything is submitted to the database, you can do a little check up, and initially assign the standard image.

Code: [ Select ]
$_POST['image'] = "http://www.address/standard/image.jpeg";
  1. if(!$_POST['image']){
  2. $_POST['image'] = "http://www.address/standard/image.jpeg";
  3. }

Post Posted: August 20th, 2004, 8:31 am

sure, that is just a basic selection from radio buttons. What i do not understand however is the $Cargroup check. Are you trying to achieve that youre checking whether the user already is subscribed to a group and select the group he is subscribed to? If hes not subscribed (so if $Cargroup == 0) why...

Post Posted: August 20th, 2004, 8:21 am

Say if theres an email address,, and i wanna know if it is an hotmail address, is there any direct function for that? I could not find any on Yes, there are multiple in-direct manners to achieve this. One of them would be [code] $var = strspn(""...

Post Posted: August 20th, 2004, 8:07 am

Code: [ Select ]
echo $_COOKIE['name'];

replace »name« with the name of the cookie.

However this will display the logged in user's name, say if theres User A and User B online, on the list of online users User A will only see 'User A', and User B will solely see 'User B'.

Post Posted: August 20th, 2004, 3:53 am

what do you do when you're 'C++-ing' ? hehe anything? some really simple ones are calulators, confertions, factoring, math programs are supper easy to make. you can do alot with c++ you can make games, RPG. family tree, note pad ^^ music player image views. alot of the simple things a computer come...

Post Posted: August 19th, 2004, 11:54 am

There are many many ways on taking care of this, one of those is that you put a redirection page between it, that creates cookies that hold the values of the username or the user ID #. create a new file, say redirect.php and use [code] header("Location: details.php"); [/cod...

Post Posted: August 19th, 2004, 7:51 am

[code] $recipient = $_POST['email']; $subject = "Whatever floats your boat"; $header = "From:\n"; $mail_body = "hey there,\n"; $mail_body .= "pal."; mail($recipient, $subject, $mail_body, $header); [/co...

Post Posted: August 19th, 2004, 7:46 am

tommya wrote:
Those functions that were listed, to strip tags, is that pretty standard stuff?


$name = strip_tags($name);

Post Posted: August 19th, 2004, 7:38 am

jlknauff wrote:
I think if there was a way to by pass that, the spammers would already be using it

like i said:

while some real spam and unaddressed advertisement does get through the Spam filter.

they are.

Post Posted: August 19th, 2004, 4:19 am

Rabid Dog wrote:
Again if I am crossing any lines here please tell me

that would be nonsense, there is and always will be danger, and we should not immune it but rather learn matters of protection.

Post Posted: August 19th, 2004, 4:15 am

hehee aah master?? is there such a thing, you never stop learning about a lango or script, i started out with php then c++, i want to learn java next. im still working on php, when i get board of it i go to c++, then back to php when i get board of c++ its an on going thing (board meaning, cant fig...

Post Posted: August 19th, 2004, 3:46 am

Okay here is a thought for you. What if I got the url for that the form was being submitted to, created my own form and for the value of select added something like this [code] <form name="nasty" action=""> <input type=&q...

Post Posted: August 19th, 2004, 3:31 am


Post Posted: August 19th, 2004, 2:26 am

just a quick question, what is the new way to get the current file's name?

and an additional question: is this the way you guys managed to not get google ads on the login and other pages? (checking where the user is, if php_self = login.php dont display google ads, you get what im sayin)

Post Posted: August 19th, 2004, 2:18 am

For a website that is in the making, people need to register, and later confirm their registration. Firstly I was busy researching why I had not received any e-mail while testing the system out, later on i found out it was in my "Unwanted mail" box of my hotmail account, together with the PayPal con...

Post Posted: August 17th, 2004, 2:07 am

it was, thanks again.

Post Posted: August 17th, 2004, 1:22 am

about the distinct(), could you explain what this does? i was not able to find this function in the function list at

Post Posted: August 17th, 2004, 1:16 am

thats good to know, thanks.

Post Posted: August 17th, 2004, 12:01 am

i was wondering, does a database get slower if alot people try to access it, rather than less? My point is: if you were to construct a large site, with alot of lines in each table, were it smart to make 1 database hold 1 table only, and use a 2nd database for a 2nd table, or would it not differ on s...

Post Posted: March 19th, 2004, 1:41 pm

PHP, and a redirection in PHP would be prefered, otherwise javascript should do :wink:

Post Posted: March 19th, 2004, 12:30 pm

When I set cookies, they're only valid after the page is refreshed, that's why I need a redirector. Ive used a couple of techniques, but they lack what ive seen on a site. I need it to be that fast that you cannot see the URL in the address bar. On a site before, ive seen a link linking to another f...

Post Posted: March 14th, 2004, 10:36 am

sorry, but ill post this since its not an options, but i like these blue ones most.

Post Posted: March 13th, 2004, 8:49 am

Im having a conflict at a login network im busy on. My primary question is if it is able to (as a user) change the value of a cookie. If it is, how hard would it be? This is from the security side, cause id need to know this to see if i should proceed. However, i think what ive thought of is a bit i...

Post Posted: March 13th, 2004, 3:29 am

its a conspiracy :shock:

naye, i posted it in the programming section, got deleted within an hour or so.

Post Posted: March 12th, 2004, 3:37 pm

Thank you very much, I will try again, maybe there was a misunderstanding. Indeed, as i also stated in the post im thinking of using it in the code of a login section together with edit profile & others. I have done safer things that had no success, and i think this will, but then again, im wonderin...

Post Posted: March 12th, 2004, 1:12 pm

I've noticed my last question, and maybe one before, have been deleted without notice. I asked if it is possible to edit the value of a cookie, and if possible how hard it would be. Since cookies are used in/for coding, and coding is required in order to use them, i posted this in the Coding Section...

Post Posted: March 7th, 2004, 11:28 am

For letting the user himself select a username and password, id suggest you to setup a MySQL Database, and add the filled in username and password to a table. Id make 3 columns: - user_ID: int, auto_increment, Primary - username: VARCHAR, 40(maximum of characters allowed in username) - password: VAR...

Post Posted: March 7th, 2004, 3:45 am

thanks, ill see if i can manage.

Post Posted: March 5th, 2004, 11:58 am

hey, ill need this script (preferably PHP, if not then JavaScript will do) that creates a random image in it with a string, that the user has to enter correctly to check that the user is human. It's seen on register and login pages somewhere, and it got my attention. Ive searched around at hotscript...

Post Posted: March 3rd, 2004, 7:39 am

heya...ive received "The C++ Programming Language" by Bjarne Stroustrup, which you probably know as the developer of C++. I was adviced that book by friends online and the store owner, without even mentioning it. Anyways, there are some words i dont understand, but most are not important, he never r...

Post Posted: March 1st, 2004, 11:47 am

hey guys, thanks everyone for your replies. I must apologies, i ran off to vacation after the first reply :) anyways, about the scroll bar at the bottom, the owner insisted on it, so i didnt believe i should make a fuss about it. About those little photos not linking to the model page, thanks for me...

Post Posted: February 17th, 2004, 8:32 am

Hey, I just finished this design for an actual kid bikes brand. The new design is about to go online in a few days, and im wondering if you guys think i can do anything to improve it. It's a dutch company, so is the site, but theres not much text on it so that wouldnt really matter. Thanks in advanc...

Post Posted: February 17th, 2004, 8:23 am

on the buy drinks, id remove the underline at the header "Buy-Drinks - Wine & Soft-Drinks", cause you already have alot of headers underlined. Otherwise, i like the ornage colours in it. keep on it. For the forum, i didnt think that middle banner did fit very well. The side bars dont correspond with...

Post Posted: February 17th, 2004, 8:16 am

what about giving the links another color than white, its not readable quite well at first look.

Also, i would advice a 1px black border around every news message post, keeps it a bit clean.

furthermore, i like the graphics design

Post Posted: February 17th, 2004, 7:36 am

yes, the fields show up like theyre supposed to in phpmyadmin.

However, I noticed the datetime continues to have the standard value (0000-00-00 00:00:00)

I added something to the fields manually through phpmyadmin.

Post Posted: February 15th, 2004, 1:35 pm

all checked and approved :?

Post Posted: February 15th, 2004, 12:19 pm

i had the database name there before, which created a different error..till i put up localhost it sticks with this one.

Post Posted: February 15th, 2004, 11:44 am

yeah thats probably the good guess, i tried it on another host and it worked. thanks

Post Posted: February 15th, 2004, 11:38 am

yeah i did, it was localhost, i just removed it anyways, the problems not there anymore. got around it. now it has the problem with [code] Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/omegades/public_html/ts/index.php on line 203 [...

Post Posted: February 15th, 2004, 11:27 am

hey, i just moved to a friends' host ( and when i use my site there, its actually not working. As is, the database connection isnt. I already notice that the phpmyadmin is different, you can only choose between primary, indexed & unique, instead of all. Anyways, when i enter the url f...

Post Posted: February 14th, 2004, 11:47 am

oh well, i have it in the same folder, just for testing. theres no not-on-the-www-folder on tripod. Anyways, I tried FileZilla, and it showed the files, but its just that that host isnt available for me anymore. Does anyone know if this is not supported by lycos? And, most important, does anyone kno...

Post Posted: February 13th, 2004, 11:06 am

Axe wrote:
as far as I know, you need to put the COMPLETE path to the .htaccess file.

Errr...i doubt i have to put the .htaccess path in the .htaccess.
That a typo or?

Post Posted: February 12th, 2004, 1:23 pm

Ill try filezilla, but no i dont use shells

Post Posted: February 12th, 2004, 1:22 pm

Axe wrote:
Oh, just make sure .htpasswd is chmod'd so Apache has access to read it :)

i have it modded to 644, read all, write owner. Would it require more?

Post Posted: February 12th, 2004, 10:07 am

Im still encountering problems while using these two to secure a map with a password. Im using this in the .htaccess:
Code: [ Select ]
AuthName "Please enter the password and loginname to enter." AuthType Basic AuthUserFile .htpasswd AuthGroupFile /dev/null Require valid-user
I've used...

Post Posted: February 4th, 2004, 1:02 pm

thanks, but that doesnt display the message either. I know, its weird.

Post Posted: February 4th, 2004, 8:32 am

im using
Code: [ Select ]
$news['news_main'] = eregi_replace('<br[[:space:]]*/?[[:space:]]*>', "\n", $news_['news_main']);
for replacing the <br /> back to normal endings. But if I use that, nothing appears. ...

Post Posted: February 4th, 2004, 12:11 am

thanks, the search engine couldnt find it, but i could :)

and really, its a neat site.

Post Posted: February 4th, 2004, 12:10 am

I checked it and the code that adds the message is above the one that displays it, so it SHOULD be fine. But its not.

Post Posted: February 3rd, 2004, 1:33 pm

Been working on this for a bit. Just about to get a domain so don't worry about that. The dark navy ocean image is for composition and to create a calm atmosphere as I didn't really want any stock images as I felt that they could put clients off. Anyway here it is...... Blue Web Design cool font, c...

Post Posted: February 3rd, 2004, 12:02 pm

Ditto Axe :wink:

Symantec is mostly the first one to come up with how to remove and prevent the virus

Post Posted: February 3rd, 2004, 11:47 am

hey, ill just post it here to continue this topic, theres a file called news_new.php that has a form to add a message, its sent to news_list.php that displays the messages and allows to remove or edit them. the header is not showing up in news_list.php, nor in the public message display (which means...

Post Posted: February 3rd, 2004, 11:36 am

damn font id swear its a 1 :)

Post Posted: February 3rd, 2004, 11:12 am

Using this function gives me a fatal error saying its an undefined function... does that mean its no longer supported?

the line im using it in is

Code: [ Select ]
$news_main = n12br($news_main);

its supposed to set normal line endings to <br> tags (html line endings)


Post Posted: February 2nd, 2004, 12:04 am

When i add the "or die(mysql....)" and then click on remove, it doesnt displays any messages (none of the 2). When i go to that page again (news_list.php) theyre there again. So, theyre not really deleted, and they both disappear. maybe cause bool has to have a false or true value, and that making t...

Post Posted: February 1st, 2004, 1:52 pm


Post Posted: February 1st, 2004, 1:51 pm

Well, I got it, it should be <?php echo $news['news_ID'] ?>, as of table news, the news ID field. When i scroll over the link it shows the correct ID of the message in the bottom bar of IE. But STILL it wont delete it. [code] //This part takes care of removing the message if($action == &qu...

Post Posted: February 1st, 2004, 1:28 pm

no, its not really working

Code: [ Select ]
<a href="news_list.php?action=delete&news_ID=<?php echo $news_ID ?>">Remove</a>

is what i made of it.
What causes it to know what message it is in?

Post Posted: February 1st, 2004, 1:17 pm

thanks, shouldve thought of it. But now I keep on getting the error, cause it probably doesnt knows what message to delete. the link should also send the id of the message (wich is under the primary key news_ID in the database) automatically. How? is the big question. Anyone got the big answer? (the...

Post Posted: February 1st, 2004, 1:04 pm

I tried the second link, and everything works fine, but the correct password. I don't have access into .htpassw, so I have to use the outcome of perl's crypt function:
Code: [ Select ]
perl -e 'print crypt("example",",9r-jdQI8,.")'
and that outcome should be posted afte...

Post Posted: February 1st, 2004, 12:33 pm

thanks, ill test em out

Post Posted: February 1st, 2004, 12:13 pm

pretty neat m8, good job :)

Post Posted: February 1st, 2004, 12:05 pm

I need to set a password on a map, I know this can be done using .htaccess & .htpassw I've made 404 errors before, but im clueless on the .htpassw If anyone could explain or refer me to an article about this, thanks. I've tried googling this but since the words themselves are not very specific I cou...

Post Posted: February 1st, 2004, 12:01 pm

I'm busy with a news poster, and at the administrative part of it, at the part of deleting a message, i've come to the fact that i have to set a parameter on the link to have it work. the code reflecting it: [code] //This part takes care of removing the message if($action == "delete"&#...

Post Posted: January 30th, 2004, 12:44 pm

damn, srry, i noticed another mistake btw too.

Post Posted: January 30th, 2004, 11:54 am

this is about a news poster im making, Im stuck on an error. this is just the display part. [code] <?php $db = mysql_connect("dave90_nl_db", "dave90", "") or die ("Connection to database failed"); mysql_select_db("dave90_nl_db"...

Post Posted: January 26th, 2004, 1:31 pm

I just messed around, and now its gone.
Sorry for your time, and thanks anyway :P

Post Posted: January 26th, 2004, 1:05 pm

actually, I just figured it doesnt. maybe its me, but it always picks another answer at the evaluation. (as if $randomNum is calculated again. heres the full code, not just the php (although thats the biggest part): [code] <body bgcolor="#99999...

Post Posted: January 26th, 2004, 10:17 am

I might be your man.

Post Posted: January 26th, 2004, 10:16 am

Thanks, but no, its still the same.
I really don't have a clue.

And ATNO, what do you mean by deprecated? Last time i checked they were still supported.

Post Posted: January 26th, 2004, 10:13 am


Post Posted: January 26th, 2004, 7:00 am

I'm having an issue with HTML tables. When i post an image in a cell, it creates like 2 pixels space under it. And i thought i tried all: [code] <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="v1.jpg" width="...

Post Posted: January 26th, 2004, 6:54 am theres another one, i am making a website soon selling Templates and premium domain names those are very nice. Where do you get those photos of people, and stuff? Someone I know told me that you can buy packages with those kinda stuff, b...

Post Posted: January 26th, 2004, 6:50 am

thanks a million. im sure it will do.

Post Posted: January 21st, 2004, 6:55 am

thanks man, i dont think i wouldve figured it that out. Theres this last thing, a command that i dont know, but that has to exist. as the final result im currently using [code] <?php if($number == 114){ $percentagec = $correct / $number * 100; $percentagei = $incorrect / $number * 10...

Post Posted: January 19th, 2004, 9:40 am

I hate keeping you busy on this one subject, I really do. I know the logics of the following are wrong, but if i beat my head 10x on the wall nothing will change. I had already done this before I came here, but still didnt find no solution. Right, lets get to the point. If I want to make an "unorden...

Post Posted: January 18th, 2004, 8:29 am

You're the man.

Post Posted: January 18th, 2004, 4:54 am

Youre most thankful once again :wink: but heres another thing, and i apologise for keeping bothering you; It would be quite efficient if the user would not need its mouse. This would mean that the text field should be automatically selected, and so should be the "fill in" button, and on the evaluati...

Post Posted: January 18th, 2004, 4:50 am

this should do it: [code] <?php $fp = fopen{"audiolist.xml", "a"); fputs($fp, "<song path=\"field 3\" bild=\"no image needed for user submit\" artist=\"field 1\" title=\"field 2\"/>" . "\n"&...

Post Posted: January 17th, 2004, 11:43 am

Look I have used google and all i get is crap. I dont want a forum I already have one all I need is to make a website like if im not wrong, thats Nuke I cant really help you out, cause what you need to do is indeed get yourself a PHP or other scripting language book. If ...

Post Posted: January 17th, 2004, 11:34 am

weird, ill ask around anyways, if you can miss a bit more of your spare time helping me out again, id appreciate it. Ill explain some first, what this thing is meant to do is to display a word, you fill in the translation, click on "fill in", get the page showing if its wrong or good, and showing yo...

Post Posted: January 17th, 2004, 10:57 am

awesome, it works thanks however, i still would like too realise what i really did wrong. alright, i get it now with setting $number. however, was my way of doing $number + $1 really wrong, or is just $number++ easier? And if doing it the way i wrote it doesnt really save it, why does it this way? (...

Post Posted: January 17th, 2004, 4:12 am

Hi, I tried to script something in PHP, without the tables and the other stuff this is it: [code] <?php $Qword[0] = "sketch"; $Qword[1] = "regulations"; $Qword[2] = "excellent"; $Qword[3] = "staff"; $Qword[4] = "...

Post Posted: December 31st, 2003, 3:21 am

alright, thanks dude.

Post Posted: December 30th, 2003, 11:19 am

html, for sure
php together with JavaScript is a scriptinglanguage, wich is to make dynamic websites.
anyways, if you dont really get it, trust me, start with HTML.

Post Posted: December 30th, 2003, 4:36 am

whats the use of setting a string such as "This is a string" (whatever string) as an int, or a double?

Post Posted: December 30th, 2003, 4:33 am

well my names dave, and the reason that im here is mainly because i expect that the people here have some skill and could help me out with stuff. the thing thats missing in books about PHP or anything else is that you cant ask direct questions, about perhaps just small things. i might be able to ans...
  • Sort by

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.