-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
("SELECT * FROM tutorials WHERE username='cganim8or' $max") The username will be in the superglobals array sent through the url. i.e ("SELECT * FROM tutorials WHERE username='".mysql_real_escape_string($_GET['username'])."' $max") The reason you are duplicating so many pages is that you have hard coded the database queries. This is incorrect for dynamic websites. If you had read the tutorial from the link I posted it explains how to query data based on paramaters sent through the url. This is what applies to you. Get a better understanding of how dynamic sites work.
-
no
-
That script runs like a dog on their demo version!
-
Haha. What a cop out. It will be bad code. Your script may have been exploited. The fact that they have mentioned ioncube means the source code will be encrypted so you cant even have a look at what may be causing the issue. The simple fact is that the script is trying to use that amount of memory and the server is giving it, so when the server can't give any more memory the script dies. Its like creating an infinate loop, eventually the system will run out of memory. So, how can they say it is your server?
-
Surely that is an extremely high salary. That works out at £50k. To earn that sort of cash you would have to have at least 10+ years experience and be in a managerial / team leader role in the UK. There is no way that a graduate with no work experience would earn anything near that as a software engineer in the UK no matter the location. Guessing tops would be about £25k, and you would have to be lucky. Our company expanded and took on about 3 uni grads. Worst mistake ever. I was totally shocked to see the skills they had learned (these were web development grads) on their degree. It was basic at best. They could not work in the real world as their knowledge didn't extend to the technologies & environments we were woking with. I spent most of my time having to fix their mistakes or show them how to build real world applications and structure code for the web. We ended up sacking them all as it cost the company a fortune.
-
http://www.roscripts.com/PHP_MySQL_by_examples-193.html
-
REALLY? Is that USD? I'm moving.
-
Yes there is. You can set in your mysql configuration (my.cnf) or use the charset command via the mysql cli. Read the following documentation. http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
-
I have read briefly about the Zend Java Bridge http://www.zend.com/en/products/platform/product-comparison/java-bridge
-
Why not get a dedicated server. Why go to the trouble of building your own. Your main issue is not the server hardware but the bandwidth your line can handle, especially for streaming video. Do you have a dedicated fibre line with high downstream?
-
I don't really understand the question in this post. Well, you write a CV, you send it to employers, upload to job search websites, scour the web for positions. Maybe offer yourself for some voluntary work to get experience. If you have a degree then is this not obvious. We had grads on about £18k I think
-
copy file from server to another server using php
JonnoTheDev replied to chaiwei's topic in PHP Coding Help
If both servers can talk to each other over your lan then just mount a share on the linux machine to the windows machine. Copy the file to the share. -
You dont echo objects <?php // page1.php session_start(); $x = new foobar(); $x->name = "John Doe"; $_SESSION['object'] = $x; header("Location:page2.php"); exit(); ?> <?php // page2.php session_start(); echo $_SESSION['object']->name; ?>
-
Remember you must use session_start() on all pages that require access to session data. Are you familiar with sessions?
-
Firstly you need to add a primary key to the table i.e id Make this auto_increment Secondly, if you do not want the same record entered every time a user visits that page you must change the query so that: 1. Select from the table where ip = users ip 2. If record exists do not insert a new record 3. If no record exists insert a new record
-
Yes, you loop over a result set returned from a database query $res = mysql_query("SELECT * FROM files WHERE customerId='123'"); while($row = mysql_fetch_assoc($res)) { print "<a href=........... } You get the idea
-
Or that the company was about to go down the pan
-
Get a unique id from a comma separated string
JonnoTheDev replied to mapleleaf's topic in MySQL Help
http://dev.mysql.com/doc/refman/5.1/en/regexp.html -
No, it gets the contents of the file! You should use include(), include_once(), require(), or require_once()
-
You are correct, however I think this is done automatically when the session variable is registered. Not had to use the serialize() function when registering objects
-
Store it in a session <?php session_start(); $x = new foobar(); $_SESSION['object'] = $x; ?> Generally used for the likes of shopping carts
-
copy file from server to another server using php
JonnoTheDev replied to chaiwei's topic in PHP Coding Help
Because most of the commands required in this operation such as mysqldump, sftp, ftp, scp, etc are all command line programs, so why use php? -
I can't lay down the whole code for your website but you must have a database structure containing your tutorials relating to the users who submitted them? The embed code should be in the database also against the tutorial so you can display the video. If a user clicks on Carls tutorials, lets say he is user id 123 I would run a query to get his tutorials /tutorials.php?userId=123 <?php $result = mysql_query("SELECT id, title FROM tutorials WHERE userId='".mysql_real_escape_string($_GET['userId'])."'"); // display the tutorials while($row = mysql_fetch_object($result)) { print "<a href='/tutorial.php?id=".$row->id."'>".$row->title."</a><br />"; } ?> This would display links to all of carls tutorials. The file is tutorial.php and I pass over the id of the tutorial. I can then get the required tutorial from this paramater. Much the same as I have done above
-
This will make gif images, no problem http://www.adobe.com/products/photoshop/photoshop/
-
Does not make sense. Please elaborate.