1,376 Posted Topics
Hi and I have tried some UV mapping in blender and although it can be handy in some situations I have found it to not do the job for my situation. Basically all I want to do is for a texture to pattern around every face of the object without … | |
Re: I wonder what sort of graphics card it has because I want one. Bit pricy though wonder if I could get it at a discount store. | |
Re: I shall put it plain and simple. While it is easily possible to loop through part of an array instead of the mysql result with pegination, an array with a trillion results will crash the server just like a reverse hash lookup table. Imagine storing a trillion results in an … | |
Re: I have created a script for you to fiddle with and is below. The below script is a function where you can enter the number of days, months and years untill the future date and the function will return what that date is. [CODE=php]<? function count_to_date($day,$month,$year) { $d=date(j)+$day; $m=date(n)+$month; $y=date(Y)+$year; … | |
Hi and I have just downloaded the Irrlicht gaming engine and although I have had a briefing about it from a friend I can't seem make it do what I want. I got the demo which is nearly what my result will look like but then I tried switching from … | |
Re: [QUOTE]This is technology. We can make it do whatever we want[/QUOTE]Bill Gates and now look at their Operating System. | |
Re: It is a simple setting in your C:\xampp\apache\conf\httpd.conf file. So first copy the file at that location for a backup. Then load the file at C:\xampp\apache\conf\httpd.conf in notpad to do the following modifications. 1 - Uncomment the following line by removing the # symbol [CODE]#LoadModule rewrite_module modules/mod_rewrite.so change above to … | |
Re: Also as for bing it is not so easy. I remember reading some time ago that to get the backlinks for bing you need to register an account then log in to view the stats for the backlinks. So that makes it impossible for automated scripts to get the bing … | |
Re: [QUOTE=hughv;1058702]Where's the forum with the clever people who can help with difficult technical challenges?[/QUOTE] Well your posting in it. Also I believe it will be another 291 years before we see humans living on mars - year 2300. Hope to see you then. | |
Re: Do you mean like this: [CODE]//data stored in $arr for ($i=0;isset($arr[$i]);$i++) { mysql_query('INSERT INTO `table` SET `column`="'.mysql_real_escape_string($arr[$i]).'"'); }[/CODE] Hope it helps. | |
Hi and I found a script at the below website but appears not to work for me. I'm using the Netbeans IDE and Java Version 6 and the link where I found how to use cookies in Java applets is at [URL="http://www.rgagnon.com/javadetails/java-0180.html"]http://www.rgagnon.com/javadetails/java-0180.html[/URL] However my partial script below (snipped chunky code) … | |
Re: Try attempt 4 the following: [CODE]<label>Username</label><br /> <input name="name" type="text" value="<?php if(isset($_POST['name'])) echo $_POST['name'] ?>"/> <?php echo (!empty($arrErrors['name']))? '<span class="errortext">'.$arrErrors['name'].'</span>':''; ?> <br />[/CODE] | |
Re: [QUOTE=ShrewdSpirit;1049592]Where's the $? I read that MIS majors average starting salary is $45-$50k/year. I have a B.A. and a Master's in MIS, 3.9 GPA in grad school, VP of MIS Society, many skills, and 25 certifications, including A+, Network+, Server+, MCP, and MCITP-Server Admin. Yet, I can not find a … | |
Re: Netbeans... It may be good for Java but I wouldn't recommend using Netbeans for php unless you find php terribly hard. Instead use a php text editor (Not IDE) and things will be a lot simpler as php has a great debugging system as it is. [QUOTE=motieno;1061168]I have followed the … | |
Re: Lets take into account the following code. [CODE]<?php $message="This is a string<br>"; echo $message; $message="variable"; $variable="This is the second string"; echo $$message; ?>[/CODE] You will notice with the second method it will check the variable $message for it's value and it's value is the string "variable". So then it searches … | |
Re: [QUOTE]I want to create system tags Like wordpress for my site[/QUOTE] A bit like my first post. If you are meaning you want to program your own php site from scratch to look like a wordpress site then you will have to realize that this is no easy job. You … | |
Re: Well right now I am replying to this thread but after that I will have a browse around daniweb then will check what supercomputers are selling cheap then I will be going to bed. | |
Re: If you mean all of the values are stored in the one cell or variable then the following will do the trick: [CODE]$var='one.two.three.'; $var=substr($var,0,-1); $arr=explode('.',$var); for ($i=0;isset($arr[$i]);$i++) { echo $arr[$i].'<br>'; }[/CODE] That is just from the top of my head and may or may not have bugs. Hope it helps. | |
Re: [QUOTE=kiranhg.2008;1050921]I want to display records from database in this order 1 2 3 4 5 6 ........ or 1 4 .... 2 5 ... 3 6..... pls can anybody help me ........[/QUOTE] Not much use putting that info in this solved topic. Try setting up a new topic. | |
Re: I'm no translator but I think that website is in Arabic. Impossible to read or understand. As for the question, the only oop I currently use is in php-gtk but hope to learn more soon. Also anybody who knows websites that give tutorials on oop would be good as this … | |
Re: The following should do the trick the the result being in the $res array [CODE]<?php $var=$_POST['box']; $i=1; $res=array(); $var=(empty($var))?array():$var; foreach ($var AS $val) { $n=substr($val,-1); while ($i<$n) { $res[]=false; $i++; } $res[]=$val; $i++; } while ($i<=5) { $res[]=false; $i++; } ?><form method="POST"> <table> <tr> <td><input type="checkbox" name="box[]" value="box1"/></td> <td><input type="checkbox" … | |
Re: [QUOTE]It wouldn't let me fit more than 10 names in the poll.[/QUOTE] It's a bugga having that limit in the poll system. IMO, it would be better to have a limit of something like 16 because people are always saying they can't fit more then 10 options or at least … | |
Re: [QUOTE=GrimJack;1057421]Having dinner with friends who I only see on Xmas and Independence Day. I love them dearly but they have 3 kids and no time for us - life can be like that sometimes.[/QUOTE] Independence Day? Is that the day where the aliens try to take over the world. When … | |
Re: Also if you want columns in the array then a 2 dimensional array will be required. For example [CODE]<?php $htmltable=array(); for ($row=0;$row<21;$row++) { for ($column=0;$column<6;$column++) { $htmltable[$row][$column]=$row.'x'.$column; //cell value; } } print_r($htmltable); //dump array ?>[/CODE] I haven't tested the above script but gives you an idea of how to generate … | |
Re: Try adding the following to the top of your php file(s) [CODE=php]setcookie ('PHPSESSID', $_COOKIE['PHPSESSID'], time()+172800);[/CODE] | |
Re: My favorite movie is Titanic 1997 as it shows how even the best technology can fail on us all. Next best movie is Stargate Atlantis as we all descended from the Atlantians at the Pegasus galaxy. At least that's what I believe in because it's more possible than a single … | |
This morning I woke up and went to my computer like normal and saw a boolean message saying my harddrive has limited space. So I went to the Windows Explorer and check drive C properties and it said I had zero bytes of free space. I thought ok, maybe I … | |
Re: Have you tried the youtube video player. Simply copy and past the code shown to the side of a youtube video and you can view that video on your site. Only problem is that method is the video must be uploaded to youtube. | |
Re: [QUOTE=Atli;1055410]Hey. In a properly designed CMS, changing anything just INSERTs, UPDATEs or DELETEs stuff from the database. If it is actually creating tables, or otherwise changing the database structure, there is usually something wrong with the database design. Exceptions to this are webs with insane numbers of visitors, where the … | |
Re: [QUOTE=ardav;1056425]Is this a question? What do you want? Have you contacted the host? If you see php code you've probably not enclosed the code inside php tags or perhaps your hosting account does not support php.[/QUOTE] Exactly and in addition to that your host may have turned off short tags … | |
Re: Simply give your javascript file a .php extension then php code may be used in the file. So for example your filename may be scripts.php and will display all of the required javascript using php. | |
Re: Try this: [CODE]<?php // create a new cURL resource $ch = curl_init(); $demo='http://chaitu09986025424.blog.co.in/feed/rss/'; // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://validator.w3.org/feed/check.cgi?url=$demo"); curl_setopt($ch, CURLOPT_HEADER, false); // grab URL and pass it to the browser $data=curl_exec($ch); echo $info['http_code'] . " " . $http_codes[$info['http_code']]; // close cURL resource, and free up … | |
Re: I'll tell ya where I have gone when I'm not online - to work and to sleep... Next! | |
Re: Cookies and sessions won't work because they are separate domains so I would suggest having them both read a common mysql database where user data will be stored so when a user logs into each, their preferences+passwords will still be the same as the other site. If however you do … | |
Re: You can take a look at [URL="http://www.daniweb.com/forums/thread239874.html"]this thread[/URL] for a script that already has some of those abilities programmed in. But there would be a lot more programming to add in. Alternatively there is a script I once used called Sphider which does exactly what you ask but I find … | |
Re: Try perhaps this: [CODE=plain]RewriteRule ^/?user/([^\.]+)/?$ /profile/index.php?uname=$1 [NC,L][/CODE] Also the second part the is where to needs to specify then entire address after the domain so for example the above code assumes the php file is located at yoursite.com/profile/index.php?uname=xxxxx | |
Re: I have a template that I can give you and it is as follows: [CODE=php]<form method="post">Scan site: <input type="text" name="site" value="http://" style="width:300px"> <input value="Scan" type="submit"></form> <? set_time_limit (0); if (isset($_POST['site']) && !empty($_POST['site'])) { /* Formats Allowed */ $formats=array('html'=>true,'htm'=>true,'xhtml'=>true,'xml'=>true,'mhtml'=>true,'xht'=>true, 'mht'=>true,'asp'=>true,'aspx'=>true,'adp'=>true,'bml'=>true,'cfm'=>true,'cgi'=>true, 'ihtml'=>true,'jsp'=>true,'las'=>true,'lasso'=>true,'lassoapp'=>true,'pl'=>true,'php'=>true, 'php1'=>true,'php2'=>true,'php3'=>true,'php4'=>true,'php5'=>true,'php6'=>true,'phtml'=>true, 'shtml'=>true,'search'=>true,'query'=>true,'forum'=>true,'blog'=>true,'1'=>true,'2'=>true, '3'=>true,'4'=>true,'5'=>true,'6'=>true,'7'=>true,'8'=>true,'9'=>true,'10'=>true,'11'=>true, '12'=>true,'13'=>true,'14'=>true,'15'=>true,'16'=>true,'17'=>true,'18'=>true,'19'=>true, '20'=>true,'01'=>true,'02'=>true,'03'=>true,'04'=>true,'05'=>true,'06'=>true,'07'=>true, '08'=>true,'09'=>true,'go'=>true,'page'=>true,'file'=>true); function domain ($ddomain) { … | |
Re: Although you could use regex it would be better to use the following: [CODE=php]$url='http://www.youtube.com/watch?v=NMAYr709-9Y&feature=dir'; $var=explode('?v=',$url); $var=explode('&',$var[1]); echo $var[0];[/CODE] | |
Re: [QUOTE]what you think about these technologies ? Are human already able to exploit the concepts of high energy PHYSICS ? Or just aliens just give them to us ?[/QUOTE]Well from my understanding, I believe earths scientist just don't have enough knowledge of particles to be able to create anti-gravity vehicles. … | |
Re: I would bring a nuclear reactor to build a power plant, and a swiss army knife, a few straws, an empty one Liter bottle, a Tent, a large cooking Knife, large quantities of flint, 3 First aid kits and all my computers with a satellite internet connection. Since I have … | |
Re: [QUOTE=Paul Thompson;1037421]Newcastle - Australia with Telstra i get 1.5MB/s down and 256kB/s up[/QUOTE] WTF, that can't be right with Telstra. Their speeds are slower than what they advertise. I'm with Telstra and although their plan says 256kbps I only receive 25kbps down and 5kbps up. So looks like I'm the … | |
Re: Replace lines 11 to 13 with the following [CODE]echo $data2['firstname']; echo $data2['lastname']; echo $data2['task']; [/CODE] | |
Re: Found a bug. [QUOTE]if (!start)[/QUOTE] The above line is meant to be the following: [CODE=php]if (!$start)[/CODE] | |
Re: [QUOTE=MZohaibAkhter;1048760]No! No! Its just an experiment. I want a bot which enters "0001" in google search text box, then "0002", Then "0003" to "9999" with some time difference. Is that a spam/virus bot?[/QUOTE] PHP would be the section if you have a webserver with php installed. Also google has their … | |
Re: [CODE=php]<?php header("Location: http://yoursite.com/index.php"); exit; //above must be at very top before any browser output[/CODE] | |
Re: Perhaps this: [CODE=php]<?php mysql_connect(HOST,USER,PASS); @mysql_select_db("db303278079") or die( "Unable to select database"); $query="SELECT * FROM restaurants"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); for ($i=0; $i<$num; $i++) { $rest_name=mysql_result($result,$i,"rest_name"); $address=mysql_result($result,$i,"address"); $telephone=mysql_result($result,$i,"telephone"); $website=mysql_result($result,$i,"website"); $cuisine_type=mysql_result($result,$i,"cuisine_type"); $area=mysql_result($result,$i,"area"); $website=(empty($website))?'':", <A HREF=$website>'Website'</a>"; echo "<strong>$rest_name</strong>, $address, $telephone, ($cuisine_type), $area$website<br >"; } ?>[/CODE] | |
Re: Try replacing it with the following: [CODE=php]$sql = 'SELECT * FROM device WHERE `device_num` LIKE "'.mysql_real_escape_string($val_d).'" OR `dib` LIKE "'.mysql_real_escape_string($val_dp).'"';[/CODE] | |
Re: Looks like a bunch of ones and zeros with a few letters to me. | |
Re: You will find that by doing that as you have mentions, parts of it such as javascript will not be compatible with some email clients. So best thing to do is to just have a link to something like yoursite.com/email.php?userid=194965 and the user id will allow for existing details to … | |
Re: Try the following: [CODE=php]$user_name = mysql_query('SELECT * FROM users WHERE username ="'.mysql_real_escape_string($Entered_UserName).'" AND password = "'.md5($Entered_PassWord).'"') or die(mysql_error()); $user_name_password = mysql_fetch_assoc($user_name); if($user_name_password === false) { echo 'false'; } else{ echo 'true'; }[/CODE] |
The End.