Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #1K
~20.5K People Reached
Favorite Tags

19 Posted Topics

Member Avatar for dudegio

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.

Member Avatar for nicheteam
0
14K
Member Avatar for pyro 214

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

Member Avatar for Ancient Dragon
0
1K
Member Avatar for broj1

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 …

Member Avatar for broj1
3
778
Member Avatar for joeidee

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`, …

Member Avatar for joeidee
0
83
Member Avatar for 54uydf

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).

Member Avatar for 54uydf
0
406
Member Avatar for calebcook

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 …

Member Avatar for tiggsy
0
1K
Member Avatar for dwlamb

May be tabs or new line CR or/and LF. Make sure you have delete all data before Doctype tag.

Member Avatar for dwlamb
0
222
Member Avatar for eXpertPHP

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 …

Member Avatar for jbennet
0
97
Member Avatar for gorleone

[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.

Member Avatar for diafol
0
383
Member Avatar for Meonia

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 …

Member Avatar for Meonia
0
234
Member Avatar for rowen17

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]

Member Avatar for eXpertPHP
0
87
Member Avatar for Chub97

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)

Member Avatar for Chub97
0
178
Member Avatar for shella

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 …

Member Avatar for eXpertPHP
0
134
Member Avatar for mrhankey

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 …

Member Avatar for mrhankey
0
116
Member Avatar for vizz

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, …

Member Avatar for vizz
0
597
Member Avatar for manchurianCEO

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 …

Member Avatar for manchurianCEO
0
153
Member Avatar for ptemedia

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 …

Member Avatar for ptemedia
0
276
Member Avatar for whiteyoh

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.

Member Avatar for eXpertPHP
0
70
Member Avatar for Nahiyan

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 …

Member Avatar for eXpertPHP
0
129

The End.