1,376 Posted Topics
Re: Perhaps this could be a file permissions problem. Could you please post your code. | |
Re: The difference is that when you have multiple classes, you may access $variable which is in class Hello from another class. It is essentially saying why do you need to use [ICODE]global $variable;[/ICODE] in a function when you can input it but this is the oop equivelent for when dealing … | |
Re: Do you mean this? [CODE]$upgrade_user = mysql_query("SELECT * FROM user_info WHERE id='$id'"); while($row = mysql_fetch_array($upgrade_user)){ $real_balance = $row["$balance"]; $real_rank = $row["$rank"]; echo $real_balance; if($real_rank == 'merchant' && $real_balance > 500){ $n1x = '<a href="upgrades_info.php?userid=$id&rank=noble"><img src="images/noble.jpg" width="170" height="200" /></a>'; } else { $n1x = '<img src="images/noblex.jpg" width="170" height="200" />'; } }[/CODE] … | |
Re: [CODE]<?php if(basename($_SERVER['SCRIPT_NAME']) == 'index.php'){ include ('index-header.php'); } else { include ('page-header.php'); } ?>[/CODE] | |
Re: It means you need to contact your web host and tell them that mysql needs the my.cnf file repairing unless you own a dedicated server, vps, xampp or wamp in which case it will be more difficult. Usually this error indicates that mysql hasn't had a correct installation and in … | |
Hi, At the moment I am stuck with a problem where I have googled and googled and yet still can't find software that does what I want. Basically all I want is to be able to take images of an object from all different angles or even do lets say … | |
Re: [CODE]<?php $user='cwarn23'; $password='password'; $database_name='cwarn_phpbb'; mysql_connect('localhost',$user,$password); mysql_select_db($database_name);[/CODE] | |
Re: Just to let you know I have written a tutorial for this and it has been in the holding que for the past 23 hours. At the moment I'm waiting for staff writers to approve it but when it's approved I shall give you the link. | |
Re: Do you mean something like this: [CODE]while ($row=mysql_fetch_assoc($result)) { echo $row['column']; echo "\n"; //must be double quote }[/CODE] | |
Hi, in this news you will see how in the past few years there has been some controversy over a bug or more commonly known as a feature which appears it may be removed as of php 5.4.0. According to the features list of php 5.4.0 beta there is the … ![]() | |
Please post a list of ideas for tutorials that can be written for the php section. Please bear in mind the tutorials are to be kept relatively small so don't ask for something that may take pages upon pages of text to explain. Thanks. ![]() | |
Re: [QUOTE]C:\Windows\system32\msible.dll[/QUOTE] To have that file I am assuming you have Windows 7. I believe that file might be something to do with the windows idle processor. What I would suggest doing is booting up windows in safe mode then renaming that file by putting the number 3 at the end. … | |
Re: You may place before any html/browser output the following function. [CODE]<?php header('Location: http://www.example.com/'); //redirects user /* no echo's print's or ?> before here and <?php starts at the beginning of the file before here as shown so this may be in an if statement to check if the user get's … | |
Re: Well here is a example code of how to convert a mhash to a sha1 hash by the simple use of the bin2hex function. [CODE]<xmp><?php $encrypted_string = "some string"; echo sha1($encrypted_string); echo "\n"; echo bin2hex(mhash(MHASH_SHA1,$encrypted_string)); ?></xmp>[/CODE] | |
Re: I think you need to reinstall your phones operating system. There is a youtube video for how reinstall the phones operating system. Please view the below video for how to do so. [URL="http://www.youtube.com/watch?v=88qRbLLEAPQ"]http://www.youtube.com/watch?v=88qRbLLEAPQ[/URL] | |
Re: In the case of a SD card the best way to make sure it cannot be stolen is to design a camera which encodes the images with an algorithm that only specialized software can read. Then to save the images to the computer you would need to process these files … | |
Re: Your script should be the following: [CODE]<?php session_start(); $_SESSION["referer"] .= $_SERVER['HTTP_REFERER']; $my_web = $_SESSION["referer"] ?>[/CODE] Also you will need to find another alternative to $_SERVER['HTTP_REFERER'] as it isn't always that accurate. The reason being is users can disable that information being sent. | |
Re: $_GET is to get a variable from the url or a form method="GET" request like the previous post suggests. $_POST get's a method="POST" request and is designed so that people can't read this data without a special addon or script which many people do for hacking reasons. $_REQUEST is both … | |
Re: You may want to use cron to execute the task and disable the cron task after it has started executing. Please tell use what admin panel do you use (eg cpanel/plesk) and what operating system are you dealing with (eg centos/ubuntu) and which software stops running. | |
Re: To copy your files to a flash file and reinstall windows you should really boot through a ubuntu live cd and copy the files while in ubuntu then reinstall windows. You can download the ubuntu live cd at [url]http://www.ubuntu.com/download/ubuntu/download[/url] and to use it simply insert it into the computer then … | |
Re: [B]Warning:[/B] This method requires nerd gparted experience. I have dealt with similar circumstances before and will explain how I went about doing it. For my method you will require an external harddrive or a giant flash drive. To do this you need to buy or download a linux disk which … | |
Re: According to my extensive knowledge of math (below are the symbols at wikipedia) the two equations will yield two different results. The --> symbol is the same is the Assembly code "if xxxxxx then" where the xxxxxx is what is before the --> symbol. So by changing the if statement … | |
Re: There is a nice function called file_get_contents which gets the contents of a url and stores it in a variable then you can place it into a file or process it into a mysql database etc. For example [CODE]<?php //first to specify the url $url='http://images.daniweb.com/logo.gif'; //now to retrieve it $imagedata=file_get_contents($url); … | |
Re: Please post a description of what the problem is and what errors you are receiving. In case you are wondering how many words are necessary I would say 32 or more. | |
Re: The "return" statement is used primarily in two areas. One is custom functions that you define and the other is in the include() and require() to return from the required or included page a variable. So here's a sample script. [CODE]<?php //index.php function myfile() { return 'test.php'; } $variable=include(myfile()); //$variable … | |
Re: It is clearly missing the surrounding scene of a super computer in front of the desk with remote access on the monitor screen. Also the toilet should be below the desk so you don't need to get out of the chair to go to the loo. | |
Re: Also if your on linux (I like ubuntu) then there is gedit. It is in many ways like the linux version of Notepad++ and usually comes pre-installed. Also if you want an equivalent for a Mac, then dual boot your mac with windows and you can get the benefits of … ![]() | |
Re: I vote for C because C++ was written in C there for is limited to C's capabilities and is there by more recourse hungry than C as it another level of compilation of computer interpretation for reading the binary sequence. Things were sooo much simpler with punch cards. | |
Re: Could you please be more descriptive on what it is you need done. From what I got from your two sentences you need to convert an excel file to a pdf using php is that right. If so there is the PHPExcel library and I believe php has an optional … | |
Re: Normally in this case it means one of two things. 1) You mis-spelt the table name "kategori_berita" or 2) On older versions of Mysql you will need to change the query string to the below with the special quotes. [CODE=mysql]SELECT * FROM `kategori_berita`[/CODE] | |
Re: Try the following [CODE]<?php class LongName { var $firstname = " "; var $middlename = " "; var $lastname = " "; function firstname() { echo "First Name : ". $this -> firstname; } function middlename() { if (middlename){ { echo "Middle Name : ". $this -> middlename; } else … | |
Re: Well one could argue that it makes no difference at all to the SEO however others could argue the opposite. But really it comes down to the search engine your optimizing for. For instance, google rates words at the beginning of the address such as "www" and "test" with more … | |
Re: The more recourse efficient method would be to use the following on line 109. [CODE]<?php echo (!isset($confirmation))?$confirmation='':$confirmation; ?><br/>[/CODE] | |
Re: [QUOTE=didier_m;1650085]maybe if($_SESSION['LoggeIn'] .. instead of if(Session...[/QUOTE] Indeed and he also forgot to use upper case null (NULL) along with the strictly not equal to match only the NULL although in some server setup's this is not necessary. So the corrected code will be as follows: [CODE]<?php session_start(); // makes an … | |
Re: Your post is a bit unclear on which picture you want the result to look like. If you want the result as a table then that can be achieved by a simple while loop and a html table. If however you are trying to generate an image with the circles … | |
![]() | Re: If you are talking about when going from one page to $_POST data is submitted then their might be a chance of doing it with curl but instead I would recommend using [URL="http://au2.php.net/manual/en/function.session-start.php"]sessions[/URL]. |
Re: Put this into your html form to allow the user to upload more than the browser can normally handle. [CODE]<input type="hidden" name="MAX_FILE_SIZE" value="60000000" /> <input type="file" name="video">[/CODE] | |
Hi, I'm trying to add a condition to my htaccess file but it seems to only match if I use [ICODE]%{REQUEST_URI} !^/?.+$[/ICODE]. If however I add [ICODE]%{REQUEST_URI} !^/?B.+$[/ICODE] it will never match. Also the full code showing what I am trying to achieve is as follows: [CODE][B]RewriteEngine On[/B] [B]RewriteRule[/B] ^$ … | |
Hi and for the past 4 days, I have been trying to make a secure spam-proof blog with no login. I manage to embed a lot into a demo but the following code I know works (as I have made it work on my forum login) but has an error … | |
Re: Don't forget Ajax which is like javascript cross php. It allows client side to server side interaction. ![]() | |
Re: Looks like google doesn't let this language run on windows because windows is too popular. hehehe At least it will run on linux and mac. Unfortunate that it's not cross platform for all systems. | |
Hi everybody, I have a question about purchasing a product which I do not know the name of or where to buy from. I have the following requirements for a PDA but can somebody point me to a few links of where I can buy such a device. My requirements … | |
Hi, I have the following applet which works on my localhost server but when I upload it to my online server then the Java console spits out an error saying the following: [CODE] Exception in thread "thread applet-viewer.class-1" java.lang.NoClassDefFoundError: viewer$1 (wrong name: viewer) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at … | |
Re: Well in future could you please post the error. But assuming that it's the error I think it is then you will need to do the following. First of all make sure the page starts with <?php instead of <? for compatibility reasons. Also make sure the header() function has … | |
Hi, I am in need of a python ocr script that can convert images into text and for the script to work on BOTH windows and centos. All the scripts I have found seem to not be compatible with linux/centos or require an api to another server and I do … | |
Hi, I have used a program called Boinc but was wondering maybe I could make my job easier by using an api to a pre designed network processor like Boinc does. The only problem with Boinc is that I can't create my own jobs or at least not easily. I … | |
hi, I have the following code and it compiles on Netbeans with no errors or warnings but when I load the applet in a browser the browser does not display all of the pictures that I got it to draw. The only picture it draws is my_gif. I have tried … | |
Hi, I have 2 images stored in the variables [ICODE]Image img_arrowl; Image img_arrowr;[/ICODE] and now I need a function or method to set the opacity of these two images. So the syntax I'm after would be something like the following: [CODE] img_arrowl = set_imgopacity(img_arrowl,0.75); img_arrowr = set_imgopacity(img_arrowr,0.75); [/CODE] The only … | |
Re: [QUOTE=;][/QUOTE] Agreed. This can simply be achieved by a header redirect. For example: [CODE]<?php //line 1 if (isset($_POST) && !empty($_POST)) { header('Location: http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']); }[/CODE] Then you can use the exit function after you have processed the $_POST code. ![]() | |
Re: Try the following: [CODE]$price=number_format($price,2,'.',',');[/CODE] |
The End.