sKunKbad
Members-
Posts
1,832 -
Joined
-
Last visited
-
Days Won
3
Everything posted by sKunKbad
-
A more advanced way would be to filter each array so that any time the array is used it is considered clean. Frameworks that I have used do this automatically, but before I started using frameworks I did the same thing. If you don't use a framework, or don't want to use a framework, you might consider downloading one just to see how it handles common tasks.
-
You ought to promote your game by telling about it, with some screenshots. There is currently no indication that the site is a game site. Design-wise, it seems ... orange, but otherwise I guess it's OK.
-
just embed another if statement within the if statement that checks for villian
-
There is a multitude of php authentication scripts available online. Making an authentication script goes way beyond php basics, and you should consider the high probability of getting hacked if you don't do your homework. A great solution for you might be to use a php framework that includes an authentication class, or use PEAR's authentication. kohanaphp.com is the home page for the Kohana framework. It includes an authentication class. codeigniter.com is the home page of CodeIgniter, and CodeIgniter is a great php framework, and some community members have posted authentication modules in the site wiki. phpclasses.org might be a good place to look for authentication scripts that are not part of a framework.
-
URL include is probably turned off, as it should be, in your php.ini file.
-
Well, I figured that out, but the problem is that the real haystack is XML being brought in from cURL, and it just isn't acting the same as when the haystack is in the code as I showed. I think it has more to do with cURL than strpos.
-
I'm trying to check for an error message within some XML that is returned from cURL, but strstr and strpos aren't working for me: <?php $response ="<?xml version='1.0' encoding='UTF8'?><error xmlns='http://incubator.apache.org/abdera'><code>409</code><message>Email address (someemailaddress.com) is already a contact</message></error>1"; // Check for error if (strpos($response, "<?xml version='1.0' encoding='UTF8'?><error")) { echo "The subscription process failed - try again.<br />"; } echo $response; // echo response, it may contain an error message ?> What's wrong here? Instead of strstr or strpos seeing my needle in the haystack, I just see the haystack output.
-
You should spend some time learning about php, uploads, and upload security before putting code like you have started on a production website. If you are just looking for somebody to write code for you, there are many tutorials online, and you could just use their code. If you don't want to learn, and simply need code, try phpclasses.org.
-
It is common to "salt" your string before hashing with MD5, sha1, or whatever you use. Salting makes sites like you have shown totally ineffective (unless the salt is something totally simple, easy & obvious).
-
It sounds like you need to look up how to send the mail as HTML. Searching for "php html email" should do the trick.
-
Flash Haters Unite! I hate flash too. If you're looking for a good first impression... get rid of the Flash... and consider looking through free CSS/XHTML template sites for some design inspiration.
-
I'd like to see AvDose Home | AvForum | AvBlog all be styled the same way, and the fact that the home page you shared has even a seperate style is not making things better. I know you said you didn't design the site, but there is a need for more pictures to be on the site. That's all I could think of... nothing too harsh.
-
Enlarge the text, and my eyes would thank you!
-
Don't beat your brains out anymore. Just use the HTML character code: • It may not be the most semantically correct thing to do, but at least you'll save your brains.
-
Read this: http://apptools.com/phptools/force-download.php
-
I experienced the same errors as Axeia. I'm using FF 3.0.11 on Ubuntu 8.10
-
I have played around with creating PDF forms that submit to php, but I'd like to do something, and I'm not sure if there is a program I can buy to do this or not. Basically, I want to have a PDF that a site visitor would fill out, but instead of posting form fields, I want the PDF to post itself (the entire PDF with form fields), and immediately email this "form submission" as an attachment to the site owner. Is this possible, or am I stuck recreating the pdf with FPDF or something?
-
Please Crqtique my site - would love any and all input good or bad
sKunKbad replied to yoojin's topic in Website Critique
I don't care if Google can index flash sites or not, I just don't like them. I don't like staring at loading.gif images (and I'm on a normal DSL connection). I don't like feeling seasick because the screen is moving around. I like the option to enlarge the text if I choose to do so, and I like the option to turn off images. Some use of flash is OK, but for the small amount of time it would take to make a normal HTML site, it would be time well spent. -
Firefox warns of malicious content as well. It would be good of a site moderator or admin to remove the link so that there is no chance of infection for phpfreaks members.
-
I think you need to declare a width for #container, not just a max-width.
-
I'm looking for a function to remove all characters that aren't numbers from a string. Does php have anything built in, or do I have to come up with something on my own?
-
I've got a js file that calls some image files, but I need the locations of the images in the file to be absolute, because they are called from dirs and sub-dirs. The problem is I get the secure/unsecure items warning, so I'm looking for a way to have javascript determine to use https or http. Haven't found anything yet.
-
I have only tried Kohana and CodeIgniter, and I like CodeIgniter better. Kohana's docs are outdated compared to the current version (which is really bad when trying to learn), and the community is slow to respond to simple questions. CodeIgniter seems to work great, it has great docs, and the community is awesome. CI seems to run faster too. I'd be willing to check out other frameworks, but I'd really need a reason, and right now I don't have any.
-
You probably need to declare a float property, such as float:left; or float:none; You also probably need to declare a width, either absolute or relative.
-
I think I need two backreferences, because I am trying to make this work in mod_rewrite: RewriteRule ^/(~brians6)/(.*) $1/index.php/$2 so that I can make my shares sll work with CodeIgniter. Actually, I'm not even sure this is my answer. Trying to get CodeIgniter working with my shared ssl has been unsuccessful no matter what I do. Even this doesn't work: ^/~brians6/.*