Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
87% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #2K
~63.9K People Reached
Favorite Tags

69 Posted Topics

Member Avatar for ivan3510

Hi! I want to convert numbers to letters, in this way: A=0, B=1, C=2... Z=25, AA=26,AB=27 etc (something like the names of columns in MS Excel). How to do that? Thanks a lot!

Member Avatar for SAbadshah
0
13K
Member Avatar for mrhankey

Try this: create INDEX.PHP file in this folder and put redirection. It means that noone can open this folder and see the files inside it. <?php header("location:../"); ?> But, you have to add secure downloading. Because, if logged users sees the URL or something like this, he can tell someone …

Member Avatar for Renu_5
0
5K
Member Avatar for ivan3510

Hi! This is just an easy example of class inheritance. But, why does Sphere(Circle& K):Circle(K){} work? What does Circle(K) mean? Thanks! #include<iostream> #define PI 3.14159 using namespace std; class Circle { protected: float r; public: Circle(){} Circle(float r):r(r){} float circumference() {return 2*r*PI;} float area() {return r*r*PI;} }; class Sphere: public …

Member Avatar for basit_3
0
158
Member Avatar for ivan3510

Hi! So, as the name of this discussion says, I have some jquery code. And sometimes some parts of them don't work, sometimes they do work. The page is made for conjugating verbs, which is done with php, and this isn't a problem. Here is the code: $(document).ready(function(){ function conjugate() …

Member Avatar for Airshow
0
977
Member Avatar for ivan3510

Hi! So, I made this code #include<iostream> #include<cstdlib> #include<pthread.h> using namespace std; const int m=6; const int n=5; const int s=5; const int r=8; const int num_thrd=3; class data{ public: int* A; int* B; int* C; int start; }; void* multiply(void* pod) { data* P=(data*)pod; for(int i=P->start;i<m;i+=num_thrd) { for(int j=0;j<r;j++) …

Member Avatar for ivan3510
1
214
Member Avatar for ivan3510

Hi! A task was to solve a problem using threads (sum up two arrays), but so that you have a global const which will represent number of threads you want to use. Somehow, this doesn't work, and Im not sure if this is correct way to do it. Thanks for …

Member Avatar for ivan3510
0
4K
Member Avatar for ivan3510

Hi! I have this code and getting this problem: undefined reference to 'vtable for Triangle'. Thanks for your help! #include<iostream> using namespace std; class Point { public: float x,y; Point(){} Point(float x,float y):x(x),y(y){}; Point operator=(Point &X); }; Point Point::operator=(Point &X) { this->x=X.x; this->y=X.y; return *this; } class Figure { public: …

Member Avatar for ivan3510
0
4K
Member Avatar for ivan3510

Hi! I have this code, classes with matrices, overloading operator etc (this is just one part, I reduced it from original). #include<iostream> using namespace std; class matrix { protected: float* M; size_t m,n; public: matrix(){} matrix(size_t m,size_t n); matrix(const matrix& A); ~matrix(); matrix& operator=(const matrix& A); matrix operator+(const matrix& A) …

Member Avatar for mike_2000_17
0
330
Member Avatar for ivan3510

Hi! This is just an example code: #include<iostream> using namespace std; int& example() { int a=5; return &a; } int main() { cout << example(); } But I'm getting this error: Error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int\*'

Member Avatar for ivan3510
0
205
Member Avatar for FALL3N

I don't think you can read the file with javascript (but nevermind). Your mistake: [CODE] var myFile = document.getElementById('txtF') //this means: ID="txtF", and you don't have it (you have name="txtF") //so, you have to replace it (name) with ID (or add id='txtF') [/CODE]

Member Avatar for L0st
0
18K
Member Avatar for madsy

Hi! This is the codes: (page php_2): [CODE] <html> <script type="text/javascript"> function sendData(){ if(window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); }else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4 && xmlhttp.status==200){ var Ymax=document.getElementById('Ymax').value; result=xmlhttp.responseText; //in the html element <div id="forResult"></div> //will be writen what you write with "echo" in your php file //in this example, "Thank you …

Member Avatar for Bachu
0
3K
Member Avatar for ivan3510

Hi all! I have this code. Everything works fine except "setTimeout..." function. It's supposed to repeat this function every second (and change the age). Can someone, anyone, help me? Thanks a lot! [CODE]<script type="text/javascript"> function parseDate(input){ var parts = input.match(/(\d+)/g); return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4]); } function calculate(){ var date = new …

Member Avatar for ivan3510
0
123
Member Avatar for davy_yg

This is the problem: YOU PUT PHP CODE IN HTML FILE. RENAME "INDEX.HTML" to INDEX.PHP and it should work.

Member Avatar for azeem786
0
2K
Member Avatar for Jeroen van Zijp

Use this to take the highest number: [CODE] $max=0; foreach($menu_id as $id){ if($max<$id) $max=$id; } $max++; [/CODE]

Member Avatar for diafol
0
195
Member Avatar for Farhad.idrees

maybe you should use variable, like this: [CODE] $variable=$_SESSION['Price']; $variable+=$_GET['P_Price']; //if doesn't work, then do this:$variable=$variable*1+$_GET['P_Price']; $variable++; $_SESSION['Price']=$variable; [/CODE]

Member Avatar for mamdouh ramadan
0
114
Member Avatar for abhinav bagora

So, you have a database. Every user must have an ID number. Then, you have one page, "people" page, and on this page are all people. And there are links next to every person name, like <a href="target.php">Add this person as friend</a>. As href you can use persons id, like …

Member Avatar for cereal
0
152
Member Avatar for ivan3510

Hi! I want to check if some file on some other server exists. I have this code (but something is wrong with it): [CODE]<?php $notworking=array(); $false=0; $link="http://uploads.mp3songurls.com/"; $files=glob("genre/*.xml"); foreach($files as $file){ $xml=new SimpleXMLElement($file,null,true); foreach($xml as $info){ if(fopen($link.$info->link.".mp3","r")==false){ $false++; $notworking[$false]=$info->name." => ".$info->author; } } } if($false>0){ $file=fopen("notworking.txt","w"); for($i=1;$i<=$false;$i++){ fwrite($file,$notworking[$i]."\r\n"); } fclose($file); …

Member Avatar for ivan3510
0
211
Member Avatar for Cap'nKirk

Use this, but it will be for all links in your page, so: [CODE] <head> <base target="_blank"> </head> [/CODE]

Member Avatar for Cap'nKirk
0
179
Member Avatar for ivan3510

Hi! This is my problem. If I write letter č or ć in textarea, and then if I use php to check if there in textarea is letter č or ć, it doesn't work, here's code: [CODE] <?php if($_POST['sub']){ $tekst=$_POST['tekst']; $array=array("&#x010D"); //& # x 010D iz unicode for č, i …

Member Avatar for ivan3510
0
262
Member Avatar for cgull
Member Avatar for pinar747

Add this under <form action="test.php"....> [CODE] if($_POST['submit']){ //...... }elseif($_POST['add']){ $max=$_POST['max']; }else{ $max=8; } [/CODE] replace 8 in for loop to $max [CODE] for($i=0;$i<$max;$i++){ [/CODE] add this under <input> elements (it must be in <form>) [CODE] <input type="hidden" name="max" value="<?php echo ($max+1);?>"> // here try ($max+1), if doesn't work, then use …

Member Avatar for ivan3510
0
161
Member Avatar for Mapper99

When you get data: [CODE] $name=""; $id=""; $lat=""; $lon=""; $xml=new SimpleXMLElement("path/to/file.xml",null,true); foreach($xml as $data){ if($name=="" && $data->name) $name=$data->name; if($id=="" && $data->id) $id=$data->id; if($lat=="" && $data->lat) $lat=$data->lat; if($lon=="" && $data->lon) $lon=$data->lon; } [/CODE] So, now you have these variables. Now you just put them in new xml file: [CODE] $dom=new DomDocument(); …

Member Avatar for ivan3510
0
115
Member Avatar for masterjiraya

I don't understand "$bookID = $_POST["bookID"];" in receipt.php. This variable doesn't exists.

Member Avatar for ko ko
0
316
Member Avatar for mr guru

It's easy. If you have MYSQL database, then, when user register himself create a code and store it in database eg: [CODE] $code=""; $char="QWERTZUIOPASDFGHJKLYXCVBNM0123456789qwertzuiopasdfghjklyxcvbnm"; $length=15; for($i=1;$i<=$length;$i++){ $number=mt_rand(0,(strlen($char)-1)); $code.=$char[$number]; } [/CODE] And also, create a map. EG. if code is AhfIOGF12, then it saves this code in database, and create a …

Member Avatar for ivan3510
0
90
Member Avatar for ivan3510

Hi! I could play 18 Wheels of Steel: Haulin, and then I've deleted it. After a while I've installed it but I can't play it. I click on the icon but nothing happens. Can somebody help me? Thanks a lot!

0
70
Member Avatar for ivan3510

Hi! How to create a website with cookies, but cookies will not be deleted (they will be on computer forever, except somebody delete it; I deleted the cookies one time, and then they have been automatically created (I didn't go to these sites)) So, how to create these two things? …

Member Avatar for MagicMedia
0
76
Member Avatar for ivan3510

Hi! Can somebody help me? I want to add text, but I can't. I saw some examples, but when I wrote them in my code, it returns error. Here's the code (Win32, directX, c++): [CODE] #include <Windows.h> #include <WindowsX.h> #include <d3d9.h> #include "D:\\Program Files\\Microsoft DirectX SDK (June 2010)\\Include\\d3dx9.h" //I don't …

0
85
Member Avatar for ivan3510

Hi! I have htaccess file with this: [CODE] deny from all [/CODE] When I open the directory, access is forbidden! But when I open some file, it doesn't work. Can somebody help me?

Member Avatar for ivan3510
0
95
Member Avatar for ivan3510

Hi! I'm getting these warnings: Warning: session_start() [function.session-start]: Node no longer exists in (file) on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at file:2) in file on line 2 Warning: Unknown: Node no longer exists in Unknown on line 0 I …

Member Avatar for Stefano Mtangoo
0
170
Member Avatar for ivan3510

Hi! I'm trying to send an email (automaticaly, when user register), but I don't get some different letters correct. Here's example code: [CODE] ... $message="Some message that contains č, ć, đ, ž, š"; //on the server, I can't write letters like č, ć etc.; I must write their code & …

Member Avatar for ivan3510
0
111
Member Avatar for ivan3510

Hi! I have two frames (frameset, let's call it frame1 and frame2). Frame1 has links..., and frame2. When some link in frame1 is clicked, it must be changed content of the frame2. Here's example: [URL="http://www.dlib.indiana.edu/variations/scores/adg7955/index.html"]click[/URL]. How to do that? (I don't see any javascript code) Thanks a lot!

Member Avatar for ivan3510
0
96
Member Avatar for ivan3510

Hi! I have a php code that reads xml file. In xml file I have the german letter ö (this xml file is saved as UTF). This is mistake. I don't get ö. I get some strange carachters (like ö). Can somebody help me? Thanks a lot!

Member Avatar for twiss
0
134
Member Avatar for ivan3510

Hi! I have a page, and one part of this page (javascript) reads the duration of song. But what if user's javascript installed on computer doesn't support this? Do all javascript support this function? Here it is: [CODE] //for some browser this function (like IE): duration = document.sound.currentMedia.durationString; //and for …

Member Avatar for twiss
0
747
Member Avatar for kpsbhuvi
Member Avatar for Sydney123

You mean you have something like this: [CODE] <select> <option value="1">Colour Shop A</option> <option value="2">Colour Shop B</option> <option value="3">Colour Shop C</option> </select> [/CODE] ?

Member Avatar for ivan3510
0
76
Member Avatar for TechySafi

1. Yes, you can use window.onload: [CODE] window.onload=function(){ getData('data.php','targetDiv'); } [/CODE] and for second: [CODE] //in function getData add this (calling the counter): counter(); //and here's counter function: function counter(){ setTimeout('getData()',1000); //1000 (miliseconds) = 1 second, calls getData() after every second } [/CODE] Hopefully everthing works!

Member Avatar for ivan3510
0
129
Member Avatar for Cold Shot

For popup: [CODE] <a href="javascript:void(0)" onclick="window.open(''filename.html','popupWindow','height=500,width=600,left=30,top=40,toolbar=no,location=no,status=no,menubar=no,scrollbars=no');">Click</a> [/CODE] and for popup window something like this: [CODE] <script type="text/javascript"> function checkCode(){ code=document.getElementById('code').value; if(code!=""){ //here check the for the code and then add something like this: window.opener.location.href="filename.html?page="+page window.close(); } } </script> Your postal code: <input type="text" name="code" id="code"><input type="button" value="Click" onclick="checkCode()"> [/CODE] And …

Member Avatar for Cold Shot
0
104
Member Avatar for ivan3510

Hi! I made a page where users can listen to music (with javascrip). I add a popup where they can choose what music to play, and when they choose it, this popup window close itself, and two hidden fields get the song information. In the script (you can see it …

Member Avatar for ivan3510
0
108
Member Avatar for ivan3510

Look this page: [URL="http://www.htmlcodetutorial.com/linking/linking_famsupp_75.html"]click[/URL]. How to do that with button?

Member Avatar for twiss
0
79
Member Avatar for ivan3510

HI! I have a php page. There are music names (they are in array). I want to make a search script. This script must find what someone writes. But if user made mistake while writing, it must find similar music names. Is this possible, or I must use mysql?

Member Avatar for ivan3510
0
122
Member Avatar for vijaysoft1
Member Avatar for youlichika

first question: you can check the biggest image with this code: [CODE] //add this to you code //this add at top $max=0; //then, in loop if($imagesize>$max){ $max=$imagesize; $maxImageName=$image; } echo $maxImageName; [/CODE]

Member Avatar for ivan3510
0
133
Member Avatar for ivan3510

I need help! Here's script: [CODE] <?php date_default_timezone_set('Europe/Paris'); $time="1303889758"; echo $time."<br>"; $convert=date("G:i:s d. n. Y. ",$time); //convert $time to our date: output is 9:35:58 27. 4. 2011. echo $convert."<br>"; $con2=mktime($convert); //convert converted time to unix: doesn't work echo $con2; ?> [/CODE] I have two script. One script write the time …

Member Avatar for ivan3510
0
103
Member Avatar for ivan3510

Can you check this site? (can you check can you listen to music? [my browser is firefox, and can you check it with other browsers?]) Thanks! ([URL="http://latinus.herobo.com"]click[/URL]) (PS. Glasno&#263;a means volume)

Member Avatar for ivan3510
0
89
Member Avatar for ivan3510

Hi! I have a page and it's on 000webhost.com. But they don't allowed to add upload script. So, I thought, is it possible to make a php script that will upload file to one other server (this other server doesn't have installed php). Is this possible? If so, how? Thanks …

Member Avatar for ivan3510
0
102
Member Avatar for ivan3510

I saw one page where image was loading. First, there was something like this image (in this text: first image): [URL="http://www.lutrijabih.ba/images/loading.gif"]click[/URL]. And then, when image (real) loaded, it replace first image. Do you maybe know how to do that? (I don't remember the URL of this page.). Thanks!

Member Avatar for ivan3510
0
97
Member Avatar for ivan3510

I used [URL="http://www.ibm.com/developerworks/library/os-php-v525/index.html"]this[/URL] page for making upload progress bar. I downloaded it and uploaded it to the server (you can see it [URL="http://latinus.herobo.com/proba/progress.php"]here[/URL]), and I signed up to Google Maps API and I pasted the code, but it doesn't work. It uploads the file, but it doesn't write the upload …

Member Avatar for ivan3510
0
386
Member Avatar for ivan3510

Hi! Sorry for my bad english! I made an editor. When user passes mouse over the picture, the picture changes color ( Here's code: [CODE] <style> .button:hover{ filter:alpha(opacity=20); opacity=0.2; } .field{ background:#aabbcc; border:1px solid black; } </style> <fieldset class=field> <img src=blablabla.bmp class=button> </fieldset> [/CODE]) I want to make that, when …

Member Avatar for hielo
0
118
Member Avatar for ivan3510

Hi! Sorry for my bad english! I want to make HTML editor (editor with tags, like this on daniweb) with tables. Here's the problem: If user writes [TABLE], I made that this replace with <table>. If the user write, eg. [TABLE:BORDER=1;WIDTH:300;], it will change this to <table border=1 width=300> Here's …

Member Avatar for ivan3510
0
86
Member Avatar for ivan3510

Hi! Sorry for my bad english! I want to make a function that will replace "[LINK=url]Some text[/LINK]" with "<a href=url>Some text</a>". I tried, but the code is too long. Is there any shorter code for this. Here's how I do this (but this code make only first [LINK] into <a …

Member Avatar for ivan3510
0
148

The End.