| Latest Posts of Professional-PHP Group |
| |
|
I received an email about this conference. I was wondering if anyone had an opinion about where it is worth going to? Read More... |
|
I am trying to get some unit testing working using the Simple Test framework. The problem is I am getting tons of warnings about "Assigning the return value of new by reference is deprecated". It gets very difficult to figure out errors whit so much clutter. I hate downgrading the PHP error reporting because my own errors may be Read More... |
|
Hi people, I am running a php application and the web page that gets created I need to convert to pdf I found a nice program "wkhtmltopdf" that does this type of conversion but it does not handle tabs and I have several tabs on my html output. I am currently looking at fpdf16 I was wondering what you guys recommend? Read More... |
|
Hi all, We have a big problem using linux and mysql. From Linux we are calling scripts that modifies mysql data. From SSH : [root@dedicated cron-scri]# sh /etc/script/01_cpm [root@dedicated cron-scri]# more /etc/script/01_cpm mysql --user=root --password=YYY222 --database=Bonjour_prod < /etc/ Read More... |
|
Hello, I've been looking at autoload and was wondering your opinion on this code... <?php define("BASE_PATH", "/var/www/project2", true); ini_set("include_path", get_include_path() . ":" . BASE_PATH . "/M/"); ini_set("include_path", get_include_path() . ":" . BASE_PATH . "/M/ Marketing/"); Read More... |
|
i have an app that it´s going to run on a local server and on a web server it´s there a way to store the same mysql query on both servers at the same time? Read More... |
|
|
|
I have the following query: [link] Essentially, I want to get all members who expire in the date range provided (month of September, etc). Members have multiple memberships, for however long their terms are. You can't just do the between in the first query as far as I can tell, Read More... |
|
Since $_SESSION is a superglobal why not just run it through your function without passing it to it? Or better yet, when setting the values into the session, set them as NULL. Read More... |
|
Hello, the problem i'm facing deals with mysql table reading, I'm substantially trying to print the entries of a table in a web page (classics table), and it works. But it doesn't contains the data about the authors of the books, which is in an other table named "authors". The connection between the two tables are the ISBN of the books, so i'm Read More... |
|
I am looking for a way to clean up phone numbers before storing. I have not found a good way to do this and I am not very good at regular expressions. Here is what I have so far. $pattern = '/\d*/'; preg_match_all($pattern,'123-4 56-7890', $matches); $junk = implode('',$matches[0]); echo $junk; Read More... |
|
Is the one Memory-only cookie called always called PHPSESSID? Can PHPSESSID have its name changed? Cecil Read More... |
|
i know how to create image dynamically using php but i want to create image dynamiclly using php with specific extension like .jpg or.png not with extension .php i know how to embed dynamically created image with php extension in html but i want extension .jpg or .png not .php i know it is possible to save image with extension jpg using Read More... |
|
Hi, I tired to rotate a group of binary bits using << operator in php but as these are binary bits they are converted to corresponding decimal value so result is not what i expected. I gave $x=011110101011111, I tired to left rotate these bits by converting these bits string also but no use. Read More... |
|
Figured I'd start the day off with a small, simple code challenge for our distinguished group of n00bs, professionals and contributors... INTRODUCTION: A recent project of mine left me with the need to validate credit card numbers for an application I am developing. Some brief searching led me to the Luhn algorithm, or what is commonly known as the Mod10 algorithm, which Read More... |
|
HI, I Have an assignment that i need to design website for e- commerce selling shirts with categories and all. I have been restricted to use the open source tools like Os-Commerce and Prestashop. I have less time to submit can any one have optimized SRD for this kind of project to complete with in a single month with core Read More... |
|
I was almost certain that this was working before, but maybe not. I have a dojo widget that spits out a date like this: Thu Sep 16 2010 00:00:00 GMT-0500 (Central Daylight Time) I want to convert that to 2010-09-16, so I tried strtotime() but it keeps outputting the year incorrectly. It keeps doing this: 1969-09-16 Read More... |
|
Hello, I'm having the problem bellow, not sure how I can solve this... My code is: public function appendChild($child){ try { $this->itemvenda->appendChild( $child); } catch (Exception $e){ // ERROR exit; } } PHP Strict standards: Declaration of EVenda::appendChild() should be Read More... |
|
Hi, I've been using Templator() for quite a while. The fact that it is very simple makes this very fast and easy to work with; for those of you who don't know about this I'll give you an example: HTML code <!-- $BeginBlock *row* --> <div>${*var_value*}</div> <!-- $EndBlock *row* --> php code: $tpl=new Templator(); Read More... |
|
In my php app, I have stored a column 'plotno' in mysql table 'plots' of format varchar(10) Plot Numbers are in Following Format 2-D 1-A 2-C 2-A 1-B 15-R When I give following query: SELECT plotno FROM plots ORDER BY plotno I get following results: 1-A 1-B 15-R 2-A 2-C 2-D But I am looking for result like this: Read More... |
|
Hello All, So i'm curious about two things. The first items is more about standardization.... I'm working on a completely different project from normal right now and i'm working with Open Realty. I'm creating a custom plugin and I need to render search results from a template. So the first question is about using "parent::func_name();" Read More... |
|
Looking for job? Post your resume for FREE at [link] and let recruiters contact you directly Read More... |
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " [link]"> <html xmlns=" [link]"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Books</title> </head> <body> <?php class Book Read More... |
|
This isn't a question of how or what to use. Codeacula needs your thoughts on the preferred method to generate PDFs. Bonus points if you relate it to the MVC structure. Even more bonus points if you relate it to CakePHP. I'm not going to copy answers, I'm not finish for free work here. I'm trying to compare what "industry experts" use compared to the garbage Read More... |
|
I have been on this issue for quite a while now. Basically I am forcing a download through header(). It works in all browsers except IE8. Final try is below: header("Pragma: public"); // required header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some day in the past header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); Read More... |
|
echo "<div id=\"invoices\">"; Just what exactly is the purpose of the backslash, which is preceding the string, "invoices\" ? Is this some kind of escape thing? I see it all over the PHP code I see on the Internet, but no explanation. It is as if its purpose is a national secret. Cecil Read More... |
|
Hello Criteria i have a domain yourdomain.com i need to handle all the subdomain with my index.php file say, when user call arun.yourdomain.com then i need url like this yourdomain.com/index.php?user= arun i have added wildcard domain *.yourdomain.com to yourdomain.com then i need to write .htaccess file Read More... |
|
hi friends........ i need find a solution for my problem help me.. in the form form i am adding some list of data from the field to the database in that i am adding some data with adding coma(,). i am displaying the data from the database in a page. while displaying i need to split the Read More... |
|
In the book, PHP and MySQL, the authors show code where HTML is inserted into their classes to build their headers and footers for each page throughout the sample web files. I read somewhere that this is not a good idea, but I am not sure why. Can someone explain if it is good or not to mix in HTML with PHP classes? Read More... |
|
Except for the markup language, and drag and drop controls, PHP and C#/ASP.NET seem very close in language and functions. The only thing I'd like to see added to PHP would be the dragging and dropping of controls from a control toolbar like is done in Visual Studio.NET. I also like the idea of the MasterPage in .NET, which can be mimicked in PHP with a Read More... |
|
Hi All, I have a text field named 'clientid' in my app where user will enter client id. As soon user left this field (onblur), I want to check whether the entered client id exists in database or not. If client id exists, border of text field named 'clientid' should be changed to green else it should be changed to red. Read More... |
|
|
|
Having actually uploaded images (BLOBs) into the database in MySQL. My issue is actually displaying multiple images from the database. my code only returns one image. Any help will be appreciated pls!!! I have 2 different codes but same result. **Code1*** require('connect.php'); $query = "SELECT * FROM tblImg ORDER BY id"; Read More... |
|
hello , i have to develop a chat application using php which shows the list of users who are online currently . my problem is i want to display an iframe in my account.php page which shows the user who are online. when the logged in user clicks on any online user a prvate chat window should be popped up just similar to gmail and facebook chat . Read More... |
|
Hello Again, Currently i'm running Prototype and I know that jQuery is the framework of choice so i'm going to move to it. However I have discovered the Google WebKit and seems like it's gaining a lot of popularity. Which of the two would you suggest? I'm mainly looking for QUICK load times. Read More... |
|
Hello All, So this might be a dumb question but i'm curious as to what the side effect will be. I noticed that I was creating the cookies as "sitename.com" where all the major site cookies on my computer are ".theirsite.com" so I changed mine to ".sitename.com". This is currently only in the staging environment but i'm curious if Read More... |
|
We have a search function and a website which is written in a number of different languages. The search works fine in all browsers in English. However in some foreign languages when special characters are entered in these languages the search doesn't work but a search for the same term without the special character will work. The foreign language search works Read More... |
|
Hi guys, I know that my question is not about PHP but I am sure that you guys know the answer. I have my httpd.conf file set up a follows: -------------------------- <Directory "/home/www/sdcwa/public_html"> Options FollowSymLinks -Indexes AllowOverride None Order allow,deny Allow from all Read More... |
|
I am using Postgres database and PDO for data handling. I have a table with the PK using "DEFAULT nextval('directory_directorypk _seq'::regclass)". In another language I have used I issue an insert and select to get back the PK in one statement. I tried this in PDO using prepare and got an error that Read More... |
|
whats wrong in below SP create procedure Insertlink(IN text varchar(45),IN Description varchar(45),IN link varchar(45)) begin insert into menu values(text,Description,link); end; im getting following error Error SQL query: CREATE PROCEDURE Insertlink( IN TEXT VARCHAR( 45 ) , IN Description Read More... |
|
|
|
A "Cookie specification" used to be on Netscape's site, but they took it down. I am wondering who might have THE cookie specification? I didn't see anything resembling it on [link]. Any ideas? There is, of course, dcoumentation for certain aspects of cookies, such as the [link] setcookie() function, etc, but I am looking for a complete internet Read More... |
|
Folks, in an application with subject requirement, I've set a MySQL table collation definition as follows - TABLE `captions` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin With PHPMyAdmin I've tried to paste a value - specifically Unieważnić - into one field in that table. But I get an error complaint of Read More... |
|
This may seem very easy, novice, quick and painless to do, but I think I'm going crazy! If there is someone out there that can help me with a problem regarding some arrays I would be his/her worshiper. My problem is this: I have multi-dimensional array: $tag[0][0][0]='France'; $tag[0][0][1]='Spain'; Read More... |
|
In the Zend PHP Certification Praxctice Test Book, on page 50, there is a question that doesn't seem to jive with the book titled PHP and MySQL Web Development. The question is: How are session variables accessed? A. Through $_GET B. Through $_POST C. $_REQUEST D. Through global variables E. None of the above Read More... |
|
Would you hire a person for a PHP programming job who has experience in other languages, i.e., Visual FoxPro, C#, ASP.NET, T-SQL, but is only a beginner in PHP? This is where I am at right now. I am writing questions and answers for PHP/MySQL from the PHP and MySQL Web Development book for a university's exams. Read More... |
|
Hello All, So i've spent about 6 hours now searching all over to find an elegant solution for SPAM prevention on forms. Asking customers to enter a captcha is 100% out of the question. So this has lead me to the input field solution where the field is hidden with CSS or Javascript (likely the later). Read More... |
|
Hi All This is a situation which comes to me while coding in php day in day out. I am trying to improve the way I write the code so looking for you suggestion. Please go through this and suggest me, If you have any idea how to do this a better way. I have a $RAW['userid'] which contains actual user id of the user. Read More... |
|
I am writing an application that requires uploading of image files from a form. I am going to want/need to scan the files for viruses with clamav. So far everything I have found via searching is either outdated or is convoluted. I have a centos system that is running the latest version of Lighttpd and php5. This application currently isn't using Read More... |
|
Hi Just a minor problem but anyway go to [link] press "SEND FORESPØRGSEL" and a list is made (of dead people in Denmark in the 16- and 17 centuray) roll down a little and press one of the blue buttoms and close the popuped window my q is: why do the listpage jump back to the top ?? Read More... |
| Click Here to Join Professional-PHP |