Hey all,
I was just wondering if anyone knows if there is a smaller version of php. I don't need any full-blown apache support I just need to be able to execute "php" to run a script in the terminal.
I already have PHP installed on the server, but I do not have access to running "php" in the terminal. I'd just like to run my script tha...
Hi. How does digg or any other high-traffic website store user sessions? What do they use for storing the user sessions? File system, DB (which one?), memcache or both?
Let's imagine a simple situation. Logged user has set the flag "Remember me" during login. We've set a session cookie with expiration date 1 year. For example, we are ke...
Hi,
I have a download page in php that after performing some checks returns a file, without displaying any html:
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=xyz.exe');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
...
I have a small project that only employs 2 developers right now (Maybe there will be more developers later, but i wanna keep it small). Maybe it can be non-php software, but i should work fine online at Sourceforge.net.
So, can anyone tell me which would be the best free (OpenSouce preferred) software for project management, the feature...
When I use the form::open in Kohana 3, I get this
<form action="/my-site/index.php/bla" method="post" accept-charset="utf-8">
Nowhere on my site do I rely on the index.php being there. I think it looks ugly. Is there an easy way to remove the index.php from it.
Obviously I know I could do a str_replace(), but I thought there may be...
This confuses me, in the most simplest terms what does it do? Pretend you are explaining to your mother or someone almost please.
...
I am moving a Wordpress blog to a new server and have the database in place and the files in place but I am getting an error:
Cannot modify header information - headers already sent by (output started at /home/nasepa/public_html/2009/blog/wp-config.php:1) in /home/nasepa/public_html/2009/blog/wp-includes/pluggable.php on line 850
W...
I'm trying to install KnowledgeTree Community Edition on my CentOS VPS. One of the requirements for this was ZendServer - Which I had to install via their universal installer as installing via YUM was just straight out failing. I assume due to CPanel...
Anyway, I got ZendServer installed and then downloaded the source of KnowledgeTree a...
Situation is simple. I'm starting to develop a website that should be localized based on visitor's origin IP address.
It's a PHP-MySQL stack. How do I go about the multilingual text content? I am thinking of having a language table in the database with the primary key as content identifier, another column for page identifier and separat...
I use this rule so all URLs have a trailing slash
rewriteRule ^(([a-z0-9\-]+/)*[a-z0-9\-]+)$ $1/ [NC,R=301,L]
it will convert /about to /about/
The problem is, however, if I submit a form (POST) to /about, when it rewrites to /about/, it loses all the POST info ($_POST in PHP is blank)
is there a way to rewrite it for everything exc...
Below is part of a PHP database class someone else wrote, I have removed about 80% of it's code, all the un-related code to my question has been removed and just the amount remains that allows me to test this class without actually hitting a real database.
This class has a couple methods that let you set a key and value it then turns ...
I was wondering how you would show only the first "x" characters of a post, as a preview. Sort of like what StackOverflow does when they show there list of questions.
The quick brown fox jumps over the lazy dog
goes to
The quick brown fox jumps...
I dont want to split up a word in the middle. I was thinking the explode function sp...
Hello all!
I'm in the early stages of planning and developing a Magento-based site. My company carries around 20,000 items.
One of the most valuable features on our current site is the ability to cross-reference our items based on our competitor's item number. Any one item of ours can have between 0 and 30+ Competitor Cross-References....
Hello,
I've been lookings days for solving a problem, but i can not find the trick..
When i load an external php page into a div and click afterward on a link come with the external php code, this link does nothing. Please take a look at this code.
index.php
Test
<script src="jquery.js" type="text/javascript"></script>
<...
I have a CodeIgniter project with a very simple test application.
Controller opens a view (PHP page) which has a text box and a submit button.
When I press the submit button, instead of redirecting to the appropriate function call in the controller, I get redirected to localhost/xampp.
here's the code on my view, which SHOULD be redire...
I have the following jQuery code in my PHP file (edited Jan 19 2010 @ 10:40 MST):
<?php
$count = 0;
foreach($attachments as $attachment) :
echo '<script type="text/javascript">
$(\'#a_'.$count.'\').click(function() {
$(\'#d_'.$count.'\').show(200);
});
// if "no...
I am trying to get the qunt with are int and add them all up and show a total
$qunt = 0;
$result = mysql_query("SELECT *
FROM properties_items
WHERE user_propid='$view'
ORDER BY id DESC") or die (mysql_error());
while ($row = mysql_fetch_array($result)) {
$ite...
I am using jquery's .post ajax call to pull an form input value and pass it to a php file that starts a session and stores the value in it. The session value is then called on a different page.
The problem is, this all takes place without a page refresh, so the session value is always one page refresh behind. I.E. the first time the ses...
Hi Guys,
I am quite new to PHP and just getting started with mod_rewrite. I know the basic lingo but come stuck when I want to simply refer to the route directory
i.e. this is not probs
RewriteRule ^settings/$ settings.php
[QSA,L]
But how to for example make:
RewriteRule ^page/(.*)$
index.php?Page=$1 [QSA,L]
which gener...
I have a header method that shows in the top of a page, it is inside a class, inside my header() method I run this code here to start a new Profiler object...
//start new page timer object
$profiler = new Profiler;
$profiler->start();
After a bunch of other files are compiled, I then include a file into the footer section, in this f...