1,376 Posted Topics

Member Avatar for sarithak

[QUOTE]All of the above[/QUOTE] I believe you's are all doing it wrong other than using the timezone function. There are two ways to achieve this result. One is the date_default_timezone_set() function and the other is the ini_set() function. So I would strongly suggest placing the following code at the top …

Member Avatar for Member 784564
-2
649
Member Avatar for faizabest

Also make sure you have the latest version of apache as older versions of apache are not compatible with windozer 7

Member Avatar for faizabest
0
119
Member Avatar for cwarn23

Do you believe international animal rights laws should be introduced just like how there are human rights laws? IMO, clones are like animals since their not a creation of god or evolution and giving animals the same rights as humans would mean clones would also have the same rights as …

Member Avatar for GrimJack
1
453
Member Avatar for cwarn23

Happy independence day everybody! The day we won the battle against aliens invading area51. I'm celebrating it and yet I'm not even American. What did you do this independence day.

Member Avatar for GrimJack
0
108
Member Avatar for codewalkz

Could you please add comments into your code so I can see how your code relates to your context. As it is your code looks totally different to what you are describing so please add comments into the code to make it more clear then I may be able to …

Member Avatar for cwarn23
0
121
Member Avatar for shimurai

You have a video game on your server!!! Then what do you do, use remote desktop to play the game. I don't mean to be offensive but that seems rather odd. If I were you I would uninstall counter strike. But if you wish for your server to load a …

Member Avatar for cwarn23
0
244
Member Avatar for QWaz
Member Avatar for sajidk25

May I suggest to change the column type to bigint and instead of sending dates to mysql just sent the timestamp integer. Then you may use the php date function to retrieve it in any format.

Member Avatar for cwarn23
0
93
Member Avatar for MANASkumarverma

Or another option is to get javascript to store the information in a cookie. It is possible for javascript to make its own cookies containing up to 4KB of data.

Member Avatar for fxm
0
112
Member Avatar for tejasluvs

To my knowledge changing the page print settings for when a user prints a page is done by javascript and css as it is client side. There isn't much that php can do to change the page printout settings other then echoing the javascript/css code.

Member Avatar for tejasluvs
0
89
Member Avatar for MANASkumarverma

I believe it is php your wanting to use if the file is stored on the server. There is a nice function called file_get_contents() and file_put_contents(). Below is an example of how to use them. [CODE]<?php $file='path/to/file.txt'; $data=file_get_contents($file); echo '<textarea name="text">'; echo $data; echo '</textarea>'; if (isset($_POST) && !empty($_POST)) { …

Member Avatar for vibhaJ
0
52
Member Avatar for Grantism

Hi and welcome to daniweb. Could you please rephrase that in a way that directly addresses the problem your experiencing. It is hard to understand what the question is or what the problem is.

Member Avatar for vaultdweller123
0
176
Member Avatar for QWaz

Try the following: [CODE]<?php if (isset($_GET['y'])) { //do this } elseif (isset($_GET['x'])) { //do that }[/CODE]

Member Avatar for vaultdweller123
0
137
Member Avatar for ayesha25

It is probably just an incompatibility bug because php 5.3.x is riddled with bugs. As for starters I would suggest downgrading your php version to 5.2.13 after that your bugs will most likely disappear is php 5.3.x has a few oop bugs which your error relates to.

Member Avatar for cwarn23
0
55
Member Avatar for cwarn23

Hi all, I have ubuntu and just installed sqlite then edit the php.ini file accordingly but for some reason the class named ¨SQLiteDatabase()¨ reports as undefined. The error is as follows: [CODE]Fatal error: Uncaught exception 'SQLiteException' with message 'SQLiteDatabase::__construct() [<a href='sqlitedatabase.--construct'>sqlitedatabase.--construct</a>]: unable to open database: /var/www/vhosts/cwarn23/base' in /var/www/vhosts/cwarn23/php.php:3 Stack trace: …

Member Avatar for cwarn23
0
516
Member Avatar for PixelatedKarma

Do you have a function named username() and a function named password()? Or is it you have variables named $username and $password? At the moment on line 68 and 69 &username = username() function and &password = password() function which I'm guessing do not exist. So try the following: [CODE] …

Member Avatar for PixelatedKarma
0
116
Member Avatar for levsha

Hi and I'm back. Now as for the solution sessions do use cookies for user identification. So if cookies are disabled then sessions are disabled. However there is a work around without changing the php.ini file at all and is as simple as changing the url of pages with sessions. …

Member Avatar for Grantism
0
207
Member Avatar for b89smith

Could you please provide the related code and if your server has 32-bit Operating system or 64-bit. The example should be along the lines of the following. [CODE]<?php mysql_connect('localhost','root',''); mysql_select_db('my_database'); $r=mysql_query('SELECT * FROM `table`'); $data=mysql_fetch_assoc($r); echo $data['number'];[/CODE]

Member Avatar for cwarn23
0
95
Member Avatar for benhowdle89

I had this problem when making a search engine. The best solution is to make it run for a long period (say 8 minutes) and to schedule a cron job every 10 minutes. That way after 8 minutes your script will stop running then the server has 2 minutes of …

Member Avatar for cwarn23
0
105
Member Avatar for f_mansouri

Could you please put more information into your question as it is hard to understand. Please explain further.

Member Avatar for cwarn23
0
60
Member Avatar for QWaz

Try replacing line 31 with the following. [CODE]$done = $conn->prepare("INSERT INTO product_info (id, stock, brand, name, code, desc, story, cost, rrp, wt, size, top, fashion, active, lifestyle, sale) VALUES ('?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?')");[/CODE] That is assuming all of …

Member Avatar for cwarn23
0
146
Member Avatar for Froger93

It is fairly simple. The below two links will guide you through the process of using an external smtp server to send emails. [URL="http://blog.taragana.com/index.php/archive/how-to-send-mails-using-smtp-server-in-php/"]http://blog.taragana.com/index.php/archive/how-to-send-mails-using-smtp-server-in-php/[/URL] [URL="http://kb.siteground.com/article/How_to_use_Googles_free_SMTP_server.html"]http://kb.siteground.com/article/How_to_use_Googles_free_SMTP_server.html[/URL]

Member Avatar for servertoday
0
99
Member Avatar for WASDted

[QUOTE]That's just a few thousand miles away![/QUOTE] And on the other side of the globe with probably a days worth of flights to get there. I hope it is a great success because if I were in Manhattan then I would certainly join. Btw this is my post 2,222 on …

Member Avatar for happygeek
0
440
Member Avatar for Stefano Mtangoo

Here's a script from [URL="http://syntax.cwarn23.net/PHP/Pagination_made_easy"]this article[/URL]. [CODE=php]<?php $pages_left=3; $pages_middle=4; $pages_right=2; $total_pages=100; if (!isset($_GET['page']) && empty($_GET['page'])) { $currentpage=0; } else { $currentpage=$_GET['page']; } for ($p=0;$p<=$total_pages;$p++) { if ($p<$pages_left || $p>=($total_pages-$pages_right) || ($p>=($currentpage-floor($pages_middle/2)) && $p<=($currentpage+floor($pages_middle/2)))) { if ($p==$currentpage) { echo ($p>0)?' - ':''; echo '<b>'.($p+1).'</b>'; } else { echo ($p>0)?' - ':''; …

Member Avatar for Stefano Mtangoo
1
127
Member Avatar for Nile Hadwards

[QUOTE=chrishea;1113826]I believe that they deserve to be rated highly.[/QUOTE] Not always. Just Host was rated as the Number 1 Australian webhost and I would rate them as somewhere near the bottom. Sometimes the ratings are done by the webhost meaning the ratings are not always accurate.

Member Avatar for jenyroger
-4
310
Member Avatar for veledrom

Try checking the comparison table located at [URL="http://www.alledia.com/blog/general-cms-issues/joomla-and-drupal-which-one-is-right-for-you/"]http://www.alledia.com/blog/general-cms-issues/joomla-and-drupal-which-one-is-right-for-you/[/URL]

Member Avatar for peter_budo
0
135
Member Avatar for TexITTech

The programs you require are notepad++ which is a great text editor with a syntax highlighter and for testing use wamp localhost server. Also for java apps netbeans is an easy to use app maker. As for which languages you require they are javascript, java, php, ajax, html and css.

Member Avatar for WoW Me Web Girl
0
155
Member Avatar for Stevishere

The only thing I could suggest is to put a big button saying "Click Here To Exit" the same size as the thread reply button. Surely even the blind would see that and hopefully would stop these odd complains about the signup window.

Member Avatar for Nick Evan
0
365
Member Avatar for cwarn23

Hi, I just come back from a long time with a broken internet and now I see a new design on daniweb. Is it just me or do you for some parts of text need to squint and other parts move to the opposite end of the room to read? …

Member Avatar for Froger93
0
249
Member Avatar for muralibobby2015

When redirecting them in the first place add into the redirect url [ICODE]"login.php?url=".urlencode(/path/to/page/from.php);[/ICODE] Then on the form you place in the action= parameter the above path which is now in the $_GET tag.

Member Avatar for Girish24041984
0
250
Member Avatar for cwarn23

Hi, I have a script which is meant to use all of my servers cpu but mysql will only use one core. I have 8 cores but only 1 core is being used. Does anybody know how to allow mysql to use multiple cores? -------- Second question How do I …

Member Avatar for sourcebits
0
79
Member Avatar for cwarn23

Hi, I just received my Ubuntu machine with 3.2GHz 7 core but now I need to install SQLite. Does anybody know where SQLite gets installed in Ubuntu or where itÅ› portable database files are stored as the php cms phpSQLiteAdmin requires me to copy a database file into the database …

Member Avatar for finito
0
90
Member Avatar for cwarn23

Just out of curiosity where did the name Bing for Microsoft's search engine come from. Did they pronounce C sharp like an instrument crossed with programming. I'm not sure and thought I would start a topic to share thoughts on Bings name.

Member Avatar for Ene Uran
0
217
Member Avatar for Stefano Mtangoo

I prefer to make my own so that way it is guaranteed to be secure and with all the features I need. And the process of making the template is fun too. But if I ever need to scratch out a quick cms then I would use mediawiki with custom …

Member Avatar for mschroeder
0
92
Member Avatar for tustind

[CODE]RewriteEngine On RewriteRule ^/?articles/([0-9]+)/([a-zA-Z0-9\-]+)$ /article.php?id=$1 [L] RewriteRule ^/?articles/([0-9]+)/([0-9]+)/([a-zA-Z0-9\-]+)$ /article.php?id=$1&page=$2 [L] RewriteRule ^/?topics/([0-9]+)/([a-zA-Z0-9\-]+)$ /topic.php?id=$1 [L] RewriteRule ^/?topics/(.+)$ /sub-topic.php?topic=$1 [L] RewriteRule ^/?authors/([0-9]+)/([a-zA-Z0-9\-]+)$ /author.php?id=$1 [L] RewriteRule ^/?authors/([0-9]+)/([0-9]+)/([a-zA-Z0-9\-]+)$ /author.php?id=$1&page=$2 [L] RewriteRule ^/?preview/([0-9]+)/([a-zA-Z0-9\-]+)$ /preview.php?id=$1 [L] RewriteRule ^/?preview/([0-9]+)/([0-9]+)/([a-zA-Z0-9\-]+)$ /preview.php?id=$1&page=$2 [L] ErrorDocument 400 /error?id=badrequest ErrorDocument 401 /error?id=authreq ErrorDocument 403 /error?id=forbidden ErrorDocument 404 /error?id=notfound ErrorDocument 500 /error?id=server[/CODE]

Member Avatar for tustind
0
140
Member Avatar for Encrypted

Try replacing the meta on line 10 with the following: [CODE]header('Location: '.$HTTP_SERVER_VARS['PHP_SELF'].'?id='$orderID); exit();[/CODE]

Member Avatar for Encrypted
0
100
Member Avatar for customtshirts
Member Avatar for BestJewSinceJC
-7
253
Member Avatar for stu9954

Try this: [CODE]<html> <head><title>My Portfolio</head> <body bgcolor='#f1f1f1' text='#000000' link='#33cc00' alink='#33cc00' vlink='#33cc00'> <table align='center' width='95%' bgcolor='#FFFFFF' style='border-color:#999999;border-style:solid;border-width:1px' border=0> <tr> <td align='center'> <table width='100%'> <img src='images/logo.png'> </td> </tr> </table> </table> <br> <table align='center' width='95%' bgcolor='#FFFFFF' style='border-color:#999999;border-style:solid;border-width:1px' border=0> <tr> <td align='center'> <table width='100%'> <font size='2' face='arial'><a href ="home.php">Home</a> | <a href ="2.php">Blog</a> | …

Member Avatar for rajarajan2017
0
108
Member Avatar for JerieLsky

try this: [CODE]<table> <?php while($assoc_latestJobPost = mysql_fetch_assoc($latestJobPost)) { ?> <tr> <td><?php echo $assoc_latestJobPost['jobTitle']; ?></td> <td><?php echo $assoc_latestJobPost['jobCategoryID']; ?></td> <td><?php echo $assoc_latestJobPost['postDate']; ?></td> <td><?php echo $assoc_latestJobPost['employerID']; ?></td> </tr> <?php } ?> </table>[/CODE] where $latestJobPost being assigned by the mysql_query() function.

Member Avatar for rajarajan2017
0
113
Member Avatar for Explosivo22

[CODE]if (file_exists($path)) { //or loop through files foreach (glob("*.txt") as $filename) { echo "$filename size " . filesize($filename) . "\n"; } [/CODE]

Member Avatar for rajarajan2017
0
74
Member Avatar for vikas.gupta

PHP is a server side Pink Hypertext Preprocessor. Basically php processes content stored on the server before it is presented to the user. To get php you can google xampp or wamp and will allow you to view php files on your computer. As for dreamweaver, don't use it.

Member Avatar for Elemen7s
-2
99
Member Avatar for cwarn23

Hi, I am glad to announce the release of the PHP robot which stores information from daniweb topics to answer questions. You may view my bot at [URL="http://chat.cwarn23.info/"]http://chat.cwarn23.info/[/URL] and it can answer all sorts of questions. In addition you can chat to other people who are online at the time. …

Member Avatar for diafol
0
142
Member Avatar for Stefano Mtangoo

I agree with Gresham but beg to defer on the code an not concept. Example: [CODE]function truehash($input) { return hash('sha1',substr(hash('sha1',$input),4,-4).hash('crc32',$input)); }[/CODE]

Member Avatar for Stefano Mtangoo
0
140
Member Avatar for hknight

Could you provide a better description of your code (perhaps php comments) and describe in more detail why you can't do it. The theory behind it is you search through to inbox in a loop then as you retrieve them the messages go through an if statement and if that …

Member Avatar for cwarn23
0
892
Member Avatar for benk1

Well you should be able to delete entire sections of your php.ini file and delete the extensions you don't want from the php.ini and from the file system but remember to keep the dependencies. That is some dll's rely on others. The dependencies documentation can be found at php.net. Also …

Member Avatar for benk1
0
273
Member Avatar for LittleMeemz

I see a bug in your code and try each of the following: [CODE]if(isset($_POST['checkbox1'])) { echo '<p>Send me medical updates about mammography.</p>'; echo '<input type="checkbox" name="checkbox1" checked="checked" value="YES">'; } if(isset($_POST['checkbox2'])) { echo '<p>Keep me connected with the latest blog posts.</p>'; echo '<input type="checkbox" name="checkbox1" checked="checked" value="YES">'; } if(isset($_POST['checkbox3'])) { echo …

Member Avatar for LittleMeemz
0
125
Member Avatar for rustifer

Hi and welcome to daniweb. Could you please edit your post and add code tags. Also as for the solution change the second last line to the following: [CODE]$sql_email_check = mysql_query("SELECT email FROM mymembers WHERE email='$emailCHecker'") or die(mysql_error());[/CODE] Then tell me what error that reports.

Member Avatar for rustifer
0
233
Member Avatar for muralibobby2015

Could you please make this question clear. Are you trying to place an exel file into a database or are you trying to extract the data from excel and place that data into mysql with php?

Member Avatar for cwarn23
0
96
Member Avatar for leeZA1

Try this: [CODE] // code to generate drop down box $query="SELECT title FROM content ORDER BY title ASC"; $result = mysql_query ($query); echo "<select name=title value=''>Title</option>"; while($nt=mysql_fetch_array($result)){ echo "<option value=\"$nt[title]\">$nt[title]</option>"; } echo "</select>"; //on the next page where its deleted the code is... // we have something to delete $SQLcmd …

Member Avatar for leeZA1
0
100
Member Avatar for computerfox

When using sessions you need to always place the session_start(); function on the first line of your script before any html or new line output. So delete that new line at the beginning of your file and place at the top the following: [CODE]<?php session_start();[/CODE] That will enable sessions to …

Member Avatar for cwarn23
0
76

The End.