- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 2
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
41 Posted Topics
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 … | |
Re: You can also use AJAX to pass the variable behind the scenes so to speak. | |
![]() | Re: 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 |
Re: 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 … | |
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] … | |
![]() | Re: 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. |
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 … | |
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 … | |
Re: 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... | |
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 … | |
Re: 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... | |
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. | |
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 … | |
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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: @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, … | |
Re: 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. | |
Re: 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( … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
Re: 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 … | |
Re: 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. | |
Re: 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? | |
Re: 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. | |
Re: 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. | |
Re: Do you have cPanel installed on your host webserver? | |
Re: 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. | |
Re: 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] | |
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 … | |
Re: LOL, love this blog. | |
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 … | |
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 … |
The End.