39,323 Topics

Member Avatar for
Member Avatar for nonshatter

Hi all, Does anyone know of any software/classes that can be used to generate images of network diagrams? We are using a tool called Graphviz using Perl at the moment but the diagrams are looking a little bit dated! The networks will be pretty small, consisting of 3 or 4 …

Member Avatar for chrishea
0
1K
Member Avatar for ditty

i have a long string which contains a url. I want to extract that url from that particular string. Please help me.

Member Avatar for edussooriya
0
378
Member Avatar for Mrki77

Hi everybody, I have a specific problem, and cant get over it. For my latest project I need a simple PHP script that display an image according to its ID sent through URL. Here's the code: [CODE]header("Content-type: image/jpeg"); $img = $_GET["img"]; echo file_get_contents("http://www.somesite.com/images/$img");[/CODE] The problem is that the image doesn't …

Member Avatar for karteek.vemula
0
1K
Member Avatar for MysticalNomad

[B]The Idea[/B] The idea is that my PHP page will execute specific SQL statements on a database depending on which form elements are filled in. Instead of having to write continuously lengthy IF statements to determine which statement to use, I would like to have the necessary statement "looked up". …

Member Avatar for pritaeas
0
102
Member Avatar for sbarros

Hi, I know the problem that I am having is related to the change in PHP5 about strings and arrays, however I do not understand why my script is affected. It seems like I am not trying to add more variables to an array. I do not success in order …

Member Avatar for sbarros
0
225
Member Avatar for public-image

Hey Guys :) I want to be able to rewrite my URL's like so: [B]site/profiles/(username)[/B] but this would really only be site/profile.php?username=* I have this so far: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^profiles/$ profile.php </IfModule> How would I do the [B]bold[/B] located above?

Member Avatar for public-image
0
73
Member Avatar for whiteyoh

Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set …

Member Avatar for vivekdizzal
0
204
Member Avatar for Sorcher

[CODE]<?php $host="xxxxx.xxxxxx.com"; // Host name $username="xxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $id=$_GET['id']; // Retrieve …

Member Avatar for Sorcher
0
151
Member Avatar for arsala khan

Php code for button wheh we press the button it give previous infrmation about that filed

Member Avatar for pritaeas
0
52
Member Avatar for sjgoodjob

Description: ------------ Doing the following SimpleXML text comparison does not give the expected results. Reproduce code: --------------- [CODE] <?php $sxe = simplexml_load_string('<root a="123" />'); echo $sxe['a']."\n"; if ($sxe['a'] == '123') { echo 'They are equal.'."\n"; } else { echo 'They are not equal.'."\n"; } [/CODE] ?> Expected result: ---------------- 123 …

Member Avatar for pritaeas
0
127
Member Avatar for satyam024

hello i satya i need information about how to install php and how we can use it

Member Avatar for Shanti C
0
41
Member Avatar for archik123

i am trying to store the user entered form data (using php )to a .txt file.. and when i am trying to display the .txt file using php .. the contents are displayed along with the delimiter ( ||) ..how do i get rid of the delimiter in the display …

Member Avatar for archik123
0
193
Member Avatar for TheIdiot

I am having the hardest time trying to figure out what I am doing wrong with this section of code. Basically, I am using the GET method to pull a variable from the URL which I then want to search the database for. This "ticket" is unique and I only …

Member Avatar for TheIdiot
0
75
Member Avatar for Abhishekdas
Member Avatar for Shanti C
0
54
Member Avatar for Mars1936

Hello, I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give …

Member Avatar for Mars1936
0
148
Member Avatar for scarcella

I want to know how to update a href link with javascript using an image. I have a image which has to update a href which displays a lightbox. Could someone please tell me know to do this.

Member Avatar for scarcella
0
107
Member Avatar for whiteyoh

Hi all, I have a number of refreshing divs in my code, all of which work fine. Ive been trying to create a dynamic graph using the same method, but when i run the script all i can see is the following when the graph should be PNG  ��� …

Member Avatar for nonshatter
0
99
Member Avatar for sleign

I'm not really sure what's going on. I've looked all over the internet and have been stuck on this issue for days. It seems as though few have run into this problem and those that have - have no suggestions or even any replies. CKEditor's help forum has nothing on …

Member Avatar for sleign
0
332
Member Avatar for bjeffries

Ive read a few tutorials to try and get this mod_rewrite to work but have no luck. I have checked my phpinfo and everything should work. I am trying to change this url: [url]http://domain.com/viewAlbum.php?aid=2[/url] (any number) to this url: [url]http://domain.com/album/2/[/url] Here is my .htaccess file and I dont know if …

Member Avatar for bjeffries
0
175
Member Avatar for danny5514

I have cretaed a login page in php got the database and connection how ever when i register i get an error Error: User not added to database. this code is in my register.php file can anyone help thanks [CODE] // Make sure query inserted user successfully if ( !mysql_insert_id() …

Member Avatar for danny5514
0
153
Member Avatar for arctushar

Hello I want to make file hosting website. As like megaupload or rapidshare. How can I do this. I know how to upload a file, rename file, etc. Actually I need to know. How to prevent file or directory to access from un authenticated user. Please suggest what is the …

Member Avatar for arctushar
0
131
Member Avatar for dbj6417
Member Avatar for cobrax

ok guys i have a litle peace of script that needs some modefying the page was original that you must ad you admin pass to accept a new fusker upload! but becouse i intregrate it in a new system it can be done after you see the images so only …

Member Avatar for cobrax
0
165
Member Avatar for starfight

Hi! I have a problem with the following statement: [code] $dbres = mysql_query("SELECT UNIX_TIMESTAMP(`huur`) AS `huur`,huur1,`login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`attlosses`,`attwins`,`deflosses`,`defwins`,`cash`,`type`,`clan`,'maffiamode',`avaurl` FROM `[users]` WHERE `login`='{$_GET['x']}'"); if($def = mysql_fetch_object($dbres)) { if($def->login == $data->login){ print " <tr><td class=\"mainTxt\">You kicked yourself in the nuts... now what?.</td></tr>\n"; }else if($def->login == $admin1) print " <tr><td class=\"mainTxt\">Do NOT attack …

Member Avatar for chrishea
0
338
Member Avatar for muralibobby2015

hello.. i am creating cmc pages from admin side. i have 3 level menu in front end. my database table structure for cms pages 'name,parent_id,description,status'. now i have to display all pages subpages and sub of subpages in menu. how to write this query? [CODE]<!-- BEGIN Menu --> <ul id="nav"> …

Member Avatar for muralibobby2015
0
160
Member Avatar for astala27

i wanna get two inputs and calculate them. how can i do? my code is [CODE] <input type="text" name="a" /> <input type="text" name="b" /> <input type="submit" name="Submit" value="calculate" /> <?php if ($a > $b) echo "a is greater than b"; else echo "a is greater than b" ?>[/CODE] please help …

Member Avatar for Shanti C
0
127
Member Avatar for Sorcher

Hello guys, i got a problem here.. I would like to change the url: [url]http://mysite.com/edit_files.php?deleteid=26[/url] to something randomized so people can change the numbers in "deleteid=26" I know i need a htaccess code for this, and i've searched allot to try bring this bitch down, so asking some pro fellas …

Member Avatar for Sorcher
0
86
Member Avatar for sjgoodjob

[CODE] <?php class X { function X(){ if($_POST['break']=='yes'){return;} } } class Y extends X{ function Y(){ parent::__construct(); print("Y_constructor_finished"); } } $_POST['break']=='yes'; $new_Y=new Y(); // will print "Y_constructor_finished" [/CODE] i does't work with return it still print Y_constructor_finished

Member Avatar for mschroeder
0
119
Member Avatar for ivanwafoo

Hi guys Can I use HTML Frames with PHP? I presumed I can do this by.. <?php session_start(); require("auth.php"); require("do_html_header.php"); if($_SESSION['SESS_admin'] == 0) require("do_menu.php"); else require("do_menu3.php"); do_html_header(); print"<h1>Welcome ". $_SESSION['SESS_FIRST_NAME']."!</h1>"; do_menu(); ?> </body> <frameset rows="50%,50%"> <frame noresize="noresize" src="limits.php" /> <frame noresize="noresize" src="limits.php" /> </frameset> </html> I have put it everywhere …

Member Avatar for Shanti C
0
87
Member Avatar for Joe34

html.html is below [CODE]<form action="734608271.php" method="POST" /> Carrier: <select> <option name="car" value="nothing">------------------------------</option> <option name="car" value="Alltel">Alltel</option> <option name="car" value="AT&T">AT&T</option> <option name="car" value="BoostMobile">Boost Mobile</option> <option name="car" value="CentennialWireless">Centennial Wireless</option> <option name="car" value="EinsteinPCS">Einstein PCS</option> <option name="car" value="Nextel">Nextel</option> <option name="car" value="Sprint">Sprint</option> <option name="car" value="T-Mobile">T-Mobile</option> <option name="car" value="US Cellular">US Cellular</option> <option name="car" value="VerizonWireless">Verizon Wireless</option> <option name="car" …

Member Avatar for diafol
0
109

The End.