I am trying to study the source code of a PHP application. Now that the code is very big,
I wanted to use some kind of software that can show me all classes and functions defined so that I can easily go through it easily. Whenever I click any function its definition must open.
...
Hello,
I'm going to get the checked radio button value using AJAX in PHP. I have done the following code, but i can't continue.
I need your help.
ajax_radio.php
<html>
<head>
<script type="text/javascript" src="ajax.js" ></script>
</head>
<body>
<input type="radio" name="radio1">Blue</input>
<input type="radio" nam...
Hello! Im new to php so im sure this is an easy one. Im getting this error
Notice: Undefined variable: conn in C:\Dev\Webserver\Apache2.2\htdocs\EclipsePHP\thecock\php\db.php on line 23
for this code
<?php
$host = "localhost"; $database = "dbname"; $username = "user"; $password = "pass";
$conn = new mysqli($host, $username, $passwo...
We need to use SQL Server Reporting Services in a website with server-side php and php authentication. At the moment we have two separate logins/authentication – the php and the SQL Server Reporting Services one (which I believe uses something similar to ASP.NET authentication). We need to have only the php login and we also need the rep...
I'm finding I have lots of conflicts with class names when developing for CodeIgniter. For example, I recently had the situation where I had a Checkout controller:
class Checkout extends Controller
{
// Contents
}
And then went on to create a new custom library:
class Checkout
{
// Contents
}
Which would obviously throw a...
Hi there i'm playing with stmt for the first time (looking at converting my code over after previously using standard mysqli functions through an extension class.
However I can't seem to get it working. I'm using PHP 5.2.11 and mysql 4.1.22.
I've got a table structure like so:
CREATE TABLE IF NOT EXISTS `tags` (
`tag_id` smallint(3...
Hi,
I am using simpleXML and I want to loop though the feed to only display 5 shows using the position() method, but have no joy in getting it to work
foreach($xml->sortedXPath('TV[position() < 5 and ProgrammeName="MTV"]', 'TransmissionDate', SORT_DESC) as $i => $item)
{
print "<a href='?v=".$item->ID."&a=false' class='link'>\n";
...
I need a PHP script to run as a service in windows.
Is there an easy way to do this?
...
when i display ckeditor text the html tags are also displayed. how can a i show only the text?
i'm getting this:
<p> </p> <ul style="list-style-type: none; list-style-image: none; list-style-position: outside;"> <li> Nurzahan Road,Dhaka</li> <li> West of Tajmahal Road</li> <li> Phone: 9110614</li> </ul>
i want to show only this:...
Usually when I see PHP classes, most of the variables and functions are either private or protected. Because the PHP is executed on the server side, I don't understand why you would need these security features. Are these available for security or am I missing something?
...
I need to know if there are any alternatives for an IFrame that I could use to load in an external URL into my webpage. Even if it's JQuery or JavaScript or PHP
...
Is there an equivalent to mysql_real_escape_string() for email injection? I have a form where the user submits their email. I am afraid that someone could insert a comma separated list of emails and use my site for spamming.
...
Is there any free SMS gateways that i can use to integrate with a website developed in PHP?
Thanks in advance...
...
Hi, I'm using SQLite 3 with PHP.
The SQLite table consists of 2 INTEGER and one FLOAT column. When saving data into this table using PHP floats are not saved correctly (default value is stored instead). The two integer columns are saved. Any ideas what could be wrong? Thank you.
Simplified code that actually works correctly:
$conn = n...
My problem is that the back button causes the browser to say something like "Page expired" when the previous page was created by a form.
Example:
page1: form submitted with search
criterias ($_POST request, form
points to page2)
page2: Receives $_POST request and
show result (list of user with links,
points to page3)
page3: Show user ...
Is there any libraries to visualizate simple dependency graphs?
I suppose that SVG is good solution.
...
Hello,
we have an iframe facebookapp which worked fine till yesterday. Although we didn't change anything our app suddenly stopped working.
We could identify users_isAppUser() as a problem. The method returns that the user has not added the app though he definitely has installed the app and is logged in. We could delete the try/catch p...
Hi,
I am just about to undertake building a relatively large PHP system, I just need some ideas on how to implement a certain feature.
I will allow users to register. Once registered, the user will have a security level which will be assigned to their account.
So if I had security levels 1, 2 and 3, what would be the best way to sh...
My XML output looks like this...
How do I display it in PHP?
<row>
<field name="seat_no">18</field>
<field name="my_ticket_no">924403</field>
<field name="pass_nm">abcd</field>
<field name="pass_age">46</field>
<field name="pass_sex">F</field>
</row>
<row>
<field name="seat_no">19<...
Basically I'm trying to get a bit of regex to do the following... I have some data I need to split, the sample data looks like this:
Brand Name - Product Name
Another Brand - Shoe Laces
Heinz - Bakes Beans
I want to be able to select the brand name or the product name but I can't seem to do it without catching the " - " part in the re...