I've been dipping my toe into web development technologies for fun (ya, i should get out more), and am a little shocked at the lack of clear support for production staging (i.e. development, testing, performance, and production environments). Actually support isn't the word; Content Management Systems seem to actively work against effort...
Bonjour, does anyone know of a way of creating a spider that acts as if it has javascript enabled?
PHP Code:
file_get_contents("http://www.google.co.uk/search?hl=en&q=".$keyword."&start=".($x*10)."&sa=N")
it would retrieve the output of that page.
If you used,
PHP Code:
file_get_contents("http://www.facebook.com/somethi...
The Database Forge Class contains functions that help you manage your database.
It can:
Create or drop a database
Add fields and keys
Create, drop and modify a table
I was wondering if anything like that existed for C# or .Net.
Otherwise, I think I have a little project on my hands.
...
Hi,
Session files are usually stored in i.e. /tmp/ on the server, and named sess_{session_id}. I have been looking at the contents and cannot figure out how they really work.
Fetching the variable name and and content from the file is easy. But how does PHP know what session belongs to whom?
The session_id seems totally random and one...
I stumbled upon this 'list of programming' languages and found that popular languages like Python are not standardized? Why is that, and what does 'Standardized' mean anyway?
...
Here is my last login part that dosen't seem to work here it is. I think I messed up somewhere?
// Query the database:
$q = "SELECT user_id, first_name, user_level FROM users WHERE (email='$e' AND pass=SHA1('$p')) AND active IS NULL";
$r = mysqli_query ($dbc, $q) or trigger_error("Query: $q\n<br />MySQL Error: " . mysq...
I would like to generate a chart from a dataset and eventually put it in a pdf format. How would I go about doing this? Which packages would you recommend?
...
I am developing an image bank site that will hold royalty-free images for download. I want to slow down anyone using a bot or who is downloading too often, so I have a daily file limit and have incorporated a variable sleep into the script that delivers the files. I do that by writing the completion time of the last download to a databas...
Is there a way in PHP to make sure that I get Exceptions for everything rather than errors?
Using two different methods of errorhandling leaves me uncomfortable and it feels messy. I'd prefer the Exception style method as its more OO and thus fits better with my other programming experience.
...
Hi I have a php srcript that receives GET data and I want to redirect the data from GET to another page in wordpress using POST. It's that possible, and how?
Thank's for the help.
...
I'm getting the following error when trying to send an email from a web server running W2K server 2003 to smtp.mail.emea.microsoftonline.com
SMTP -> FROM SERVER:220 smtp.mail.emea.microsoftonline.com Microsoft ESMTP MAIL Service ready at Thu, 8 Oct 2009 01:00:53 -0700
SMTP -> FROM SERVER: 250-smtp.mail.emea.microsoftonline.com Hello [...
In Drupal I wish to create a content type as a bio for a user. When you click on a a user name on the site it takes you to there bio. An example I have found online is below.
This article has the authors name Jeff Robbins. Jeff Robbins name links to his profile. How would you go about doing something similar? It does not seem be using t...
I would like to know if I can use a gt function on a variable with php?
eg. : echo _($var);
...
I want to check the last value changes.
Some times the objectId is the same as another objectId but the value can be different.
And i cant compare this to get the Last changes.
How do i do that?
This are the Objects
object(stdClass)#38 (6) {
["id"]=>
string(7) "1715680"
["objectId"]=>
string(1) "1"
[...
I normally use a function of my own to clean input before adding the values inside a query to prevent sql-injections. I also use pear DB_DataObject.
I read somehere that DB_DataObject cleans the input itself. Is this true? Can i assign uncleaned input to a DB_DataObject object? (What about mysql_real_escape_string?, i get an error usi...
The following array is produced by converting xml to a array (using xml2array). However its not the exactly the right format I need for a optgroup in a Drupal 6 form.
Array (
[root] => Array ([attr] => Array ([id] => 1) [label] => Array ([value] => My Root)
[node] => Array (
[0] => Array ([attr] => Array([id] => 2) [la...
Hi all,
Is there any API to get Flight details of US Airways and Indian Airways. Including Flight timings and everything which are all necessary.
Any help will be appreciated...
Thanks in Advance
Fero
...
Hi,
I'm getting a pretty consistent timeout after 90 seconds. I followed this guide to fix the problem and changed my PHP settings to 600 for timeouts and 20M for file sizes.
In my scenario, I am uploading images. A 100k image seems to upload without any problems but 500k image files time out after 90 seconds.
Any ideas on what I can...
I am trying to find where php is loading its ini file when I use it from the command line on Windows Vista. But when I run
php -info
Although it gives my the phpinfo() output, there is so much output that even scrolling up I can only see the last third or so.
Is there a way of paging the output?
...
Hello!
I use a little search script in my site.
After post the search form, i get this variable:
$var = $_GET[$q] ;
$trimmed = trim($var);
Then i try to search in database:
$query = "select * from test where acc like \"%$trimmed%\"";
$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);
.......
I try to search...