Why does not PHP free memory ?
Hi all, I have a PHP script that connects to a db, retrieves some data and displays it to the user. To get an idea of memory usage, I inserted some "echo memory_get_usage();" statements at different...
View ArticleDisplay Multidiamentional array in a customize way.
I have a multidimensional array and it is like this - Array ( [Monday] => Array ( [open] => 05.00 PM [close] => 04.00 PM...
View Articlehow to re-size temporary image file and upload to mysql blob
can any one here know how to resize temporary file image and upload to mysql coz large images is hard to buffer on my school project
View Articlehow to detect if download has finished in order to hide the spinning loading...
Hi, is there such way/method/strategy to detect if the downloading of a file is finished?..my problem is like this. Scenario: when click the report generator button, a loading wheel icon appears...
View ArticleFunction error : pulling user id from username
I am attempting to setup a profile page based on the information that the user signs up with. (I am following a video online, the code matches but he is on a local server i am using a hosted server...
View ArticleIf isset problem
Hey Guys, I'm using a simple function to retrieve data from an html page based on if a div exists or not. function retrieveArticleBod($scrapedArticleURL) { echo "<hr><b>DEBUG:...
View ArticlePHP mail() function
I've built a survey which uses sessions to store user input. Rather than putting this into an SQL database, I've decided to use PHP to email the data as the information isn't private or confidential....
View ArticleFuture Proofing database connection/functions
Hello all, I am trying to make a determination about the best way to move forward with my database code for both personal projects and for the company I work for. For my own projects, I used to use...
View ArticleOpen A txt File From Web Location
I created a website for my Mother's civic association. She is in charge of the associations announcements. She does not know HMTL. I am new to PHP. I want to create her Announcement/Event page using...
View ArticleChecking if a domain is in use.
Good morning, I am doing a domain checker part to a site and researched a little. Found gethostbyname() function and noticed that if a domain exists for example www.google.com, it returns the IP...
View ArticleHelp: Code to cut a line and go to the next
hello! i run a mybb forum and they have the worst support forum so i decided to try my luck here... i have this plugin code and what i want is when the line reachers 30 characters it will go to the...
View ArticleHelp with my code
My code is, <?php function getreg($id) {return file_get_contents('http://arcbots.com/userinfo.php?id='.$id);} function getID($reg) {return...
View ArticleEcho certain pieces of text only if a value is filled in
Hey, guys, I'm new in the whole php thing. I believe what I am asking here is super simple to do, I just wasn't able to find it anywhere. In the code below, you guys will notice that not all the fields...
View ArticlePostback api php and sql issue
Hello, after 3 hours of insanity i figured i would reach out for some help. i am re-building a postback file that works off an API. i have got it to pay my members, but thr their referral person....
View ArticleProblem with strtotime
I have a script which calculates how many hours a truck driver has worked/rested in increments of 15 minutes. For a given number of hours I loop around adding 15 minutes to a cursor for each 15...
View ArticleHow to auto select a checkbox when List/Menu item is selected.
Hi Guys,I am new to php coding and I am trying to add some code that I wanted to work and what I want to supposed to happen. This code is about printing selected rows using check box. All the data that...
View ArticleUpdate MySql DB using Classes
Hey all, How would I make it so this code will update the database? In the class(name is News) I have this function: public function save($isNewNews = false) { $db = new DB(); if(!$isNewNews) { $data =...
View Articleneed PHP/MySQL help
Hello everyone, I have a problem regarding PHP/MySQL. I've been learning PHP, along with HTML/CSS/jQuery (jQuery just started), for a month now, without any prior programming/markup experience, so be...
View ArticleLogin script failing to recognise username
Hi, I've recently just restarted doing some web design, I've decided to learn some PHP and have set-up a LAMP set-up on my Ubuntu desktop. I'm trying to create a very basic login page, I have created...
View ArticleHelp with Notice: Undefined variable error
Hello Everyone, I've got the following snippet of code that is use to retrieve student's grades when they log into the class website. I've been using the bit of code for years, but I'm switching to a...
View Article