Hi friends,
I researched over the internet, but could not find what i need :/
I have a contact form, (php). I dont have any database. it is a simple php email form, but now I need to make it with file attachment :/ how can I email file via contact form? visitor will browse any file from his computer and send email via form.
appreciat...
I know hot to set an include path:
set_include_path('/path');
But how can I set multiple include paths? For example, two different directories.
...
I'm using the following code to connect to a ftp server and get a list of files. It works ok on my local machine(Fedora 11) but not on production (running Ubuntu) where the ftp_nlist method returns false.
$ftpInfo = array('directory' => 'somewebsite.com',
'user' => 'someuser',
'password' => 'somepass',
...
Hi, I want to load my top-menu in a dropdown panel. I used this "jquery dropdown plugin" and it just works great for a html static content. But I'm going to load a joomla position in this panel so it may show a module in the dropdown panel. How can I do this?
Note : please see the plugin page before any new suggestion.
Best regards an...
Okay, so I've created a custom template for Joomla, and gotten that working. However, I'm wanting to create a custom option for displaying modules within the template. I found that if I create the appropriate function in the /html/modules.php file in my template I can make a
<jdoc:include type="modules" name="menu" style="myCustom" />
...
In response to this question, I'm sure many people would object that PHP isn't the best choice for desktop programming, and would recommend something like Ruby or Python instead. I thought it would be interesting to have a discussion on why.
Aside from arguments about whether PHP is a good language overall, what are your criteria for a ...
I want to calculate my countrys((new zealand) local date and time in php but I dont know how to calculate. Please anyone can help me. thanks
...
I am generating pdf invoice using fpdf.
Some invoices containing many items, and details need to go into the second page. However, I need the total, and other details to be displayed on the first page.
Right now, if I can add new page like this:
$pdf->AddPage();
But, this put everything into the second page, whatever after this s...
I am inserting Alias field for my db called $alias
how do I code (I am using php for mysql insert)
to remove all spaces and replace space with "-" (trying to change it to "weburl format" ie removing spaces)
Thanks
...
Hello,
I've been using PHP version 5.2 and now need to upgrade to version 5.3 (Windows/Apache). I have been using 5.2 for awhile now and have customized many things in php.ini and added some extra extensions.
How can I upgrade to version 5.3 without having to reconfigure everything? Or does upgrading require that I customize my PHP i...
I have a php script running on OSX snow leopard. When I run it from the command line it throws 'Segmentation Fault'. If I put an exit() at the end of the file, it doesn't throw the error. Why is the exit needed?
...
I have publish up date and publish down date in my DB.
Currently they are both same dates.
How do I change it (during mysql insert) so publish down date is 30 days past publish up date.
I am using $pubDate
Thanks
...
I am having problem in displaying the in my web page, after using utf8_decode() in PHP it gets displayed as �. Please help urgent.
i have been using
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en...
We have a protected directory on our site, where users are required to login using the .htacces system.
I know we can get the username of the person thats logged in through a PHP variable
$username = $_SERVER['REMOTE_USER'];
I'm wondering if it's possible to show ALL users logged in?
This way we could show something at the top ...
I'm just learning codeigniter, and I seem to have run into something that is a little strange. I'm using the URI routing feature but need to get the URI segments of the re-routed URI.
This is one of the routes:
$route['content'] = "site/display/main template/content";
and when visiting http://lipsum.localhost/content it loads the con...
I inherited a Drupal5 site and have been tasked with making some changes, but I'm unable to figure out where to start looking.
On many pages there is a menu available to administrators that allows you do do certain actions:
Overview
Specialists
Resources and Tools
In the Field
News
Events
Courses
Multimedia
Edit
Track
Workflow
Setting...
According to Phpinfo Zend is installed (Zend Engine v2.1.0) .
How ever when I call zend database commands they are swallowed without response or error message. (The script has been tested on my local server).
I am looking for a "Zend hello world" php script which will tell me that Zend is running OK.
Suggestions?
...
I have an iframe that displays a php page inside it when submitting a form from the html page.
Is it possible to style links with some php code? if so, how?
Thanks
...
<?
session_start();
$id = $_SESSION['id'];
$email = $_COOKIE['email'];
$password = $_COOKIE['password'];
header('Location: ../');
// I tell it to redirect...
$cookie_expires = time() + 60*60*24;
$cookie_path = '/';
$cookie_name = 'temporary';
$cookie_value = 'Your account was deleted.';
setcookie($cookie_name, $cookie_value, $cookie_expi...
Hey all,
I'm still pretty new to php so I'm a little shaky on getting the post value for things across pages.
I have an online application that I am making and so far its mostly working but im running into a problem with 3 fields that seem to not want to transfer over no matter what I do.
I have other variable I'm getting in what i s...