I have two tables, Table A with 700,000 entries and Table B with 600,000 entries. The structure is as follows:
Table A:
+-----------+---------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+---------------------+------+-----+---------+-------...
Having just written the title for this question I am aware of how dodgy it sounds!
I am writing a back end for storing volunteer information for some friends, they have their own website to which I can add a volunteer.php page.
What I want is for that page to redirect to a page on my server showing the form for the users to fill in, I ...
As a beginning web developer, I try my best to clean up all the user inputs through checks and what not. However, today, I found out my website was hacked (I'll share their website on request) and it really made my wonder how did they do it. I'm in the process of getting my website back together. What should I do to prevent these things?...
i am trying to grab data from here : http://mediaforest.biz/mobile/nowplaying.aspx
in the page you select a station and post it then you get new page with data. but i cant grab it, i get the same page again.
i used this code:
<?php
header ('Content-type: text/html; charset=utf-8');
$url = "http://mediaforest.biz/mobile/nowplaying.aspx...
Hi, I am in a bit of a dilemma about how best to handle the following situation. I have a long registration process on a site, where there are around 10 form sections to fill in. Some of these forms relate specifically to the user and their own personal data, while most of them relate to the user's pets - my current set up handles user s...
In Eclipse writing Java, it's easy to suppress warnings on some scopes, by annotating a method or variable within the IDE.
Is it possible to suppress warnings at scopes while writing PHP within Zend Studio 7.0?
...
Hello, I have to get any text between:
Final-Recipient: RFC822; !HERE! Action
I need !HERE! from this example. There could be any string.
I tried something like:
$Pattern = '/Final-Recipient: RFC822; (.*) Action/';
But it doesn't work.
upd
Here is the string I'm trying to parse: http://dpaste.com/187638/
...
Are there any tools that can list the names of classes used by a PHP file?
For example, if I ran it on this file:
<?
class Test {
public function __construct(Obj1 $x) {
$y = new Obj2();
$str = "Obj3";
$z = new $str();
}
}
?>
it would report "Obj1" and "Obj2". If it were really smart it might report "Obj3" as well, but...
I've been googling around for a really simple way of making what is, in effect, nothing more than an enhanced phpMySql.
In a mysql database, I have:
Name, address, phone, website etc, plus 2 or 3 custom fields. This data is pulled out to make a website.
All I want is to be able to make a freeform form, a bit like Access, but for the w...
I want to find the first matching string in a very very long text. I know I can use preg_grep() and take the first element of the returned array. But it is not efficient to do it like that if I only need the first match (or I know there is exactly only one match in advance). Any suggestion?
...
Hi All guys! ;-)
i need help with creating a regex for putting all values into an array!
assuming we have a huge file full of theese:
Classic iCalendar style:
so we know that each segment start with BEGIN:VEVENT and end with END:VEVENT
...
END:VEVENT
BEGIN:VEVENT
UID:e3cafdf3-c5c7-427e-b8c3-653015e9321a
SUMMARY:Some Text Here
DESC...
im going to create a new web application that is very customized.
it will contain images, that are fully searchable - in a very, very customized way.
when you click on the pictures you can add comments and so on.
it requires users to be registered, but the registration/login process will be highly customized too.
at the moment im usi...
How can I get an iframe such that when it loads up, it loads up with the page inside scrolled down by a fixed amount (say 100px)?
I have so far:
<iframe src="http://news.bbc.co.uk/1/hi/uk/7459669.stm" scrolling="no" width=500px height=500px></iframe>
but it loads up with the bbc.co.uk page inside at the top left when I actually want ...
Hi guys,
Here's my file. I want to make it redirect, but nothing happens. To check out what is going on, I added an echo before the header part.
It neither throws an error or redirect to index.php. What is wrong?
I have turned output buffering on/off, but nothing makes it redirect. What can I do?
<?
error_reporting(E_ALL);
echo 'Thi...
What PHP code can I use to stop showing text at a certain time?
For example:
"Come to this event at 3PM on Monday!"
I don't want that to show after 3:01PM on the site.
...
What is the difference between these three?
return , echo and print keyword in PHP
function theBand($abc,$bac) {
return $abc;
echo $abc;
}
Both does the same, it does show or return me the value holding in the variable abc. Now return exists the function and echo continues. Apart from this is there anything specific on return keywo...
Is there a list of pros-cons for deploying a PHP application on the cloud for AWS or Azure?
Which factors would make AWS a better choice over Azure and Vice-versa?
If anyone has chosen to use, either one instead of the other for a number or reasons I would really want to know why.
...
by this question what i mean is that if, by example, someone's username is "bob" then the while loop condition will be ($i < 10), and if the username is something else then the while loop condition will be ($i > 10)
if($username == "bob")
{
//make this while loop condition: ($i < 10)
// it means: while($i <10){ so stuff}
}
else
{
...
Hi
How to protect files (documents, images..) that r being sold over internet.
Is it possible to Deny access to all except a particular php file that lists those documents.
for instance www.mysite.com/list
dir tree:
+ myfiles
|
|--img1.jpg
|--doc.pdf
+ application
|-+controllers
|-lister.php
Can i grant access to myfiles DIR on...
I am using WPMU but there are some options that the administrator should set and should take affect for every user of the website. Does wordpress have a place to store these global options? Can anyone point me to sample code?
Thanks!
...