1,003 Posted Topics

Member Avatar for Simon180

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 …

Member Avatar for Simon180
0
230
Member Avatar for gyno

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 …

Member Avatar for gyno
0
277
Member Avatar for toxicandy

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 …

Member Avatar for cereal
0
4K
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
363
Member Avatar for ceeandcee

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']; ?>

Member Avatar for veedeoo
0
172
Member Avatar for praba_web

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

Member Avatar for damle1
0
2K
Member Avatar for stanley87
Member Avatar for sohail.comsians

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

Member Avatar for isaac.iji.5
0
277
Member Avatar for Gabrielroos

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.

Member Avatar for Gabrielroos
0
577
Member Avatar for Indians

Hi, Try [this](http://www.dynamicguru.com/javascript/currency-conversion-using-javascript-and-openexchangerates-json-api/)...

Member Avatar for diafol
0
3K
Member Avatar for davy_yg

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

Member Avatar for davy_yg
0
321
Member Avatar for Boudreauxcs

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

Member Avatar for veedeoo
0
414
Member Avatar for tqmd1

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 …

Member Avatar for veedeoo
0
154
Member Avatar for Indians

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 …

Member Avatar for iLikePHP
0
441
Member Avatar for t_thakar

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 …

Member Avatar for veedeoo
0
233
Member Avatar for Kleon

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?

Member Avatar for Kleon
0
134
Member Avatar for Ann Krizette

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 …

Member Avatar for veedeoo
0
203
Member Avatar for Ann Krizette

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?

Member Avatar for Ann Krizette
0
276
Member Avatar for techxaidz

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.

Member Avatar for veedeoo
0
151
Member Avatar for bavenbabu

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

Member Avatar for kevinpatel
0
2K
Member Avatar for prateek_chandra

I don't have any linked signature, but I know who does. Welcome to the PHP side of Daniweb.

Member Avatar for veedeoo
0
83
Member Avatar for klemme

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 …

Member Avatar for diafol
0
330
Member Avatar for johmny

Choose which language you are the most comfortable writing it. Some will choose PHP and some C# -> ASP.net (it is a framework really).

Member Avatar for diafol
0
152
Member Avatar for woodenduck

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 …

Member Avatar for woodenduck
0
350
Member Avatar for Brandon_4
Member Avatar for veedeoo
0
321
Member Avatar for gogs85

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 …

Member Avatar for veedeoo
0
4K
Member Avatar for NitsPatel

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?

Member Avatar for NitsPatel
0
1K
Member Avatar for sajidk25

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.

Member Avatar for veedeoo
0
265
Member Avatar for PerplexedB

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 …

Member Avatar for PerplexedB
0
344
Member Avatar for brenton_77

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 …

Member Avatar for JorgeM
0
373
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
397
Member Avatar for toldav

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.

Member Avatar for minitauros
0
295
Member Avatar for rakwel10

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 …

Member Avatar for veedeoo
0
1K
Member Avatar for saadi06

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 …

Member Avatar for veedeoo
0
3K
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
594
Member Avatar for urbangeek

Looking at your codes, the variable matchtag should return "quote" and backhash returns 'standard'.

Member Avatar for urbangeek
0
298
Member Avatar for shrikanthnk

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>'. …

Member Avatar for shrikanthnk
0
553
Member Avatar for Herve_1

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 …

Member Avatar for Herve_1
0
149
Member Avatar for amit.chaudhari.71

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

Member Avatar for veedeoo
0
6K
Member Avatar for salii

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 */

Member Avatar for jessie.wauters.1
0
1K
Member Avatar for sammry

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 …

Member Avatar for sammry
0
922
Member Avatar for nira9
Member Avatar for Siberian

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 …

Member Avatar for Siberian
0
396
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
471
Member Avatar for davy_yg

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() …

Member Avatar for davy_yg
0
160
Member Avatar for davy_yg

can you show us your config/routes.php? e.g $route['pages/create'] = 'pages/create';

Member Avatar for paulkd
0
233
Member Avatar for lewashby

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 …

Member Avatar for veedeoo
0
794
Member Avatar for Siberian

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 …

Member Avatar for Siberian
0
169
Member Avatar for best4earn

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 …

Member Avatar for jkon
0
153
Member Avatar for Malymieczek

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 .

Member Avatar for broj1
0
186

The End.