I'm trying to get a file uploaded through a PHP script, but my $_FILES array is always empty? My $_POST data entry for the file HTML input element has the filename...Just no file is created on my local system.
I've verified write access to the temp folder and explicity set it. I've checked phpinfo() to make sure file uploads are enabl...
I'm having trouble getting any information to display from this query. Anyone know where I'm going wrong?
Thank you!
$query = "SELECT * ".
"FROM comments, users ".
"WHERE comments.user_id = users.user_id ".
"ORDER BY comments.date DESC ".
"LIMIT 10";
$result = mysql_query($query) or die(mysql_error());
while ($row...
Hi there,
I am trying to call a web service
(using nusoap), which work well when
I call it with a php client.
It returns a list of mail address.
(there are plenty of examples around on the web about php/php or php/asp.net, etc...)
but, I want now to be able to call this web
service with classic ASP
I have found noth...
Is it possible to configure PHP sessions to never expire? I currently have the default 24 minutes set in php.ini - I could whack this up to a couple of weeks or something like that but I was wondering if I can set them to infinite lifetime?
I want to achieve a similar effect to Stackoverflow's: I never have to log in here. Is this achie...
Hi
I need to watch a certain feed for my web app and i can't find any proper documentation about this topic
-Edited:
what i'm actually after is probably so simple that it might be embarrassing :)
i know the hub will use a POST request to deliver the updates but i don't know how to fetch that data using $_POST because i don't know the k...
Is there some way I can take text (retrieved from a form), and email it to my gmail account? I can also have the user enter their email address, and a subject. Or if not is there a better way to have users send me a message? Thanks.
...
So I'm doing some maintenance on a PHP site that is using $_SESSION variables. I started seeing some very very weird behavior and after hours of debugging I just figured this out. As an example, lets say I have a session variable setup like this:
$_SESSION['user']['id'] = 123;
$_SESSION['user']['firstname'] = 'John';
$_SESSION['user']['...
Hi friends,
I researched over the internet, but could not find anything...
I have a mysql db, and records at a table, and I need to get random record from this table at every page load. how can I do that? Is there any func for that?
Appreciate! thanks
SORTED:
link: http://www.derekallard.com/blog/post/ordering-database-results-by-r...
Hi, My company is building a platform on top of a heavily extended Drupal core. I have multiple customers who will be using separate instances of this system and will want to customize both the theme and the functionality.
I'm trying to design a system to allow them to add themes and modules, some of which might interact with some of m...
I am using lighttp 1.5 on CentOS release 5.2. The site is a free stock photo site that allows users to download files. Files are around 3-6MB each. The download script is a php script that looks like this.
set_time_limit(0);
//...
header( "Content-Disposition: attachment; filename=\"" . $title . '"' );
header( "Content-type: image/...
Hello I am using simple_html_dom to find every link in the html document that is of the class "new". Ordinarily I would use:
$html->find('a[class=new]');
This would obtain links such as e.g.
<a class="new" ... blah blah ... />
Hoever the problem this time is that the html document contains links with classes such as
<a class="to...
I have an encrypted bit of text that I need to decrypt. It's encrypted with AES-256-CBC. I have the encrypted text, key, and iv. However, no matter what I try I just can't seem to get it to work.
The internet has suggested that mcrypt's Rijndael cypher should be able to do this, so here's what I have now:
function decrypt_data($data, $...
I am new to all of this so bare with me. I am trying to set up my first PHP site and I really want to do it the right way. I am working on the form located: http://www.bwgblog.com/signup.
I have set up the following form:
<p><form action="/signup/register.php" method="post">
<label for="first_name">First Name</label>
...
I am processing strings with a date somewhere in it. There are different ways the date can appear in this string:
"… 01.11.2009 18:00-21:00 …" or
"… 01.11.2009 18:00-02.11.2009 15:00 …" or
"… 01.11.2009 18:00 …"
Regardless how the date appears I only need the beginning date "01.11.2009 18:00". So if there are two matches it's just...
Hi,
when I store data in a variable like:
// inside the login page
$_SESSION['username'] = $username;
$_SESSION['user_id'] = $user_id;
and i reference that SESSION on another page like:
// on the users homepage
$new_variable = $_SESSION['username'];
changes it's value to something different from the database.
OR for example, i...
Is it possible to use the built-in CakePHP components (eg: EmailComponent) as standalone classes?
I know this probably shows a design flaw, and that I'm not doing it the Cake way or something, but I have a class which is not tied to any Model/Controller and I want that to be able to send emails. Importing the EmailComponent doesn't work...
Hi
maybe this is ridiculous but i wonder if it is possible to let your user to download a file with a different name.
for example; there is a file called "4324ffsd34.jpg" and i want ppl to download it by download.php, with a different name( like "filetodownload.jpg" ). without renaming original file.
is that possible in any way?
th...
In one page on my personal site, I like to be able to see some data get from Google Analytics.
I like to have a list of all my site and the average visitor per week or per month over the current year
I have check some solution:
Yahoo Pipe (look complicated)
Google Analytics PHP API class(look nice)
Google Analytics API (look official...
Hi,
Could anyone tell the logic/code for the following scenario.
Suppose we are given the username and password (obtained through some method).now we should append the username and password to the querystring(using GET method), send the values to the server (get the user validated), and then he is sent/redirected to a php webpage(this ...
I am looking for a script to check my database to see if a username is already in use. I am new to PHP so talk to me like I am 10 (even though a ten year old can probably program better than me). I just want to check the database and return a true or false based on a variable that is entered in my form below. Also, I want to use an AJAX ...