I have a django blog project and a chat in PHP.
I need to share the id of the user logged in django ( request.user.id ) with the chat in PHP.
Is this possible ?
Hi,
I am trying to make a dynamic form which retrives data. How can I use javascript to load a value from a mysql database?
I understand that it must use php in some way, and I know how to query the database and assign the value to a php variable, but I have no idea what to do after that...any advice?
the goal is to have someone enter their orderid say, then the datbase auto pulls down and enters their last invoice in the field below it after they click GO...
I want to access a MySQL database from Java, but remote connection is disabled by the host.
So I will send the data to PHP and then PHP will locally access the database.
The data is pretty big (about 2~4kb)
I've never done this before.
What should I do?
Hey there.
I'm currently working on a file uploading sript in PHP, but i'm kind of stuck. Users are allowed to upload files such as PHP and JS, but i don't want the scripts to run when a user is trying to download them. Is it possible to block that somehow using htaccess or something?
Thanks in advance.
Hi all,
In considering several possible solutions to a recent task, I found myself considering how to get a php file that includes it's own MD5 hash. I ended up doing something else, but the question stayed with me.
Something along the lines of:
<?php
echo("Hello, my MD5 is [MD5 OF THIS FILE HERE]");
?>
Whatever placeholder you have in the file, the second you take its MD5 and insert it, you've changed it.
I'm designing a web application.
I was wondering if it was feasible to design a php front end (using some php framework e.g. CakePHP), which stores and retrieves data to display to the user.
Then develop a java backend which listens to the database for changes, and depending on what was changed, performs some actions and updates the database.
Any thoughts on this type of implementation would be appreciated.
Windows has a go at it but only gets a few when i seach a directory.
Is there an IDE or similar that allows for searching within the files of an entire directory?
for example, if I need to make sure no files require to a redundant
class (old_class.php)
I'd like to
search for 'old_class.php'
or alternatively if anyone knows a way to do this in Aptana (my text editor of choice) that would be amazing...
Hello, I would like to ask if it's possible to use PHP in removing a password from a password-protected PDF file in which I already know the password? I've seen this page which provides many options but using bash script. :( I was required to use PHP as much as possible. Any suggestions appreciated!
Hi,
what I want to do is PHP to look at the url and just grab the name of the file, without me needing to enter a path or anything (which would be dynamic anyway). E.G.
http://google.com/info/hello.php, I want to get the 'hello' bit.
Help?
Thanks.
Is there an IDE for PHP where you can set breakpoints and step into and render a webpage "stepwise"?
And whats the "best" IDE for working with php-code?
Note I am not asking for which is the "best" IDE for PHP or anything subjective like that. I want to know which is the most widely used backed by some sort of statistic (something like the W3's stats for browser usage) but for IDE usage amongst PHP developers.
In genera sense if I create a CMS using php .Where I created and named the database in my localhost. Now if I or my clent upload the CMS in any server how will it work. because there is no database in that server.
And in my php code I wrote to create database. Now how can i create a CMS which can automatically create database and tables where client doesn't have to know about anything besides uploading the CMS.
What is the Mac download site for the PLUG-IN version of Eclipse PHP Development Tools (PDT)? I have Adobe CS5 Flash Builder on Eclipse and would like to use the Galileo php as a plug-in.
Thank you!
(Assuming the network folders/permissions are correctly set up and working in Windows, and a 'default' PHP setup...)
Is it possible to use UNC network paths [like \\ServerName\Folder\file.txt] in PHP's functions like file_get_contents(), fopen(), etc?
And/or, what special cases allow/disallow this?
hi,
I modified a very simple php page on my server:
<?php
header("Location:http://www.google.com");
?>
and it stopped to work. I get as result a blank page (Without source in it).
I modified back to the previous url.. and it still doesn't work.
What's going on ?
Thanks
Hi
I am about to do a chat function for a social networking site using php
I want to gain inputs to do it .... Can any one suggest me which is the best method to do chat function in php
I want to display about 20 li on a page with a link at the bottom that says something like 'display more'. This link will then clear the first 20 and display the next 20. How should i go about doing this. (I am creating a gallery)
I was thinking about using PHP and MySQL. However for what I am doing I do not really need to store it in a database so is there an easier way of doing it only using html, php or javascript?
thanks
All methods in my php class must connect to the database, so I think it is a good idea to connect to the database in the constructor function (in the first place, to speak so). Is it normal to do so? And how to create a constructor in PHP?
Let's say I have a string like so:
$file = 'widget-widget-newsletter.php';
I want to use preg_replace() to remove the prefix widget- and to remove the suffix .php . Is it possible to use one regular expression to achieve all this?
The resulting string should be widget-newsletter.
My PHP site in maintenance. How to redirect visitors to a "site in maintenance" single page?
I heard something about app_offline.htm for ASP.NET.
Is there something similar for PHP?
Why should I consider using Python instead of PHP for web development? What are the advantages? If I can build decent apps with PHP, why should I learn Python?
How do I extract foo from the following URL and store it in a varialbe, using regex in php?
http://example.com/pages/foo/inside.php
I googled quite a bit for an answer but most regex examples were too complex for me to understand.