Is there a way to set php running under apache to create folders with the folder owned by the owner of the program that creates it instead of being owned by apache?
Using word press it creates new folders to upload into but these are owned by apache.apache and not by the site that they are running in. This also happens using ostickets. ...
I was wondering if there's a common best practice for setting up a mysql connection object in a php program so that you don't write redundant connection code over and over in your classes.
...
I would like to know how to create a php function that can be installed in php
just like the already built in functions like :
rename
copy
The main point I would like to achieve is a simple php function that can be called from ANY php page on the whole host without needing to have a php function within the php page / needing an inc...
I want to have users store the url in my database I'm using php mysql and htmlpurifier I was wondering if the following code was a good way to filter out bad data before I store it in the database?
Here is the Partial PHP code.
$url = mysqli_real_escape_string($mysqli, $purifier->purify(htmlspecialchars(strip_tags($_POST['url'])));
...
Hi,
I am struggling to insert inline advertisements on the fly in node content same as done by "Adsense Injector" module but with a different network, any suggestions ?
Thanks
...
Hi,
I've got an application developed on top of DokuWiki. I'd like to provide a 'News' page providing the latest updates from the internal RSS feed, some other feeds maintained in Serendipity and potentially other locations.
Although its trivial to attach feed parsers to each one individually, I'd like to aggregate this into a single l...
Hello, I am trying to add ajax functionality to my pagination so the content loads in the same page instead of the user having to navigate to another page when clicking the page links.
I should mention that I am using this php pagination class.
Being new to jquery, I am unsure of how to properly do this with the pagination class.
Thi...
HAy, i have an array
Array(
[0] => Array
(
[0] => 33
[user_id] => 33
[1] => 3
[frame_id] => 3
)
[1] => Array
(
[0] => 33
[user_id] => 33
[1] => 3
[frame_id] => 3
)
[2] => Array
(
[0] => 33
[user_id] => 33
[1] => 8
[frame...
My dynamic language experience is solely PHP. I want to learn Python now to broaden my career opportunities and just because I like programming. :)
When learning Java, I used a site (lost the URL/real name now), something like "Java for PHP developers" that had all on one side of the page the PHP code, and on the other side the Java cod...
I have a form which I want to submit and show in Colorbox.
The form is Mals Ecommerce View Cart.
See: https://www.mals-e.com/tpv.php?tp=4
I want it to Show the Cart contents in a colorbox iframe. Is this possible to do using the FORM method rather than the Link method?
...
Overview
I am trying to get a photo feed on to my site using Flickr's api and the phpflickr library. I can successfully get the photoset on to my site, but it shows all the photos from every photoset, what I was hoping to achieve was to show the primary photo from each photoset, and then if the user clicked on the image it would show th...
Hey guys, I have searched around a bit, and have not really found a professional type response to how to have secure fileupload capability so I wanted to get the opinion of some of the experts on this site. I am currently allowing upload of mp3s and images, and while I am pretty confident in preventing xss and injection attacks on my sit...
Hi,
I have a php-based CRM system, which, amont many other functions, sends email messages to our customers.
A few employees need to view those emails when client calls and asks about some data.
Those employees have access to common IMAP mailbox (let it be [email protected]).
What I want to do is:
Send email to a customer...
Okay, I've been working through a set of string replacments for bbcode style tags in my forum, replacing [b] and [i] etc is fairly simple as I can replace them directly without issue.
There are two tags that are giving me problems, as what I need to do with them is more complex. [quote] and [url] are fine, but, I would like to give use...
I have several sites that I want to link back to the main site which hosts the contact form (using contact form 7).
I would like to capture the request parameter "site-url" on incoming links to the contact form.
Then when the user submits the form, I would like to redirect them back to the site specified in the site-url.
Any ideas i...
I want to start automating more of my web development process so I'm looking for a build system. I write mostly PHP apps on Mac OS X and deploy Linux servers over FTP. A lot of my clients have basic hosting providers so shell access to their servers is typically not available, however remote MySQL access is usually present. Here is what ...
Hi,
I want to have an array of struct (an array of books with their specifications like publication, ISBN number, ...). in wsdl and php. I have searched a little and I have found files that uses Nusoap, However, I dont want to use NuSoap. Is there any solution?
I would appreciate if you help me in writing the related wsdl, client and se...
I am using the code for controller(CODEIGNITER):
function paypal_tran(){
if (empty($_GET['action'])){ $_GET['action'] = 'process';}
if($this->uri->segment ( 3 )){
$action=$this->uri->segment ( 3 );
}
else{
$action='process';
}
$ammount=39.99;
$this->lenders_model->paypal_process(...
I am trying to do system("cat variables.php"); from a php script but it doesn't write anything :(
Anybody knows whats the problem?
...
i'm wondering about this possibility. Is it possible to make our code written in code and string compile and make it become Executable and can operate without the use of server such as Apache.
The OS environment will be Windows family.
...