- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 24
- Posts with Upvotes
- 23
- Upvoting Members
- 20
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
231 Posted Topics
Re: First, make sure that the file is saved with a .php extension. Then try this: [CODE]<?php echo date("I F d, Y"); ?>[/CODE] It could be that the uppercase "D"ate is causing the issue. Also, you are using short tags <? ?>. Some server configurations do not allow this. Instead, always … | |
Re: Finding a secure hash function is quite a challenging and often overlooked task, so thanks for this share! I haven't tested this yet, but I'm sure this will come in handy for many of us. | |
Re: Look here: [url]http://api.jquery.com/load/[/url] Depending on how often you want your feed to be updated you could use a Javascript setInterval() function to repeatedly call the .load ajax feed. Here is something I've used in the past (to update a price of an item every couple of seconds). [CODE] <!DOCTYPE html> … | |
Re: Hi there, I have no idea what that error code is referring to. But I'd recommend checking the values within the arrays you're trying to plot from. I'd use FusionCharts with PHP for really good charts and documentation. | |
Re: So what are you trying to do? From the title of your post it seems you're trying to create a table in a database, but your code is just printing data from your database? ![]() | |
Hey, I am having a really annoying problem when trying to set up a foreign key in my database... I have two tables - Sell and Category I want the 'c_id' from the Category table to be the foreign key for 'p_id' in the Sell table. Both tables are InnoDB … | |
Hey guys, I have this code which grabs categories from my category table of the database and populates the category drop-down box. I was hoping someone could tell me how I could populate the second drop-down box depending on what was selected in the first box. E.g. If "Networking" is … | |
Re: It depends on your directory structure. Issue this command to find your base directory: [CODE]~# cat /etc/apache2/sites-available/default | grep DocumentRoot[/CODE] For example, if your document root is set as /var/www/htdocs Then the URL localhost/phpmyadmin would mean that the phpmyadmin folder is located in /var/www/htdocs. If the phhpmyadmin folder isn't in … | |
Re: Look here: [url]http://jqueryui.com/demos/datepicker/[/url] They have written the code for you. You need a copy of jquery and the jquery UI. See here for how to get them: [url]http://jqueryui.com/docs/Getting_Started[/url] [CODE] <!DOCTYPE html> <html> <head> <link type="text/css" href="css/themename/jquery-ui-1.8.16.custom.css" rel="Stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script> <script> $(function() { $( "#datepicker1, #datepicker2" … | |
Re: The answer: "Straight FTP is, by nature, quite insecure, since neither the authentication nor the traffic are in any way encrypted." I'd use SSH/SCP or SFTP instead: [URL="http://mobaxterm.mobatek.net/"]MobaXterm[/URL] is one of my personal favourites. Or you could try WinSCP which allows you to select which protocol you want to connect … | |
Re: I think you could use chown to set apache as the owner/group of /var/www This post seems to answer your question rather well: [url]http://serverfault.com/questions/6895/whats-the-best-way-of-handling-permissions-for-apache2s-user-www-data-in-var-w[/url] | |
All, I have an issue with my web server, relatively minor but something that has been bugging me: I have two systems, both running the same spec OS, software etc... I use one as a dev server and the other as a production server. The webpage I am rendering on … | |
Re: Can you not change the 'ID' attribute to a 'Class' attribute? | |
Re: The following links may be of interest (If you are using Apache web server): [url]http://evolt.org/node/22880/[/url] [url]http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html[/url] | |
I have a foreach loop, within which I would like to create x number of unique variables. E.g. Upon each iteration I'd like to create a new variable like: $strDisk1 = ... $strDisk2 = ... $strDisk3 = ... I have tried the following but this does not work: [CODE] <?php … | |
Re: Take your pick... [url]http://www.tripwiremagazine.com/2010/02/15-jquery-plugins-to-create-stunning-image-zoom-effects.html[/url] | |
Re: Depending on what browser you are using, I'd recommend installing a browser extension so that you can get some sort of log message to show what part of your js code is failing. I use the [URL="https://chrome.google.com/webstore/search?hl=en-GB&q=developer+tools"]developer tools[/URL] compatible with google chrome. Firebug is another good alternative. In addition, you … | |
Re: Go to your root directory: [CODE]# sudo find . | xargs grep -i 'NameOfFunction'[/CODE] grep is the tool to use. | |
Re: By default, the original HTML you posted: [CODE] <html> <a href="http://www.daniweb.com">daniweb</a> <a href="http://www.daniweb.com">daniweb 2</a> </html> [/CODE] Does display: [CODE]Daniweb daniweb 2[/CODE] | |
Re: Where in the line of text do you need the space? Can you provide some example text. | |
Re: Cookies are available on the client-side, so they can be seen from the browser. Sessions are stored on the server, and are never sent to the client (except if you write some cludge to do that). If sessions were stored on the client-side, I don't believe your PHP code would … | |
All, I have two tables. TABLE A TABLE B 1 1 2 2 3 3 4 4 These tables have links in the database. I.e. Table A id 4 can be linked with table B id 2. Or table B id can be linked with an id in table A) … | |
Re: Make sure you have the relevant driver for your dongle/wifi card. Also make sure that the card manufacturer has driver support for your distro. You can usually find out on the manufacturers website. Here are some [URL="https://help.ubuntu.com/community/WifiDocs/WirelessTroubleShootingGuide"]helpful pointers[/URL]: [CODE]With your computer turned off, insert your wireless adapter into a suitable … | |
Hi there, I am in the process of implementing draggable/droppable interaction using the JQuery UI. This is something that I have very little experience with so please be gentle. I can drag and drop using <tr> elements which looks great, but I need to get the <tr> attributes (perl variables) … | |
Re: There is a syntax error in your configuration file. You should be using /usr/local/apache2/sites-available/default to configure the directives in apache. But it looks like you have edited httpd.conf. Perhaps you are using a deprecated directive? Can you post lines 60-70 of httpd.conf so I can have a look. Have you … | |
Re: Try using: [CODE] sudo apt-get install libapache2-mod-auth-cas [/CODE] then use the command below to enable the module [CODE]a2enmod auth_cas[/CODE] restart the apache server [CODE]/etc/init.d/apache2 [/CODE] and you should be golden | |
Re: try using the COUNT() function in MySQL. Replace 'record_id' with the name of the column in your table. [CODE]$query = mysql_query("SELECT COUNT(record_id) AS counter FROM table"); $result = mysql_fetch_assoc($query); echo "Sent to $result['counter'] People <br>"; [/CODE] | |
Re: I believe the chmod command will only work on a Linux-type OS's whereas you're using XAMPP for Windows. 1. Navigate to this directory $mapbeschrijving/$slides 1/slides or whatever it is (The directory you are attempting to write the file to), 2. Right click on directory -> select properties -> you should … | |
![]() | Re: I think it's because your db connection code is only being called in the first else condition. Move include('db.php'); near the top of the file (outside of any if/else condition) ![]() |
Re: Have you tried [CODE]sudo iwlist scan[/CODE] Or if not, there may be some gui options available in network-manager? | |
All, I have a simple question. What is the standard procedure for retrieving form values via POST method in a web form? Perl can be extremely awkward for web programming, I'd normally use something else, but in this case I need to use Perl for the CPAN module. Anyway, back … | |
Re: Your post isn't too clear. If POST works, then why are you changing it to GET? Can you include your html form as this would make things clearer? [CODE] <form name="user" action="page.php" method="POST"> <input type="text" name="textfield"> <input type="submit" name="sub" value="Login"> </form> [/CODE] [CODE] <?php if(isset($_POST['sub'])) { if(isset($_POST['textfield'])) { $q = … | |
Re: Issuing a command prefixed with sudo means that you're issuing the command as the 'root' user. (Which gives you the proper privileges to invoke the command.) E.g. You won't be able to write to any files in the root file system '/' /(/etc /usr) unless you have root access. This … | |
Re: unexpected T_CASE means you have a case statement that has somehow become disconnected from it's switch. Are you showing the whole switch statement in the code you posted? A switch statement should be formed as follows (Taken from the [URL="http://php.net/manual/en/control-structures.switch.php"]PHP manual[/URL]): [CODE]switch ($i) { case 0: echo "i equals 0"; … ![]() | |
Re: There's no command that I know of that will do this. Unless you can find a tool/log analyser to do the leg work, you'd have to write some scripts yourself to achieve what you want, and it may require a considerable amount of work to implement. This maybe of some … | |
Re: -Click YouTube Video Download If you're using Mozilla Firefox, then you can install this add-on [url]https://addons.mozilla.org/en-US/firefox/addon/1-click-youtube-video-download/[/url] | |
I have added a png image to a table in the database as a BLOB. Adding the image into the database is trivial. However, being able to display the BLOB back to the .png image format is bewildering me. Examples are hard to come by... How to display the BLOB … | |
All, I have been trying to debug this problem all weekend but I haven't been able to get any closer to the solution... I have just upgraded Mysql to 5.1 from 4.1 on a Red Hat 4 box. Everything is fine. I can connect to the database using the shell, … | |
Re: I'm not 100% sure what you're trying to do, but this old thread may help with parsing your html: [url]http://www.daniweb.com/web-development/php/threads/316425[/url] | |
Re: Depends what OS you're using. Also, I don't think any Linux distro stores 'ALL' network information in one place. It all depends what aspect of the network you want to configure. E.g. DHCP, DNS, NIC. Tell me what OS you're using and I'll be able to advise further | |
Howdy, I have a basic html file containing certain data I need to extract. This is the code for just one of the tables on the page: [CODE]<TABLE title="Left Magazine"class="dataTable" align="center" cellspacing="0" cellpadding="0"> <caption>Media Details</caption><THEAD><TR class="captionRow"><TH>Slot #</TH><TH>Attn</TH><TH>Status</TH><TH>In Drive</TH><TH>Label</TH><TH>Media Loads</TH><TH>Comment</TH></TR></THEAD> <TBODY> <TR class="altRowColor" > <TD>1 </TD> <TD> </TD><TD>Full, Gen. 3 </TD> <TD> </TD> … | |
Re: use [URL="http://www.debianhelp.co.uk/ddcommand.htm"]dd[/URL] for creating a large backup, otherwise just use a simple cp command, Copy /homedirectory/filename to /yourflashdrive/filename: [CODE]cp /home/filename /media/sdb1/filename[/CODE] | |
| |
Re: Hi there, I'd use [URL="http://www.fusioncharts.com"]FusionCharts[/URL]. They have great [URL="http://www.fusioncharts.com/docs/"]documentation[/URL] Your code would be something like this: [CODE] <?php //We've included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("../Includes/FusionCharts.php"); ?> <HTML> <HEAD> <TITLE> FusionCharts - Array Example using Single Series Column 3D Chart</TITLE> <SCRIPT LANGUAGE="Javascript" SRC="../../FusionCharts/FusionCharts.js"></SCRIPT> </HEAD> … | |
Re: Disabling the microcode update for your machine should stop this error: [CODE]/sbin/service microcode_ctl stop /sbin/chkconfig --del microcode_ctl[/CODE] | |
Re: [QUOTE=deolalkar_pooja;1484482]Hi to all, i created following table in SQL. =================================== create table employee(name varchar(20), dob date) =================================== But, when i ran the query, i got the massage that 'SQL can not find data type 'date''. How should i include 'date' in to table definition.[/QUOTE] You have a number of options. … | |
Re: [CODE]SELECT MAX(age), name FROM man WHERE city='mumbai';[/CODE] should work? | |
Re: This should get you started. The code is from this tutorial which I used when I created my first login script. Obviously it will require some editing for connecting to your database and retrieving user information from your tables etc. I'd also look into using a stronger encryption algorithm for … | |
Re: First try creating a symlink to the correct module. [CODE]sudo ln -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled[/CODE] Then you can edit your /etc/apache2/sites-enabled/xxxxx file to allow ssi functionality [url]http://httpd.apache.org/docs/current/mod/mod_include.html[/url] [url]http://steveyoung.wordpress.com/2007/02/[/url] |
The End.