1,376 Posted Topics

Member Avatar for cwarn23

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 …

Member Avatar for thekilon
0
113
Member Avatar for newsguy

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.

Member Avatar for cwarn23
0
858
Member Avatar for sam023

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 …

Member Avatar for sam023
0
535
Member Avatar for xarz

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

Member Avatar for chetan.akarte
0
157
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
185
Member Avatar for Scuppery

[QUOTE]This is technology. We can make it do whatever we want[/QUOTE]Bill Gates and now look at their Operating System.

Member Avatar for Lardmeister
7
526
Member Avatar for itsrahulk

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 …

Member Avatar for jcanaway
0
104
Member Avatar for crohole

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 …

Member Avatar for Connerhailee
0
469
Member Avatar for hughv

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

Member Avatar for GrimJack
2
594
Member Avatar for arushibafna

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.

Member Avatar for venkat0904
0
182
Member Avatar for cwarn23

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

0
94
Member Avatar for mr_scooby

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]

Member Avatar for cwarn23
0
187
Member Avatar for ShrewdSpirit

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

Member Avatar for Narue
0
123
Member Avatar for motieno

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 …

Member Avatar for Stefano Mtangoo
0
125
Member Avatar for Mahesh_J

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 …

Member Avatar for muralibobby2015
0
173
Member Avatar for Danielx

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

Member Avatar for cwarn23
0
81
Member Avatar for characteredu

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.

Member Avatar for William Hemsworth
1
106
Member Avatar for muralibobby2015

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.

Member Avatar for cwarn23
0
69
Member Avatar for kiranhg.2008

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

Member Avatar for kiranhg.2008
-2
73
Member Avatar for siamfocus

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 …

Member Avatar for cwarn23
0
28
Member Avatar for sleign

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

Member Avatar for sleign
0
97
Member Avatar for sknake

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

Member Avatar for cwarn23
1
313
Member Avatar for Ene Uran

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

Member Avatar for roshini.johri
1
117
Member Avatar for whitestream6

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 …

Member Avatar for Airshow
0
97
Member Avatar for vgkarthi

Try adding the following to the top of your php file(s) [CODE=php]setcookie ('PHPSESSID', $_COOKIE['PHPSESSID'], time()+172800);[/CODE]

Member Avatar for vgkarthi
0
115
Member Avatar for characteredu

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 …

Member Avatar for pritaeas
0
183
Member Avatar for cwarn23

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 …

Member Avatar for chuckc
0
220
Member Avatar for niladri.user

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.

Member Avatar for kvprajapati
0
54
Member Avatar for Stefano Mtangoo

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

Member Avatar for Atli
2
100
Member Avatar for web3

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

Member Avatar for Atli
0
103
Member Avatar for abhax

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.

Member Avatar for cwarn23
0
176
Member Avatar for ym_chaitu

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 …

Member Avatar for cwarn23
0
156
Member Avatar for caperjack

I'll tell ya where I have gone when I'm not online - to work and to sleep... Next!

Member Avatar for caperjack
0
155
Member Avatar for shishtawitch

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 …

Member Avatar for cwarn23
0
106
Member Avatar for taminder

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 …

Member Avatar for taminder
0
125
Member Avatar for anishmsry

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

Member Avatar for anishmsry
0
125
Member Avatar for drjay1627

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

Member Avatar for digital-ether
0
306
Member Avatar for shishtawitch

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]

Member Avatar for cwarn23
0
100
Member Avatar for NicAx64

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

Member Avatar for MosaicFuneral
-3
386
Member Avatar for mrnutty

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 …

Member Avatar for Grn Xtrm
-2
127
Member Avatar for cakka

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

Member Avatar for zortec
0
332
Member Avatar for levsha

Replace lines 11 to 13 with the following [CODE]echo $data2['firstname']; echo $data2['lastname']; echo $data2['task']; [/CODE]

Member Avatar for levsha
0
113
Member Avatar for balam

Found a bug. [QUOTE]if (!start)[/QUOTE] The above line is meant to be the following: [CODE=php]if (!$start)[/CODE]

Member Avatar for cwarn23
-1
135
Member Avatar for MZohaibAkhter

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

Member Avatar for GrimJack
-1
76
Member Avatar for iraberyl

[CODE=php]<?php header("Location: http://yoursite.com/index.php"); exit; //above must be at very top before any browser output[/CODE]

Member Avatar for iraberyl
0
153
Member Avatar for dmkc

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]

Member Avatar for dmkc
1
735
Member Avatar for futhonguy

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]

Member Avatar for network18
0
90
Member Avatar for GrimJack
Member Avatar for muralibobby2015

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 …

Member Avatar for cwarn23
0
88
Member Avatar for mrjoli021

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]

Member Avatar for cwarn23
0
110

The End.