Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
8
Posts with Upvotes
2
Upvoting Members
7
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post

41 Posted Topics

Member Avatar for Froger93

Hey guys, I just wanted to let everyone know that functions can be used very constructively and there are more to them then most think. Okay this example function is actually pulled from a class of mine so it would probably make more sense in my class but it should …

Member Avatar for coreyavis
7
935
Member Avatar for ShubhadaLitke
Member Avatar for Gilette
0
2K
Member Avatar for JayGeePee

Or use URL Rewriting. .htaccess [code] RewriteEngine On RewriteRule (.*)\.html $1\.php [L] [/code] This will make the browser think the document is .html but instead the server looks for .php. PUBLIC URL: [url]http://example.com/index.html[/url] INTERNAL URL: DOCUMENT_ROOT/index.php

Member Avatar for kylegetson
0
202
Member Avatar for reminem

Okay what I would suggest doing is where you are echoing out the error message "file not found..." under that add the following line: [icode]echo "<br />" . $_SERVER['DOCUMENT_ROOT'] . "/upload/" . $_POST['delete'];[/icode] This should bring a new line displaying the internal file system path that the system is looking …

Member Avatar for reminem
0
136
Member Avatar for Froger93

Hello All, I'm not sure if this is the right place to put this, I apologise for it any way. Okay so here it is, I have a sitemap file [icode]sitemap.xml[/icode] and I have PHP code inside it. The problem I am having is when adding the following lines: [code] …

Member Avatar for _coder
0
117
Member Avatar for Puster

I would advise wrapping all queries inside the mysql_real_escape_string() function. It seems as though between PHP and MySql they are not comming up with the same result.

Member Avatar for _coder
0
195
Member Avatar for Froger93

Hello Guys, Right my problem is, I am creating a slider where in which each element is slid (using animate width) into place. This is how it works, the element currently displayed is give a margin-left: of 842px (same as my slider width) and then a margin-top: of 300px (height …

Member Avatar for Froger93
0
165
Member Avatar for Froger93

Hello all, I am having trouble as I am on a shared server where obviously someone has been abusing the SMTP server as Hotmail has blacklisted it, I have contacted my host and they are working with microsoft to resolve the issue BUT in the mean time my customers are …

Member Avatar for servertoday
0
96
Member Avatar for vb5prgrmr

To be fair, I'm a bloke and I'm quite liking the purple. It goes well with certain greens and looks elegant and tidy. Doesn't mean it's girly. Thats just imature and some people need to grow up...

Member Avatar for vb5prgrmr
0
607
Member Avatar for Froger93

Hello all, I have a problem. I have a dual boot system with XP as primary and Win7 installed off of XP so that XP has the boot files. My problem is now I want to get XP off and solely have Win7. Can I remove the XP partition then …

Member Avatar for markdoctor
0
79
Member Avatar for cwarn23

My main issues are in the actual back end programming. I have already lost an account as I can't reactivate it after having changed my email address. I tried to contact the addresses it told me to but just got postmaster not received...

Member Avatar for Froger93
0
248
Member Avatar for Froger93

Hello all, I have a dual boot with XP and Win7 and I am trying to rid myself of XP but it seems that the XP partition is the system partition. Is there any way I can change the system partition to my Win7 partition? Thanks.

Member Avatar for chrisbeechris
0
124
Member Avatar for Froger93

Hello all, I am having some real issues with internet explorer. I have created a jQuery image rotator (flick along a selection of images). Everything works on everything but internet explorer. So much so that Internet Explorer doesn't even display the first image even before the transition. Instead I just …

Member Avatar for kflorida78
0
402
Member Avatar for Froger93

Hello again, After my previous post I have tried to convert all my jQuery into JavaScript with success. UNTIL I looked at it in Internet Explorer and again it threw a wobly and is now having a go at my [icode]--.style.display='block'[/icode]'s. It says that it is not a function. So …

Member Avatar for almostbob
0
105
Member Avatar for Justme24

Yes it is... It isn't practical to write up a bespoke script for every user so the PHP manual's GD section may bare some helpfull information.

Member Avatar for Froger93
0
69
Member Avatar for smush

This error means that the query returned 0 rows. This can either be due to the fact that there isn't any rows OR that the query its self is incorrect and not pulling the desired results. To troubleshoot the query it's self I would take the query and put it …

Member Avatar for Froger93
0
153
Member Avatar for rahul8590

Sorry do you want to restrict or resize the image? If you are trying to create a social networking application you will need either a Java or Flash application to handle the file upload process as PHP is [b]very[/b] lacking in this aspect. Reasons being is that PHP can only …

Member Avatar for Froger93
0
165
Member Avatar for Carrots

@CodeEgg 's method may work allthough I'm not entirely convinced the method I prefer is using a document called "img.php" this document will need to process an ID or something that defines the row which contains the image you wish to display. You would do this via the GET method, …

Member Avatar for Encrypted
0
3K
Member Avatar for niths

So you want the value to be sent along with the rest of the form? This should work, although your better off adding a text value to the radio button to start off with so you can be sure the data is being sent.

Member Avatar for cwarn23
0
96
Member Avatar for SOlaNkI ThakUr

You need to create a loop. If you are pulling the images from a database which I presume you are else the basis is pretty much the same. [code=php] <?php // You need to connect to the database. $pull_images = mysql_query("SELECT * FROM `images` ORDER BY `upload_time` ASC"); if( @mysql_num_rows( …

Member Avatar for Froger93
0
90
Member Avatar for D4n1sD

You need to use a concoction of the functions found here: [url]http://php.net/manual/en/book.image.php[/url] Generally what you need to do is create a document names usernames.php and then pass a get variable to this document containing the string you wish to be placed into it for instance [icode]<img src="usernames.php?username=my_username" alt="my_username" />[/icode] then …

Member Avatar for Froger93
0
93
Member Avatar for phpDave

As @ardav said not sure what you are putting the overflow on, the issue with IE is that the browser window is a different size you need to make sure that if your site is a fixed size it is under 930px or if it is a fluid width then …

Member Avatar for phpDave
0
83
Member Avatar for Froger93

Hey, I'm designing a site for my old man and I am having some issue regarding pre-loading image for a hover effect. Currently when I hover over an image it gives me a brief period of white space then loads the hover image. I have tried to add the images …

Member Avatar for Froger93
0
195
Member Avatar for sam023

Ideally you should store times and dates in the Unix timestamp method. However you would need to create a function to split the time using the ':' character and then use the second part and figure out wether or not it is 59 if it is change it to 00 …

Member Avatar for Froger93
0
106
Member Avatar for genieuk

The first part of it is pretty much okay although as you stated the PHP won't be parsed in the XML file so my think leads me to have a CRON Job to run a seperate PHP file that will render the XML code then overwrite the code that is …

Member Avatar for almostbob
0
255
Member Avatar for phouse512

Okay usually I use supressants on mysqli_num_rows as if there is 0 rows it will return this error. Try running a query that you know deffinetly exists in your database.

Member Avatar for phouse512
0
233
Member Avatar for CFROG

I know with phpBB you can create a login form for the forum, so you could use the same tables as phpBB but I'm not sure about the other way around. I know you can extend phpBB and use it's members tables and cookies etc. but I think it would …

Member Avatar for CFROG
0
343
Member Avatar for SKANK!!!!!

If it doesn't it's simple to delete the contents of a folder: [code=php] <?php $folder = "/FOLDER_NAME/"; while( $file = scandir( $folder ) ) { rename( $file , false ); } ?> [/code]

Member Avatar for SKANK!!!!!
0
146
Member Avatar for dan1992

Also: [icode]$insert = mysql_query("INSERT INTO n VALUES ('','$title','$body','$date')") or die (msql_error());[/icode] Should be: [icode]$insert = mysql_query("INSERT INTO n VALUES ('','$title','$body','$date')") or die (mysql_error());[/icode]

Member Avatar for Froger93
0
84
Member Avatar for Aamit

You could do this with radio buttons or JavaScript as facebook does. Obviously we wont write this script for you but here is how it generally works. [code=php] <?php // Run query to retreive gifts $get_gifts = mysql_query("SELECT * FROM `gifts`"); if( @mysql_num_rows( $get_gifts ) > 0 ) { echo …

Member Avatar for Froger93
0
116
Member Avatar for Zack_G

Hmmm, am I missing something as I don't understand why you are doing it that way why not make your path then include it... [code=php] $path = "includes/" . $pager['code'] . "/index.php"; include( $path ); [/code] As an example. As I said I might have missed something.

Member Avatar for Froger93
0
181
Member Avatar for DaraPsy

Thats bizare, the [icode]C:/wamp/www/[/icode] is the server root. Hmmmm.... Strange if you can render the phpinfo page then PHP should be configured. Are you sure the PHP document is name as welcome.php and not welcome.php.txt as allot of people have mistaken this for?

Member Avatar for Froger93
0
180
Member Avatar for icon512

That looks fine although if this is just one static page then it's not shortening the load infact you are doubling it as they are going through two servers.

Member Avatar for Froger93
0
773
Member Avatar for menetas

Okay I just thought you can't use apache rewrite module. Maybe you need to use PHP to ask what the URL is and then use the PHP header to redirect it to the url with the port on the end.

Member Avatar for network18
0
90
Member Avatar for zhou1919
Member Avatar for trazan

It really depends on what you are developing. If your project doesn't require extensive programming then the Zend framework isn't really worth it. Although if your project is very extensive and will grow with time the Zend framework would come in [b]very[/b] usefull.

Member Avatar for trazan
0
72
Member Avatar for rouse

This is a heredoc method used for storing large strings that take up more than a line of code. The PHP documentation can be found here: [url]http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc[/url]

Member Avatar for Froger93
0
121
Member Avatar for Froger93

Hey guys, I have a problem. I have a connections_lib.php file this will handle all of my db connections, this works AMAZINGLY (power of OOP). Unfortunately some of my other classes require connection to the databse therfore they must use these methods (is that the right word for OOP I'm …

Member Avatar for Froger93
0
182
Member Avatar for khess
Member Avatar for Froger93

Hello all, I have an issue regarding using variables from my global.php in a hiarachy of documents. I will explain how this works. I have my index.php in the root of my server, I then include the global.php file and from then on I include a handle.php file for the …

Member Avatar for chrishea
0
212
Member Avatar for Froger93

Hey guys, I have been working on some code and have struck a problem, I tried to make the code as easy as possible to edit at a later date. The issue comes when I include a config file from a directory for a certain page, this config file decides …

Member Avatar for SAMAEL
0
167

The End.