I have a PHP file that I'm trying to run. However, my web browsers act like it doesn't exist.
For example,
Firefox tries to open the PHP file
Chrome says This webpage is not available. Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.
Internet Explorer says Internet Explorer cannot display the webpage
I'm trying to access this php ...
I have two objects: File and FileDetail. A File can have many FileDetails, but a FileDetail can only have one File. I can get this to work, but I can't delete anything from the database because of key constraints (I can't delete the File row because FileDetail depends on it, and vice versa). I have the following yaml:
File:
columns:
...
I'm having a string which is comma seperated like this
$str = "john, alice, mary,joy";
Some are having space after comma and some don't. What I want to do is remove all the commas and make them like this:
$str = "john alic mary joy";
What is the best way to do this in php?
...
i am trying to use my workspace C:\Program Files (x86)\Zend\Apache2\htdocs, as i need to in order to use my Zend Server, but i get the error "workspace in use"
i have:
deleted all other copies of eclipse that i used
looked for a .metadata folder but not found one in my current eclipse folder (brand new eclipse PDT with Zend)
any ide...
preg_match_all("/[^A-Za-z0-9]/",$new_password,$out);
The above only checks the 1st character, how to check whether all are alpha-numeric?
...
Is there a way to reload a PHP page when a users clicks a PHP link and then have the page jump to a certain spot on the same page using PHP or JQuery like an HTML anchor?
Here is the PHP link below.
<a href="../index.php?uid=' . $user_id . '&view=member">' . $user_name . '</a>
...
I am currently working a developer tracker for a game without using regex. I have hit a road block when trying to parse html at certain parts.
What I am trying to parse:
<td class="alt1" id="td_post_139718">
<!-- message, attachments, sig -->
<!-- icon and title -->
<div class="smallfont">
<img class="in...
I have an Elseif statement, which gets a template name and includes the template PHP file which contains a large array, it outputs the result on the page.
$template = str_replace("-","_","{$_GET['select']}");
if ($template == "cuatro"){
include("templates/cuatro.php");
echo $page_output;
} elseif ($template == "o...
Hi,
Is it possible to change the profile picture for every tweet via twitter api and it wouldnt change the profile pictures on the previous tweets?
for example:
i am going to tweet something good so i would want my profile picture to be something happy.
and then on my next tweet which seems to be something not good, i would like to ch...
I am reading the documentation for creating a podcast feed suitable for iTunes, and the Common Mistakes section says:
Using HTML Named Character Entities.
<! — illegal xml — >
<copyright>© 2005 John Doe</copyright>
<! — valid xml — >
<copyright>© 2005 John Doe</copyright>
Unlike HTML, XML supports only five
"named c...
I'm running this via PHP and well the first query gets run perfectly then right after it I run the second query and it does nothing. Its rows never get updated for some reason, but when I type out the query manually on the sql server, it works perfectly.
Anyone have any idea why its not working in the php code?
$qry = "UPDATE Matches S...
I'm using a redirect if the user's ip is between a certain IP range. However, I'm using multiple ip ranges, so I'm wondering the best way to do this. I'm current using this to redirect,
);
// read user ip adress:
$ip = isset($_SERVER['REMOTE_ADDR']) ? trim($_SERVER['REMOTE_ADDR']) : '';
if (($i = array_search($ip, $deny_ips)) !== F...
Hi there,
I have a PDF file that functions as a template containing only textboxes. Is there any way I can fill the fields in via PHP? I have found examples of how to directly draw onto a PDF document when given x,y values, but I want to put values into my textboxes rather than doing that.
...
Update a field by +1 (or any other integer increment) in table in sql, (PHP - Im using txt-db-api) in a single update statement.
Something like
UPDATE tablename
SET current_value = current_value+1
where condition=true
Although field is integer type but is not Auto_Increment type.
Edit
Actually I am not using MySQL but a flat t...
$aaa = preg_replace('/<%var.\$(fullname).%>/is', $_SESSION["\1"], $aaa);
...
I need to be able to get the last day of the previous month into a date variable. The script could be run on any day of the current month. It needs to dynamically adjust even if the last day of the previous month falls on 29,30, 31 etc.
What would be the best day to do this?
...
I was just reading through a tutorial and they mentioned that Objects in php are just the better way of arrays. I am confused? Can someone clear the concept for me.
thanks
...
I'm planning to write a PHP script where a user goes to a particular page, clicks on a link, and a form comes up asking for the user's email to send the file to. After the user selects send to file is sent to their Gmail, Yahoo, Hotmail, whichever. After a successful send, an email is sent to me notifying me of the action.
So far I've c...
I have an Excel file containing data(list of Phone numbers), and i want that data from, Excel file to be imported in to my Database table(for example called phonenumber_list) using PHP code? i know how to convert MySQl in to Excel, but can it possible in reverse? Please Help!
...
Hi,
how in php script redirect in to another page?
Now i try header, but this don't work - before header() is echo.
This, I do not want to use:
echo "<meta http-equiv='refresh' content='1;URL=?".$link."'>";
...