Jump to content

zohab

Members
  • Posts

    223
  • Joined

  • Last visited

Everything posted by zohab

  1. Hi, I want collect a list of open source projects and framework in PHP, JAVA and .NET uses MVC. PHP MVC Frameworks [1]. Akelos [2]. ash.MVC [3]. CakePHP [4]. CodeIgniter [5]. DIY [6]. Fusebox [7]. PHP on TRAX [8]. PHPDevShell [9]. PhpOpenbiz [10]. Prado [11]. QPHP [12]. Seagull [13]. Symfony [14]. WACT [15]. WASP [16]. Yii [17]. Zend [18]. ZooP Open Source project using MVC projects [1]. SugarCRM [2]. vTigerCRM JAVA MVC Frameworks [1]. Spring [2]. Structs Open Source project using MVC projects .NET Please want to list more from JAVA and .NET - Thanks.
  2. Hi, I am PHP developer and I recently work on .NET application with nlog. The application sends emails to administrator if any exception comes using nLog. I want to know do we have any library in PHP to send email to administrator if exception comes in application. nLog URL : http://nlog-project.org/ Thanks & Regards Zohaib.
  3. Hi, I want to use tahoma font in my website but we don't have this font available in font-family. I have following available using font-family. [1]. Arial, Helvetica, sans-serif [2]. Times New Roman, Times, serif [3]. Courier New, Courier, monospace [4]. Georgia,Times New Roman,Times,serif [5]. Verdana, Arial, Helvetica, sans-serif [6]. Geneva, Arial, Helvetica, sans-serif I have tahoma.ttf file downloaded from http://fonts.zaraf.ro/font4515/Tahoma.htm How can I use tahoma font in css. - Thanks
  4. Hi thorpe, Thanks for information. Guys please share information or Google article link or any documentation regarding how to configure a server for production. I mean best practices , important steps etc. This will help us to make our production environment secure and good in performance. - Thanks
  5. I got the solution. I think Zend Server is the best for production.
  6. Hi thorpe, Thanks for information. Actually I am not using web hosting account. I just need information regarding security and best PHP and MySQL software from above list. I have server and domain. My network administrator map domain to application locally working on XAMPP. Unfortunately my network administrator not familiar with XAMPP and PHP.He knows IIS good. I am thinking IIS and PHP combination will be more secure than XAMPP. I just need information from expert people and I will not blame anyone. - Thanks
  7. Hi , Thanks for the link. If I want to use XAMPP for production then what are the configuration I have to do? I use PHP and MySQL for my projects. what is the best and secure software for running PHP and MySQL. I know some software but not sure what will be best for production? [1]. XAMPP [2]. PHP and IIS ,Mysql separate. [3]. EasyPHP [4]. Apache and MySQL separate. - Thanks
  8. Hi, I have 4 projects on XAMPP on windows 2003 server. I like XAMPP on windows and LAMPP on Linux. My colleague in office saying XAMPP is used for testing purpose and can not be used on production. I am not agree with him . I check wiki page for XAMPP. also I have database password for my XAMPP. Now, I have to explain my Manager and my colleague regarding XAMPP security. I need your help guys please provide me more information . -Thanks
  9. My SMTP host in not localhost
  10. sorry I think something is wrong with my firefox browser ,It is working in IE
  11. Hi, In my project I have 2 drop down [1] County [2] State. When user select country then I do Ajax call and add State drop down in div below country. SO I have state as per country selected. Now When I submit the form then in $_REQUEST I am getting country value but state value is missing. I write state drop down using innerHTML but when I do view source I can't see HTML code for state drop down. Please suggest solution for this problem. - Thanks
  12. Sorry forgot to mention in last post. I am using XAMPP 1.7 on windows 7
  13. Hi, I am working on php email functionality using pear with the help of below article. http://www.cyberciti.biz/tips/howto-php-send-email-via-smtp-authentication.html It is working fine. But when I change "From" address other than my domain email address then it stop working. for example $headers["From"] = '[email protected]'; -- working $headers["From"] = '[email protected]'; - not working. [email protected] is working and I am able to send email separately. Any idea about this problem. - Thanks
  14. Hi, I have developed PHP web application. I have deliver source code of my web application to client server. I want to know how to hide source code in PHP like .NET or JAVA I found some code encrypt software but I think encrypted files don't work properly We can deploy application in .NET(.exe files) and Java (.class files) Any solution? - Thanks
  15. Hi, I want to get utf-8 data from query string in jsp page therefore I have written following simple JSP page But I am getting garbage instead of utf-8 data. I want to know how to get utf-8 data from query string in JSP <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.sql.*"%> <%@ page import="java.util.*"%> <%@ page import="java.util.Random.*"%> <% request.setCharacterEncoding("UTF-8"); String strFirstName=request.getParameter("firstname"); String strLastName=request.getParameter("lastname"); String strEmail=request.getParameter("email"); String strPassword=request.getParameter("password1"); out.println("<br/>First Name => "+strFirstName); out.println("<br/>Last Name => "+strLastName); out.println("<br/>Email => "+strEmail); out.println("<br/>Password => "+strPassword); Connection conn; conn=null; int rs; int Flag=0; String Query=null; PreparedStatement stat = null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:xe","system","mypassword"); Random randomGenerator = new Random(); int ID = randomGenerator.nextInt(); String sql =" INSERT INTO CONTACTS (id,firstname,lastname,email,password1) VALUES (?,?,?,?,?) "; stat = conn.prepareStatement(sql); stat.setInt(1,ID); stat.setString(2,strFirstName); stat.setString(3,strLastName); stat.setString(4,strEmail); stat.setString(5,strPassword); rs=stat.executeUpdate(); %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>New Contact</title> <META http-equiv="Content-Type" content="text/html;charset=UTF-8"> <link href="Site.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="frmForm" name="frmForm" method="get" action="form.jsp"> <table width="500" align="left" border="0"> <tr> <td colspan="2" align="center" class="accountInfo"><div align="left"><h2>New Contact Information</h2> </div></td> </tr> <tr> <td colspan="2" align="center" class="accountInfo"> </td> </tr> <tr> <td colspan="2" align="center" class="accountInfo"> </td> </tr> <tr> <td colspan="2" align="center" class="accountInfo"> </td> </tr> <tr> <td width="200" align="center"><div align="left"><strong>First Name </strong><span class="style3">* </span></div></td> <td width="300" align="left"><label> <input type="text" width="300px" name="firstname" id="firstname" /> </label></td> </tr> <tr> <td width="200" align="center"><div align="left"><strong>Last Name</strong><span class="style3"> *</span> </div></td> <td width="300" align="left"><input width="300px" type="text" name="lastname" id="lastname"/></td> </tr> <tr> <td width="200" align="center"><div align="left"><strong>Email</strong></div></td> <td width="300" align="left"><input width="300px" type="text" name="email" id="email"/></td> </tr> <tr> <td width="200" align="center"><div align="left"><strong>Password</strong></div></td> <td width="300" align="left"><input width="300px" type="password" name="password1" id="password1"/></td> </tr> <tr> <td> </td> <td align="left"><label> <input type="submit" name="Submit" value="Submit" /> </label></td> </tr> </table> </form> </body> </html> I have updated my server.xml but still I am getting garbage values from get method also i have updated web.xml file <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" /> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" /> – - Thanks Zohaib.
  16. Hi, I have contact form in my website project. Users fill First name ,Last Name ,Email etc information. I do not want to create database and table to store this information. I want to store this information in XML file. When user will add information then information will be added in XML file. Any solution for this ? - Thanks
  17. Hi, I am looking for Image gallary with PHP,Ajax and mysql. I search on google but not as per my expectation. I will need following features. User will upload image I have to crop image to show thumbnail in image gallary Pagination for images. Pop up on click of image to show big image. Any suggestion appreciated. - Thanks.
  18. Thanks. I am getting result but if column in empty then I am getting separator in string like following. ----123-123456 ---123-123456 --123-123456 It is possible not to include column and separator if column in empty? - Thanks. -123-123456
  19. Hi, I am able to concat 3 fields using following command but if any field is empty or null then I am not getting concate string. I am getting empty string. SELECT CONCAT(account.phone_country_code,'-',account.phone_city_code,'-',account.phone) AS phone FROM account I try for CONCAT_WS from MYSQL documentation but not able to achibe result. http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_concat-ws Any solution for this problem? -Thanks
  20. Hi thorpe, Thanks for reply. I want to show PHP and MySQL presentation on above points.
  21. Hi, I am submitting proposal for my project and technology I am using is PHP, Mysql. I want to know do we have any good document, presentation or article explain following in details. [1]. Capabilities of PHP and MySQL. [2]. Comparison and benefits of PHP and MySQL with technologies like .Net and Java. [3]. Why use PHP and MySQL. I know putting all above points in one document will be difficult but I convey client I need it. - Thanks
  22. Hi, I am taking mysql database backup using following mysqldump command. This command is working fine but I am getting lock tables statements before insert statement. mysqldump --user=root --password=mypassword --port=3306 -h localhost mydatabase --force > G:\myfolder\test.sql I do not want lock table statements therefore I use following options but these options not working. --single-transaction –lock-tables=false My database type is MyISAM Any solution? - Thanks. Zohaib.
  23. Hi, I want to back up mysql database using c sharp and I found following code on google. But it is not giving me whole database back up,instead it show following output. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; C# code as below using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Diagnostics; namespace CRMService4ConsoleApplication { class Program { static void Main(string[] args) { Program.DatabaseBackup("G:/xampp/mysql/bin/mysqldump.exe", "dbname"); } public static void DatabaseBackup(string ExeLocation, string DBName) { try { string tmestr = ""; tmestr = DBName + "-" + DateTime.Now.ToShortDateString() + ".sql"; tmestr = tmestr.Replace("/", "-"); tmestr = "G:/" + tmestr; StreamWriter file = new StreamWriter(tmestr); ProcessStartInfo proc = new ProcessStartInfo(); string cmd = string.Format(@"-u{0} -p{1} -h{2} {3}", "root", "password", "localhost", DBName); //string cmd = string.Format(@"-u{0} -p{1} -h{2} {3}", "root", "password", "localhost", "dbfile"); proc.FileName = ExeLocation; proc.RedirectStandardInput = false; proc.RedirectStandardOutput = true; proc.Arguments = cmd; proc.UseShellExecute = false; Process p = Process.Start(proc); string res; res = p.StandardOutput.ReadToEnd(); file.WriteLine(res); p.WaitForExit(); file.Close(); //MessageBox.Show("Backup Completed"); } catch (IOException ex) { //MessageBox.Show(ex.Message.ToString()); } } } } Any solution to this problem? -Thanks.
  24. Thanks I am able to parse variables using heredoc
  25. Hi, I am able to parse php variable in double quote but not in single quote. How can I parse in single quote. Following example shows 2 results and I want same result in both. First Name : Zohaib First Name : $firstname // Connecting, selecting database $link = mysql_connect('localhost', 'root', 'password'); mysql_select_db('dbname'); // Performing SQL query $query = 'SELECT first_name FROM tablename'; $result = mysql_query($query); // Printing results in HTML while ($row = mysql_fetch_assoc($result)) { $firstname=$row['first_name']; } echo"<table> <tr> <td>First Name : </td> <td>$firstname</td> </tr></table>"; echo'<table> <tr> <td>First Name : </td> <td>$firstname</td> </tr></table>'; What are the changes I need to do to achieve same result. Any solution ? - Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.