- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
19 Posted Topics
Re: To all: if header() php function is use for redirecting, then an exit is required, to prevent some of the body data sent to buffer (only header needed): [CODE]<?php header('Location: http://www.domain.com/new-page.php'); exit; ?>[/CODE] Note: it is recommended to write the full URL of the new location, like in my example. | |
Re: 1. Project director (financial status = the boss) 2. Software engineer (senior programmer status and software designer) 3. Programmer (entry level, junior programmer status) Thats my opinion :D | |
Re: Well, this PHP code from first post have too many bugs.. sorry. I apreciate the "free" work, but at least to be good ;) [CODE]$query .= "WHERE username='$username' AND hpassword='$hpassword'";[/CODE] Bug: if the charset on mysql connection/table/row is set to _ci (case insensitive) this query is wrong! Fix: extract the … | |
Re: Table: [CODE]CREATE TABLE IF NOT EXISTS `table_name` ( `Id` int(3) unsigned NOT NULL AUTO_INCREMENT, `Product` enum('Shoe','Cap','Shirt') NOT NULL, `Quantity` int(3) unsigned NOT NULL, `Amount` float NOT NULL, `Date` date NOT NULL, PRIMARY KEY (`Id`), KEY `Product` (`Product`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=8;[/CODE] Rows:[CODE] INSERT INTO `table_name` (`Id`, `Product`, `Quantity`, `Amount`, … | |
Re: Excel export files are .csv? If yes, you can use [URL="http://php.net/fgetcsv#103891"]fgetcsv()[/URL] php function ([I]erelsgl at gmail dot com 09-May-2011 12:57[/I] post example). | |
Re: You can create the pdf file using your php code (or if you don't have, use: [url]http://php.net/pdf[/url]), then, if you need to print, use the ability to download the pdf file content just created. If user have pdf reader installed, he can use the print button from this application. The … | |
Re: May be tabs or new line CR or/and LF. Make sure you have delete all data before Doctype tag. | |
Hi, I'm from Romania, and i have more than 10 years experience with programming: HTML, CSS, JavaScript, ActionScript, PHP, MySQL ... and few others. My official open source project is [snipped by jbennet] I found this forum very useful for beginners and i want to help others to know the … | |
Re: [QUOTE]PHP Warning: Unknown: Failed to write session data (files)[/QUOTE] Hosting local storage (HDD) is out of space (full capacity), try to delete some files/data. ![]() | |
Re: The explanation of $_SERVER['HTTP_REFERER'] from [url]http://php.net/manual/en/reserved.variables.server.php[/url] [QUOTE]The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it … | |
Re: Perhaps for() and if () is much faster (optimize hosting resources) than array_map(), create_function(), range() and sprintf() from [COLOR="Red"]aquilax[/COLOR] example. [CODE]for ($i = 1; $i <= 31; $i++) echo '<option value="'.($d = $i < 10 ? '0'.$i : ''.$i).'">'.$d.'</option>';[/CODE] | |
Re: And also check in php.ini: upload_max_filesize post_max_size memory_limit (if the content uploaded file is write to memory first, and then to local storage) | |
Re: Hi. I'm the developer of XPertMailer. If you need to send bulk mails, the most important thing is: 1. how many per minute/hour/day/wwek/month ? 2. Q is enable on mail server ?, or each mail is delivery direct to client (destination) ? 2. your domain sender (mail from) is in … | |
Re: That is depending on your mail server configuration and how you send an e-mail using php, and there is to many possibilities :) but i will write how i can do in your situation. 1. disable "from mail" local account checking and auto-insert custom "from" or "receive" data, on your … | |
Re: There are many possibilities, for example using UTF-8: 1 . you must check charset or character encoding on your PHP settings (php.ini default) and code; 2. php output header, like: [CODE]header('Content-Type: text/html; charset=UTF-8');[/CODE] 3. display page (client-side) HTML code have set the mime type coresponding to the language in use, … | |
Re: PHP is server-side code. You [B]can[/B] write your client-side javascript google analytics code in to PHP file and print to the browser(client-side): analytics.php [CODE]<?php echo '<script>google analytics code here</script>'; ?>[/CODE] page.php [CODE] <html> <head> </head> <body> <!-- YOUR HTML code here --> <?php require_once 'analytics.php'; ?> </body> </html>[/CODE] Note: the … | |
Re: Check if you have sent to buffer any of new line space, ex: \r or/and \n. Be sure, before you open or after close PHP tag, you have no left any space or data you don't need, like: [CODE]data wrong place <?php // code ?> data wrong place[/CODE] If you … | |
Re: You can not if you are using a mail server to deliver your mails, this is automaticaly done by the server. The solution is to write a PHP custom code (socket) to delivery the mail, directly to client (destination), or to customize your mail server settings. | |
Re: Configuration php files for your web application must be located [B]outside[/B] from web server root domain directory. Most common directory structure: /var/domain.com/www - ftp and web server root directory, visible from server-side and client-side(browser), index.php is here /var/domain.com/include - ftp directory, visible only from server-side, config.php is here In index.php … |
The End.