1,003 Posted Topics
Re: Create a new PHP file and upload to the server where you are running the script above. <?php echo (ini_get('allow_url_fopen')? 'It is On' : 'It is off'); Direct your browser to this file. It should print "It is On" or "It is off". **It is On ?** your PHP.ini file … | |
Re: Vista is known to create problems with xampp. There are other options out there when it comes to windows apache mysql php server. One is a lightweight application called [Uniform server](http://www.uniformserver.com/). Installing the Uniform server is slightly tricky, but it comes with setting options for development and production and I … | |
Re: Edit: I added an example. There is a PHP function called [ps_stringwidth](http://www.php.net/manual/en/function.ps-stringwidth.php). It looks promising 'BUT', it needs **Adobe font metrics file** to calculate the width. Another one is called [mb_strwidth](http://www.php.net/manual/en/function.mb-strwidth.php). The most feasible usage of mb_strwidth is to calculate the sum of all characters within string. e.g. h e … | |
Re: hi, this if ($searching =="yes") don't make sense at all. Even-after looking at the original codes at about.com, Angela Bradley did not make her points very clear. How can she possibly evaluate $searching in a True or False context ,if searching is indeed part of the form vars. To make … | |
Re: hi, I don't understand this <?php $tcode="$_POST[teamID]"; ?> If my suspicion is correct, then it should be coded as something like this. <?php $tcode = $_POST['teamID']; ?> | |
Re: hi, You need to forward the user to a page where the data are less crowded or more suitable for printing and then you add javascript like so.. <form> <input type="submit" value="print" onClick="window.print()" /> </form> that should be simple enough for you to implement... | |
Re: hi, take a look at [this](http://jpgraph.net/). | |
Re: You probably need to look for Real time communication(RTC I am not sure what it was, but should be close to what I am trying to say), utilizing some sort of Javascript API in addition to server-side Javascript ([node.js](http://nodejs.org/)). PHP may not be the candidate for this type of application, … | |
Re: Can we at least see your database table structure? Also, it would be nice if you can provide a wish list as in SCRUM prioritize wish list or back log. It will be a lot easier to estimates how much work is needed. | |
Re: Hi, Try [this](http://www.dynamicguru.com/javascript/currency-conversion-using-javascript-and-openexchangerates-json-api/)... ![]() | |
Re: @davy_yg, gabrielcastillo is correct. redirect is just another method in CI that can accept something to redirect to . Is redirecting to another controller a must? It will be you own call. It can be redirected to a simple page or another page controller. Not all pages has to have … | |
Re: Do all of the above as suggested, but don't get overly confident after learning how to echo "hello world". PHP is the most deceiving programming language. The outer shell is pretty shallow, but once you passed that outer shell, you could be lost into the black hole. Just saying... :) | |
Re: Hi, You can rewrite it to something like this.. <?php // Connection variables $host="localhost"; $username="root"; $password=""; $db_name="asia"; // Connect to database $con= new mysqli( $host, $username, $password); // you can add the fourth parameter here as you wish. // Connect result if($con->connect_errno){ die('Error Connecting to Database: ' . mysqli_error()); //die … | |
Re: Hi, The remote server response is stored in $result, if you want to find out what is the error respnse from http://absolutesms.com/Sendsms.aspx , try using print_r or var_dump($result) on your side. If response is something like "missing cookie or session", you will have to provide a cookiejar and cookie text … ![]() | |
Re: Hi, I cannot give you an specific answer to your question, because you never mentioned which super globals your friend is currently using. However, if it is related to mysql security that worries you or your friend, I can safely asssumed that using a global variables for database handle is … | |
Re: The only way we can help you is to provide us the source code where the error is coming from. Is it from php page located on your htdocs? | |
Re: We can help you, but it looks like you skipped the first step. Do you have any codes organization in mind? You should give us some of your ideas, even a simple diagram of your program design. here are the hints. Write all the possible events when the user landed … | |
Re: I understand the urgency, but have you tried anything yet? Please post whatever codes you've got going already. Just wondering is it php or Visual basic? | |
Re: Hi, You can either use netbeans IDE, or php [designer2007](http://download.cnet.com/PHP-Designer-2007-Personal/3000-10248_4-10575026.html) personal edition as your PHP source code editor. These applications will tell you what other PHP plugins you need to install to be able to use the debugging feature. | |
Re: Hi, Double check that your app/Config/database.php is properly filled up with your database credentials. You need to fill up two of them like so.. class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => '', 'database' => 'cake', 'prefix' … | |
Re: I don't have any linked signature, but I know who does. Welcome to the PHP side of Daniweb. | |
Re: In addition to PerplexedB's input, think of Abstract as a contract between the parent and child classes. Abstract class have an abstract method without returning anything, for the purpose of allowing the child class do the returning of the output whatever it may be. Example of abstract implementation, most commonly … ![]() | |
Re: Choose which language you are the most comfortable writing it. Some will choose PHP and some C# -> ASP.net (it is a framework really). ![]() | |
Re: This can be probably prevented, but I don't really find any 100% eradication solution for an iframe. For example, if you are allowing your user to do this <iframe src="http://maliciousSitDotCom/hackTheHack.php"></iframe> and in the remote server the hackTheHack.php contain this http://maliciousSitDotCom/getVictimCookie.php?email=<script>alert(document.cookie)</script> the mailicious site can then steal the credentials of the … | |
Re: Can we see the docs.xml you are trying to add the new entries? | |
Re: One effective method using $_SERVER['REQUEST_URI'] with optional .htaccess support is the method found on frameworks like CI, Symfony, Kohana, and Laravel. These frameworks pretty much rely on the REQUES_URI for routing page requests. Example of a router ( the most basic, without involving a json file or xml file). Let … | |
Re: Will you be kind enough to at least let us know, what were those steps? Is it [these steps as described](http://codex.wordpress.org/Create_A_Network) or is it something else? | |
Re: Hi, I believe to be able to be able for the menu show on the dashboard, you will have to do it as suggested by [codex](http://codex.wordpress.org/Administration_Menus). Dashboard is part of the admin menu group. | |
Re: I honestly believe, you can use composer autoloader and symfony class loader and http-foundation. Supposed we have our development environment in localhost/myapp/, and we are running xampp or wampp on windows. We can easily solve the autoload problems in two ways. This is just an example. If you will running … | |
Re: have you tried [response.redirect](http://msdn.microsoft.com/en-us/library/a8wa7sdt.aspx) ? I haven't coded in C# and VB for a while, but I think that might work for you. I don't remember the proper syntax, but I would guess it could be something like this. response.redirect('yourpage.php?value=SomeValue'); Another thing is the ListItem control though? Is your application … | |
Re: Hi, I don't know if this will help you, but this is the representation of your example above. css credit goes [here](http://www.textfixer.com/resources/css-tables.php). Modulu is really good in doing the odd and even rows, but when you need to be specifically want to plug something between the iterated items, a simple … | |
Re: I also think $_SERVER['REQUEST_URI'] is a lot nicer thing to do. Most frameworks uses this approach that is why there is no big chunk of .htaccess file in CI but deny from all. | |
Re: Do as suggested above... Install python 2.7.x, and download wapiti as suggested by sinhaksaurabh. Download python [here](http://www.python.org/download/), Download wapiti [here](http://wapiti.sourceforge.net/) . 1. If running this on windows, Extract the Wapiti src directory in in C:\wapiti. 2. Open the windows command prompt, or the command prompt python. 3. type python on … | |
Re: if your PHP is not compile with ffmpeg-php, then you can call the exec like this. ## define the location of your ffmpeg somewhere in drive C: . Assuming that the location of ffmpeg binary file is located in drive c. $ffmpeg_loc = 'c:/ffmpeg_test/bin/ffmpeg.exe'; ## define options for your mp3 … | |
Re: also, if you really want to put your css directory within the same level as the application directory, we can code the controller like this <?php class Page extends CI_Controller { public function __construct(){ parent::__construct(); ## load the url helper object $this->load->helper("url"); } public function index(){ ## define the location … | |
Re: Looking at your codes, the variable matchtag should return "quote" and backhash returns 'standard'. | |
Re: are sure the column num exists in your database..or is it id? also, if you don't mind, you can refactor your codes above to something less cluterry.. echo '<table width="85%" align="center" border="1">'; echo '<tr><td>Settlement Number</td><td>FirstParty</td><td>SecondParty</td><td>Email</td><td>Phone</td><td>Created Date</td></tr>'; while($row=mysql_fetch_array($sql)) { echo '<tr><td><a href="home.php?num='. $row['num'].'">'. $row['num'].'</a></td> <td>'. $row['firstparty'] .'</td> <td>'. $row['secondparty'] .'</td> <td>'. … | |
Re: Hi, There is no simplest form of a solution to a problem, without going into the basics. I never crossed past the PHP forum, but I just did this time. It is not that I am not capable of writing codes in Ruby, but it is because I am so … | |
Re: Stay away from all these troubles.. install an XAMPP or equivalent. 5.3.27 php version is pretty old. Use the latest or at least 5.5.1. The current stable release version as of today is 5.5.3 If you will running an application that is not version 5.5.3 capable, stay with the 5.3.27. … | |
Re: Hi, Just bring down the comment tags. One more thing multi-line comment in php should be like this <?php /* beginning of long comments from the author *close the comment tag below */ | |
Re: Hi, I strongly suggests to do your counting in the business logic side and not on the presentation side. Another thing that I am not very clear on your question is that: Are you trying to count the failed submission/s? If so, then you don't loop over the number of … | |
Re: Hi, Check if your remote server target directory is writable. On your PHP.ini file, make sure these values are increase to some acceptable values that will allow the script to finish its job. Run a php info script and look for these values both of your servers max_execution_time post_max_size max_input_time … | |
Re: between these two, $route['default_controller'] = "page"; $route['404_override'] = ''; add $route['page'] = 'page'; like ## this where it all begins $route['default_controller'] = "page/view"; ## this will make your page visible $route['page'] = 'page'; ## this will catch anything $route['page/(:any)'] = 'page/view/$1'; ## this will route to 404 for pages that … | |
Re: I totally agree with Dani. All things can be either assigned in your controller or inherited from the view pages... On your previous questions, there was some controller codes that look similar to this..I don't remember them exactly, but I would guess it was something like this. public function index() … | |
Re: can you show us your config/routes.php? e.g $route['pages/create'] = 'pages/create'; | |
Re: Hi, To be able to use sqlite, you will have to use PDO wrapper. The most basic PDO approach can be something similar to this.. try { $conSql= new PDO("sqlite:PathOfYourDatabase"); } ## catch exception right after the try catch(PDOException $error){ echo $error->getMessage(); } The linked script above is old, I … | |
Re: it looks like you are a victim of your own server's counter measure called cpHulk brute force lock-out . If you can't access your server with your browser, ftp client, or any other means coming from your IP address, you must contact your host to make an exemption for your … | |
Re: Hi, I totally agree with Broj1. To answer your 2nd questions, there are no definite numbers of ways, it all depends on what will comes up on the black box. Any vulnerabilities found on the website are tested if it can be use to make a bigger splash. About the … | |
Re: look for the IP of the computer where the php script is running, click on the network preferences. Record this IP addresss, and move to the remote computer, and type http://ip_address_here/signup.php . |
The End.