Contact Form issues
I'm having issues implementing a contact form on a website I am building. When I test the contact form on my localhost it works fine, but when I test it on the live website it takes me to a page with...
View Articleget content from form and compare for duplicates in txt files
hi, im a bit new to php programming, and im trying to make this: - user enters data on webpage and i store them to a txt file (this worked easily ...)- then i wanted to compare the string that users...
View ArticleSemicolon in output
Hello, As en newbie in php i am looking to a solution for the creation of an output file with semicolon seperations in it. comma delimitied is no option because the file contains values with a comma....
View ArticleCaching same URL separately - using Symfony2
I'm using Symfony2's reverse proxy cache (all default settings etc.), so I want to integrate it with that, but even non-Symfony users will be able to help. My example below changes certain headers...
View ArticleNeed help with an image url
Hi, i need to process an onix file (kind of xml). This was no problem, but in this onix file the images belonging to the products are a link to a script. When i open the url in my browser,...
View ArticleMy code is a world issue
Hello, Just to mention, I started with PHP in february I think. Now I've come across a problem that none of my friends can help me solve, so I thought of posting it here in hope of saving my...
View ArticleOutput buffering
Hi. I'm writing my own php framework for a couple of projects I'm doing and I'm currently writing the Render/Template class and I'm debating the use of ob_start(). Are there any practical benefits to...
View Articlecurl error.........on wheel loop..........help.....pls
i have a working curl with no error... if i set to 5 time loop .............then working fine................... and if set loop to 10 or more ..........i have this error on fire...
View ArticleNew with PDO
<?phpif ($_GET['do'] != "promocode") { header('Location: index.php?do=promocode'); exit();}if (!isset($_SESSION['loggedin'])) { header('Location: index.php?do=login'); exit();}$errors =...
View ArticleVery Common Problem/ Warning: mysql_fetch_array() expects parameter 1 to be...
Well mysql query will not execute there is nothing wrong with the syntax to my knowledge and its becoming a bother. Even had a seizure. So I have to turn to you guys... The bottom code is a function...
View ArticleWarning: Illegal string offset suddenly appearing!
Hi Freaks I believe this is caused by changing from 5.3 to 5.3, but what I can't work out is what the problem actually is! This is the code section that is giving the error: specifically lines 106-9...
View ArticleCount multiple values in an array
Hey, there are many guides on the internet that show how to count the occurance of a value in an array. for example count how many 2`s are in an array 1,2,2,3, its: 2 However I couldnt find how to...
View ArticleMYSQL Selecting a rand value from the max value in a column?
I have a row in items_equip table: short sword | 3 | 10 3 is min_dmg 10 is max_dmg Let's a say a person kills a mob (to get exp), I need mysql to select a random row in my items_equip table...
View ArticleMultiple Lines and imagestring
I have an ini file that has a paragraph of text in it. The ini file is activated by a query string in the header. It finds the text and prints it just fine as an image/png. My issue is that it puts...
View Articleredirect pages with data
Hi I have two button in my page One is 'search' and another is 'print' But i could not re direct and passing date to another page. code is working fine for search. But print I am blur of this. Pls...
View Articlerpg attack system, need help on to make unique forms
like I don't want people to beable to use tamper data and just send in requests "ATTACKMOnster" "health/etc".... I need to setup some type of button or $_POST that can only be clicked/etc (Serverside...
View Articleshow uploaded files name from database
<div style="width:100%; height:auto; background-color:#000; color:#FFF; text-align:center;"> <table align="center" width="100%" border="1" style="color:#FFF;">...
View ArticleRemove multiple query strings from url
Hi All Require to remove multiple query strings from a specific url: http://mywebsite.com/gallery/custom-gallery/?param=true?photoid=417linkid417 Should read:...
View ArticleIRC bot does not detect disconnect from server, but does for local
I've posted below the entire bot's source code, with edited values for passwords and such. My bot for IRC works great, doesn't disconnect for the most part... but after 1-3 days, the bot hangs...
View Articlewho is the best for curl linux hosting or windows hosting ?
who is the best for curl linux hosting or winodos hosting ?
View Article