Lets say I have a website with links to various books on my main page.
<a href='books.php?id=1'>Book 1</a>
<a href='books.php?id=2'>Book 2</a>
<a href='books.php?id=4'>Book 3</a>
Books 1-3 are in my system, however id=3 is apart of another catelog that I'm not showing or authorizing through this section of the site. So if a user click...
Hi Everyone:
I am wondering if anyone knows of a system (open source or otherwise) that will allow my clients to sell their online services per month/year/etc. In other words, the user buys a month subscription, can log in, and access anything that my clients choose for them to see.
Thanks for any help.
...
Is there anyway for me to make it work so anyone who presses F5 or any refresh button will be moved to a different page, instead of it refreshing the page the user wants?
Something like :
If (refresh){
goto "link to hopme page"
}
If not is there anyway for me to not allow refreshing on a certain page?
I have some people that ar...
So, I'm very tempted to rewrite my application using a php framework, as I think it'll make it easier for folks to get involved, as well as improving the design of the app.
CakePHP looks like the best of the PHP web frameworks. Does anyone have any experiences of it? What are the caveats I should consider going from handcoded PHP to us...
I have a machine with Linux CentOS distribution that has more than one internet connection available at the same time.
I'm trying to write some PHP code that will do the following:
Perform an HTTP request to a specific URL "eg. google.com" but through a specific internet connection.
Perform the above for several internet connections a...
About to start working on a social networking site, but I'd like to incorporate OpenID logins.
The JanRain plugin is packed in Debian, but seems flakey, and my brief interactions with it so far have not gone well. There's a bunch of others out there, but which ones are people using in production?
...
What's the best way to do spreadsheet-like calculations in a programming language? Example: A multi-user application needs to be available over the web that crunches columns and cells of numbers like a spread-sheet based on user submission. What are the best data structures/ database models/patterns to handle this type of work so that h...
hi all
i am resetting my form with the following:
<script type="text/javascript">
window.onload = function () {
document.getElementsByName("email_address")[0].value = "";
document.getElementsByName("remove")[0].value = "off";
}
</script>
the problem is that the checkbox "remove" seems to get reset before the server side script ca...
I have a problem while setting a private attribute on a PHP class, my __set() method is being called however when I perform this on an attribute which is an array it performs first my __get() method which renders the ser unusable :/
$this->person['name'] = 'perro';
simply, doesn't work,any idea on this subject ?
...
I have a problem with the following implementation of hook_cron in Drupal 6.1.3.
The script below runs exactly as expected: it sends a welcome letter to new members, and updates a hidden field in their profile to designate that the letter has been sent. There are no errors in the letter, all new members are accounted for, etc.
The pro...
It's been a while since I've installed PHP for Windows, but every guide I've seen online tells me to set IIS to recognize .PHP files with php5isapi.dll. However, I can't seem to find php5isapi.dll anywhere after installing PHP 5.3.0 and PHP 5.2.10.
If I recall correctly it should be in C:\InstallDir
Am I missing something important?
...
Hello,
I have a MySQL database called "bookfeather" with several tables that contain list books. Under each table, each book has a given number of votes. The PHP code below allows the user to enter in a book title ($entry), and then returns the total number of votes that book has in all tables ($sum).
How could I use PHP to make a 2-...
I'm looking for a utility similar to gprof that will generate a call graph for PHP code. I'd prefer something that can produce graphical output, or at least text output that can be interpreted by GraphViz or similar, but I'll settle for plain text output.
Does anyone know of any tool that can do this?
...
Hello all,
I have found these errors in my error log:
[05-Aug-2009 12:57:27] PHP Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: ^ in /home/mojo/public_html/shackupload.php on line 37
The funny thing is I had about 200 of the above in my error log all with the same ...
Okay, so, I have a list table with 2 columns: codes and dates.
I want to display the LATEST 25 AND tell the user how long ago they were submitted.
So, for example:
ABCDEF (1 Second Ago)
CCDEE (12 Seconds Ago)
329492 (45 Minutes Ago)
I've gotten this far:
$result = mysql_query("SELECT `code` FROM `fc` ORDER by datetime LIMIT 25") or...
I am having this error in my code..
echo "<input type='button' value='send mails' onclick=\"sendmails(".$sendQuestion.")\">";
i kind of feel stupid posting this question. But i am unable to figure out whats wrong in this code
This code is written in php. it works fine is i dont pass any arguments in the sendmails function, but when i...
I'm working on building a website using Magento eCommerce. I set up a subversion repo on the server for the website including all Magento PHP files and checked out a copy to my local system using svn/webdav. I've added magento to the repo and committed. Now, any svn opearation, even an svn status or svn commit, building the list of files...
Related:
This is a continuation from my earlier question, Wrong Logic in If Statement?
$repeat_times = mysql_real_escape_string($repeat_times);
$result = mysql_query("SELECT `code`,`datetime` FROM `fc` ORDER by datetime desc LIMIT 25") or die(mysql_error());
$output .="";
$seconds = time() - strtotime($fetch_array["datetime"]);
...
I have an array of image files with relative paths, like this: gallery/painting/some_image_name.jpg. I am passing this array into a foreach loop which prints the path into the source of an <img>.
What is a safe reliable way to pull the name from a line such as that?
gallery/painting/some_image_name.jpg > to > some image name
...
Background: There are numerous PHP addons out there that have some nice ideas, but they represent a significant investment in either time or resources. For example there are frameworks like codeignighter or Smarty templating.
Although some find these useful, and others find them not-so-much, there is no debating that there are a lot of ...