1,376 Posted Topics

Member Avatar for Buppy

Perhaps this could be a file permissions problem. Could you please post your code.

Member Avatar for cwarn23
0
73
Member Avatar for minitauros

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 …

Member Avatar for cwarn23
0
120
Member Avatar for kaosjon

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

Member Avatar for cwarn23
0
100
Member Avatar for MichaelBerh

[CODE]<?php if(basename($_SERVER['SCRIPT_NAME']) == 'index.php'){ include ('index-header.php'); } else { include ('page-header.php'); } ?>[/CODE]

Member Avatar for cwarn23
0
162
Member Avatar for cdoggg94

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 …

Member Avatar for cdoggg94
0
248
Member Avatar for cwarn23

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 …

0
61
Member Avatar for Farhad.idrees

[CODE]<?php $user='cwarn23'; $password='password'; $database_name='cwarn_phpbb'; mysql_connect('localhost',$user,$password); mysql_select_db($database_name);[/CODE]

Member Avatar for arajapandi
0
235
Member Avatar for veledrom

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.

Member Avatar for Stefano Mtangoo
2
118
Member Avatar for Ravi tiwari

Do you mean something like this: [CODE]while ($row=mysql_fetch_assoc($result)) { echo $row['column']; echo "\n"; //must be double quote }[/CODE]

Member Avatar for cwarn23
0
123
Member Avatar for cwarn23

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 …

Member Avatar for diafol
4
766
Member Avatar for cwarn23

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.

Member Avatar for diafol
2
131
Member Avatar for damnably

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

Member Avatar for jholland1964
0
254
Member Avatar for nikki05

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 …

Member Avatar for suley04
0
543
Member Avatar for Xdwardo

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]

Member Avatar for Xdwardo
0
174
Member Avatar for jess_mtz

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]

Member Avatar for cwarn23
0
113
Member Avatar for txwhitetail

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 …

Member Avatar for cwarn23
0
167
Member Avatar for Ingska

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.

Member Avatar for Ingska
0
299
Member Avatar for gotboots

$_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 …

Member Avatar for broj1
0
319
Member Avatar for fuggles

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.

Member Avatar for cwarn23
0
74
Member Avatar for TurkAlush

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 …

Member Avatar for cwarn23
0
99
Member Avatar for Butcherman

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

Member Avatar for cwarn23
0
364
Member Avatar for lynn21

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 …

Member Avatar for lynn21
0
90
Member Avatar for siina

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

Member Avatar for cwarn23
0
188
Member Avatar for musicmancanora4

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.

Member Avatar for vibhaJ
0
118
Member Avatar for rakwel10

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 …

Member Avatar for vibhaJ
0
123
Member Avatar for MooGeek

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.

Member Avatar for Netcode
2
156
Member Avatar for narekm

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 …

Member Avatar for diafol
0
165
Member Avatar for OblibSystems

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.

Member Avatar for ddanbe
0
440
Member Avatar for sem123

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 …

Member Avatar for cwarn23
0
113
Member Avatar for davy_yg

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]

Member Avatar for Matthew N.
0
249
Member Avatar for davy_yg

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 …

Member Avatar for cwarn23
0
154
Member Avatar for saadi06

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 …

Member Avatar for Dani
0
164
Member Avatar for davy_yg

The more recourse efficient method would be to use the following on line 109. [CODE]<?php echo (!isset($confirmation))?$confirmation='':$confirmation; ?><br/>[/CODE]

Member Avatar for cwarn23
0
99
Member Avatar for davy_yg

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

Member Avatar for cwarn23
0
90
Member Avatar for vizz

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 …

Member Avatar for ravikc
0
163
Member Avatar for ingeva

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

Member Avatar for swatK
0
953
Member Avatar for ryan_vietnow

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]

Member Avatar for mina gharache
2
166
Member Avatar for cwarn23

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] ^$ …

Member Avatar for kingkong111411
0
217
Member Avatar for cwarn23

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 …

Member Avatar for spidersdesign
0
306
Member Avatar for k9shark
Member Avatar for diafol
0
229
Member Avatar for KonkaNok

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.

Member Avatar for NETProgrammer
0
330
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
227
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
206
Member Avatar for arjani10

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 …

Member Avatar for arjani10
0
498
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
167
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
171
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
211
Member Avatar for cwarn23

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 …

Member Avatar for mKorbel
0
2K
Member Avatar for kokfui

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

Member Avatar for diafol
0
135
Member Avatar for ebanbury

Try the following: [CODE]$price=number_format($price,2,'.',',');[/CODE]

Member Avatar for ebanbury
0
138

The End.