cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If you mean what type of forum digital point uses it appears it uses something like phpbb or at least has a simular interface.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The ability to use the protocol is free, not the ability to use the cellphone companies towers to send your messages.

Now I get ya. Because that's why some phone companies have better mobile coverage than others. Because they only own certain towers where as I would own no towers which means I would get zero reception and that's useless. O'well, it was a nice idea while it lasted.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I do that all the time but should be as follows:

php /home/[B]*****[/B]/public_html/ad/view.php
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If it's not free then why is there an open source script for this protocol written by the founders of SMPP? You can check their website at http://opensmpp.logica.com/

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well I would recommend an advanced system of ajax for best confirmation but if you want to keep it simple the following script will do the job.

$v=get_browser(null,true);
$javascript=$v['javascript'];
unset($v);
if ($javascript) {
    echo 'Javascript is enabled';
    } else {
    echo 'Javascript is disabled';
    }
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

OMG I CAN'T BELIEVE THIS!!!
I followed the wikipedia link codejoust posted and found another wikipedia link in that page SMPP Protocol which lead me to the official open source protocol for SMS. It is written in Java but I shall be the first to convert it to php. So it is totally possible to send free SMS and will republish code when finnished as the licence says I'm allowed to redistribute it as long as it has their copywrite notice. This is so exciting.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You May Use This Code for Destroy Your Login Session and Create a logout Page. Use the Below Specified Code it's Work Greate for me:

Accept becraig isn't using sessions. becraig is removing the elements of the post and url variables which together form $_REQUEST.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I expected such talk from a newbie whose only knowledge is most likely windows packages. From an expereinced poster like you and more so a very good programmer who understands the computer inside out using Linux should be relatively easy!!!

I guess that's what books and the internet are for. I read a lot of that to know where everything is. But yes, at first Ubuntu can be scary if you haven't done your research but the same applies to windows. The difference, more people know windows inside out so it is easier to just ask the person beside you about Windows than it is to read a manual about Linux.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

There was a bug in your code. Try the following:

unset ($_REQUEST['login']); //quote fixed
header ("Location: http://www.mysite.com/mypage.php");
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try replacing line 11 with the following:

$file[] = str_replace(" ","_",$_POST[$files1]);
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try on line 34 the following code and tell us the results:

echo '<xmp>'; print_r($file_names); echo '</xmp>';

That should dump the keys and values of the array. They don't always have numbers between the brackets.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well if you have uploaded your php files to the web server, then just type the address (example: www.yoursite.com/index.php) into your browser and the script should run. If however it shows your source code and random html code then it means that your server doesn't have php installed in which case you would need to choose another service company.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

In these three functions, you can filter to a url to just the domain name. There are three main methods of doing so which are all shown in the example and the usage of each function is shown in the example.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So there's no need to get defensive Linux users. There are things in Linux which are great and there are things in Linux that absolutely and completely suck. That's just the way it is.

I agree on the command line side of things but when using the GUI, it is just as easy as windows especially if you have Ubuntu which feels like Windows. The thing that makes Ubuntu easy is that part of the GUI for installing programs. Now that's handy and automatically selects required modules.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I believe it is the break; code in the switch statement. That is why I suggested replacing it with an if statement. But obviousley there is something fishy going on with the $returnCode variable.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Weird. Should have worked. :?:
Below is another piece of code you can try and hopefully it should work.

$returnCode = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);
        if ($returnCode!=='200' || $returnCode!==200 ||$returnCode>200 || $returnCode<200
|| $returnCode!==(int)200 ||$returnCode>(int)200 || $returnCode<(int)200){
                $result = 'ERROR -> Status '.$returnCode;
        }
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I tested it and it worked in my tests but worked too well. It only reports 404 errors and if you got a 500 error then it would not be reported.

$returnCode = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);
        switch($returnCode){
            case 404:
                $result = 'ERROR -> 404 Not Found';
                break;
            default:
                break;
        }

Replace the above with the below:

$returnCode = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);
        if ($returnCode!==200 || $returnCode!=='200'){
                $result = 'ERROR -> Status '.$returnCode;
        }
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Couldn't you send emails using the wireless provider's gateway?
usernumber@wirelessprovider.tld?

Well the thing is that theoretically it should be possible for php to send the SMS without any external dependencies including email and curl. I know that sockets would be involved. But the question is how to make a custum function library the sends+receives SMS's just like how the mail() function sends emails without another company involved. And I know that I should be able to do this intirerly in php as sockets is designed for this sort of stuff.

So in basic I'm looking for a php script that sends and receives SMS messages where php directly communicates with the SMS protocol (not an api) and no external server, no external companies and no email involved.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Thanks for that sknake and that info should be in a pinned topic if not already.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Partial bug. Whenever I post in code tags it seems to use the forum syntax. However this is not the same with all other members. Below is a link to an example post and if you check the bbcode source it shouldn't have any syntax highlighted.
http://www.daniweb.com/forums/post981558.html#post981558

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If it returns the following and never returns 404 then that would make the switch statement useless.

Total time for request: 0.308465003967 XXXXXXXXXX3738246550#Messages Sent1

So I would suggest trying what I suggested in my previous post as it should work.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well now that you mention gateway provider, I guess you would say that this script I'm after acts as a gateway provider and has no external dependencies. I just need to know how.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

What does $returnCode actually contain?

$returnCode = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);
        switch($returnCode){
            case 404:
                $result = 'ERROR -> 404 Not Found';
                break;
            default:
                break;
        }

I would suggest replacing the above with the below if it just has a number.

$returnCode = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);
        if ($returnCode==404 || $returnCode=='404'){
                $result = 'ERROR -> 404 Not Found';
        }
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

i just need help in configuring the apache server and mysql

i have installed WAMP Server...
when i go to phpMyAdmin
i get this error :


Error
MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

thanks..

Is the above quote that latest error as I have solved server problems with many windows servers using xampp. So I can understand your troubles. When you receive that error with phpmyadmin it normally means the password has changed. Happened to me once. Turned out Wikimedia changed the password so if you've installed any php scripts, then your password may have been changed to whatever you specified under the mysql section of the cms installation. So to fix this you will need to first find the mysql password you set in the cms installation. Then when you have that password, go to the folder phpmyadmin/config.inc.php then in that file change the following variable:

$cfg['Servers'][$i]['password'] = 'new_password_in_here';

If you haven't installed any php scripts then you may need to do a command line to reset the root password or if you installed a cms (content management system) but can't remember the password then tell me what your cms is and I'll download a copy …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I can't believe my eyes! At last I can post into the code snippets section. That's a great feature and will use it!

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Does anybody know how I would use sockets to tap into the SMS protocol for sending+receiving SMS messages. Basically, all I want to be able to do is setup a php script that will be able to act as the SMS server and send+receive the SMS's directly through the SMS network. But I don't want to send it to an sms provider as I'm trying to make my script the sms provider. Does anybody know how to do this because I don't even know how the sms protocol works.

kvprajapati commented: Good question! +14
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well if for example say $row['F_Name']="http://example.com/gallery/gallery.php" then you would use the following:

echo '<a href="'.$row['F_Name'].'?variable='.$variable.'&id=2'.'">Link title</a>

Then in that page you linked to place the following code

echo $_GET['variable'];
echo '<br>';
echo $_GET['id'];
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

print '<p class="sansserif"><b>Song title : </b> <a href="'.$lyrics.'">'.$title.'</a><br />';

That line is incorrect and you will need to use something like the following if you haven't got a .htaccess file:

print '<p class="sansserif"><b>Song title : </b> <a href="index.php?id='.$title.'">'.$title.'</a><br />';

The above code assumes your code is in index.php and to retrieve the title in the url, use the variable $_GET

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have just checked+tested your script and your for loop works perfectly. However the 2 breaks; in your switch command may be prevent the for loop from working. I would suggest finding an alternative to using the switch command.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try the following code:

<style type="text/css">
A:link {font-weight:bold; font-family:"Arial";}
A:visited {font-weight:bold; font-family:"Arial";}
A:active {font-weight:bold; font-family:"Arial";}
A:hover {font-weight:bold; font-family:"Arial";}
</style>
<?
$number_of_pages=100; //maximum number of pages
$current_page=50; //set the current page probably with $_GET
for ($i=1;$i<=$number_of_pages;$i++) {
    if ($i<11) {
        echo ($i>1)? ' - ':''; // add dash between numbers.
        echo '<a href="index.php?id='.$i.'">'.$i.'</a>';
        }
    if (($i>=($current_page-1) && $i<=($current_page+1)) || $i>=($number_of_pages-2)) {
        echo ' - <a href="index.php?id='.$i.'">'.$i.'</a>';
        }
    }
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Actually it should be as follows:

<option value="0"   <?php echo ($installtype == "0" || $installtype == 0) ? "selected" : ""; ?> >Install with CPanel Info (can create  MySQL  DB  automatically)</option>
darkagn commented: Well spotted! +6
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Email sent

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Please give a detailed error message expaining when you get html vs plaintext mail, which emails it happens for, and please show me the contents of the email and email headers.

I have taken a screen shot of an email for a forum subscription and is attached to this post. (I blanked out personal details in black) It shows how instead of showing a styled email, there is all this html code.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Two bugs that I have found. One is that the emails sometimes show the raw html code instead of displaying the styled content. Could this be possibly something to do with the email headers.

Also when viewing daniweb in the Opera browser, there is a minor bug with the bottom border. The bottom border is separated from the main page with a gray gap. However in Internet Explorer this isn't the case. I have attached a pic to help explain.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well-duh-AD, you're using the wrong distro. You need Dettu[Xx], if you want simplicity.

Is that a joke? I did a google images search and found this and that. Doesn't look very simple to me. Looks like something between a Mac and Unix.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well then wouldn't that make only one true version of linux? The one approved by Linus Torvald.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

No. It was intended to be an educational project for Linus Torvalds and it took off when he started showing it around:

I just read Linus Torvalds wikipedia article and it looks like the only Operating Systems that are true linux are controlled by an authority with Linus Torvald onboard as Linus Torvald is part of the authority for what code goes in. So basically if Linus Torvald isn't in charge then it ain't linux. I would have to do a bit of research to find out exactly what versions of linux Linus Torvald controlls.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Wizards are a great feature so long as one also has the option to use command lines for advanced configuration - the one area wizards tend to be less tuned for. Even in Windows - which has a wizard for just about anything - one can use command prompt (or even RegEdit) for tweaking and hardcore fixes and troubleshooting. Hiding those tool-sets away, or completely locking them under the hood is never a good thing. JMO

Wasn't the whole point of Linux to replace the Unix command line with a GUI. Because when I think of Linux, I think of Unix with a GUI. I believe that Linux to be called Linux doesn't need a command line - just a GUI to replace the Unix command line. By saying that I am not saying all of the above in this post is what actually happens but is what I currently believe.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

put <?php echo $form->value("title"); ?> before<select name".....

and when you select e.g. Mr title you see before <select box Mr value, I think I need something like if option value == my selection e.g. Mr make this value selected.

I just checked your code and it appears that there is no method/function called value. So perhaps you still need to programme in the value() method.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Your code is good, but I need a suggestion on how to integrate the code to the lookup tables (which contain similarity)
thanks

Well I'm not sure if I can do much more on this topic but all the hard code I have posted in post #11. And as for how to do it. It should be just as simple as adding a bunch of lines of code into my script (post #11). But what those lines should be I'm not sure because you haven't go an easy database structure. But I noticed that I seem to be the only one replying to this topic. I wonder why? Perhaps somebody else could continue on with this topic as I am finding it difficult to understand the database structure. Good luck though. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I just check the picture you sent and it has 12 searchable fields where as the mysql database has only 10 fields. How is that suppose to work? Also what might make this a lot easier since how you have a picture is if you write ontop of each box in the picture what mysql column the input box is meant to refer to because this is becomming a mind warp.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well one of the things that I like about Ubuntu that I find hard with some other distributions that that it is easy to use. Is easy to use a bad thing because more complex=better? Also with Ubuntu you don't ever need to use a single command line. So are all these easy to use features what makes Ubuntu so bad? I might stay with Ubuntu because as it is I'm finding it difficult to setup a CentOS server in a Virtualbox where as Ubuntu has a wizard like tool (Synaptic Package Manager) that allows easy install with a GUI. Now that's what I call a good feature unlike those other versions that force you to use the command terminal.

kvprajapati commented: Of course it is. +13
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try replacing line 42 of include/session.php with the following

$subtitle = trim($subtitle)
      if(strlen($subtitle) == 0){
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would suggest spreading the pictures over a couple of pages. This technique is called pagination. It would be better to spread the pictures over a few pages because using Ajax or Iframes will greatly reduce your search engine ranking. Also try resizing the pictures to half the size then get the browser the set to the correct size with the width= and height= tags.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

My thought is any pc on the intranet will have a range in the same numbers

Well all the internal ip address have the same first three number but the last number varies (eg. 123.234.345.xxx). Then in the last number, I think it starts at 100 and counts up. So say your first machines ip address was 123.234.345.100 (and the first machine allways has 100 at the end) then the following ip addresses are the next 10 machines on the network

123.234.345.101
123.234.345.102
123.234.345.103
123.234.345.104
123.234.345.105
123.234.345.106
123.234.345.107
123.234.345.108
123.234.345.109
123.234.345.110

As I mentioned earlier, it is possible for a hacker to pretend their ip address is any of those internal ip addresses so they can gain access that is why I would suggest using at least a password for the admin section. Hope that explains it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

XAMP is very nice!
See this two links:
- Documentation About XAMP
- IBM - Install XAMP

Hope it helps!

I agree with you that xampp is nice but it is just that the latest version has some problems and can't even be installed without this error as has been posted before. There for those links you've posted do not have much use in relation to this topic. So untill a new version of xampp comes out with the problem fixed, I would strongly suggest to either get an older copy of xampp or download wamp.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The first thing you must figure out is what IP the intranet is going to read, whether it be internal or external IP.

Once you have found this out then it will be easier to use the IP to refer. If it reads internal then it is most likely you need PHP to do a lookup on an IP range.

Well actually php can only detect the external ip address. So basically the ip provided by the isp is the ip that php receives. I would suggest running a test script such as the following:

<?php
if ($_SERVER['REMOTE_ADDR']=='69.245.218.248') {
    header('Location: http://www.turnstone.org/employee2/index.html');
    } else {
    file_put_contents('iplog.txt',$_SERVER['REMOTE_ADDR']);
    header('Location: http://www.turnstone.org/notatoffice.html');
    }
exit;
?>

Then see what ip address is placed in that text file. This will determin what ip address should be placed in the if statement. Also note that using just an ip address to separate the admin section is not secure because somebody can foward their ip through your computers ip address allowing others to gain access.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Haha, it makes a fun game that hearing test. Might try it again to see if I can beat my score.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Could you please explain in more detail what each column does. What I so far get is that there is one table per keyword box and the simularity field is times by the keyword strength and the id field is the linker between the lookup table and the lessonplan table. What I dont get is what are the fields 'query' and 'case' used for?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would suggest first doing a defrage then a checkdisk and see what happens then. The defrage can be found on the Start menu. In xp is in Start -> All Programs -> Accessories -> System Tools -> Disk Defragmenter

Then checkdisk you will need to google for the appropriate command line.