mexabet 49 Good Learner

I'm coding a registration form that includes a file upload field. Basically, there are two queries that need to be simultaneously inserted into a database. But unfortunately, I don't know how to do it. So, I need your help.

if ($my_upload->upload()) { // new name is an additional filename information, use this to rename the uploaded file

            query(sprintf("INSERT INTO users SET userimage = '%s'", $my_upload->file_copy));

        }

        }



        // end of file upload part



        if (!empty($_POST["username"]))

        {

            $result = query("INSERT INTO users (firstname, lastname, username, usersex, hash, email) VALUES (?, ?, ?, ?, ?, ?)",

            $_POST["firstname"],

            $_POST["lastname"],

            $_POST["username"],

            $_POST["usersex"],

            crypt($_POST["password"]),

            $_POST["email"]);
        }
mexabet 49 Good Learner

You have to use the foreach statement to populate the form via autocomplete. Eg:

<?php
                    foreach ($stocks as $symbol)
                    {
                        printf("<option value='$symbol'>" . $symbol . "</option>");
                    }
                ?>
mexabet 49 Good Learner

@veedeoo,
A million thanks for agreeing to help me out. I've just donated a little sum to the Daniweb cause. I downloaded the the latest upload_class.php from

http://www.finalwebsites.com/snippets.php?id=7

However, I think the code need to be updated to the PHP 5.5 version. As follows is the upload_class.php:

<?php 

/*

Easy PHP Upload - version 2.33

A easy to use class for your (multiple) file uploads



Copyright (c) 2004 - 2011, Olaf Lederer

All rights reserved.



Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:



    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

    * Neither the name of the finalwebsites.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.



THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, …
mexabet 49 Good Learner

@veedeoo,
You're totally correct; the class was written for a very old version of PHP, and the thought has always worried me. However, I'm not fluent enough to rewrite class.

Can you or any other person help me out, even if at a cost?

mexabet 49 Good Learner

Thanks, but I need to get the script I posted to work, as it works on a site I know.

mexabet 49 Good Learner

@gabrielcastillo,
Thanks for your contribution. The form is as follows:

<form enctype="multipart/form-data" action="register.php" method="post">

    <fieldset>

        <div class="form-group">

            <input autofocus class="form-control" name="firstname" placeholder="First Name" type="text"/>

        </div>

        <div class="form-group">

            <input autofocus class="form-control" name="lastname" placeholder="Last Name" type="text"/>

        </div>

        <div class="form-group">

            <input autofocus class="form-control" name="username" placeholder="Username" type="text"/>

        </div>

        <div class="form-group">

            <select autofocus class="form-control" name="sex" value="sex">

                <option value="Male" selected="selected">Male</option>

                <option value="Female">Female</option>

            </select>

        </div>

        <div class="form-group">

            <input class="form-control" name="password" placeholder="Password" type="password"/>

        </div>

        <div class="form-group">

            <input class="form-control" name="confirmation" placeholder="Confirm Password" type="password"/>

        </div>

        <div class="form-group">

            <input autofocus class="form-control" name="email" placeholder="Email" type="text"/>

        </div>

        <div class="form-group">

            <input autofocus class="form-control" name="userimage" placeholder="Your Photo" type="file"/>

        </div>

        <div class="form-group">

            <button type="submit" class="btn btn-default">Register</button>

        </div>

    </fieldset>

</form>

<div>

    or <a href="login.php">log in</a>

</div>

<br/>
mexabet 49 Good Learner

I'm trying to code a registration form. But I'm stuck at adding a borrowed code of image upload, resize, save and store its path in MySQL database. The error message is "Undefined index: fileimage" on the line where I have this code: if($_FILES['fileimage']['name']).

Here is the register.php:

<?php



    // include configuration file

    require("../includes/config.php");



    //Class import for image uploading

    include("../includes/upload_class.php");



    // if form was submitted

    if ($_SERVER["REQUEST_METHOD"] == "POST")

    {

        // validate submission

        if (empty($_POST["firstname"]))

        {

            apologize("Provide your first name.");

        }

        if (empty($_POST["lastname"]))

        {

            apologize("Provide your last name.");

        }

        if (empty($_POST["username"]))

        {

            apologize("Provide a username.");

        }

        if (empty($_POST["sex"]))

        {

            apologize("Select your sex.");

        }

        else if (empty($_POST["password"]))

        {

            apologize("Enter a password.");

        }

        else if (empty($_POST["confirmation"]))

        {

            apologize("Confirm your password.");

        }

        else if ($_POST["password"] != $_POST["confirmation"])

        {

            apologize("Password and confirmation do not match.");

        }

        if (empty($_POST["email"]))

        {

            apologize("Provide your email address");

        }



        //image uploading part

        if($_FILES['fileimage']['name'])

        {



            $max_size = 10000*10000; // the maximum size for uploading



            $my_upload = new file_upload;



            $my_upload->upload_dir = "images/user/"; // "files" is the folder for the uploaded files (you have to create this folder)

            $my_upload->extensions = array(".png", ".jpeg", ".gif", ".jpg", ".jpeg"); // specify the allowed extensions here

            // $my_upload->extensions = "de"; // use this to switch the messages into an other language (translate first!!!)

            $my_upload->max_length_filename = 1000; // change this value to fit your field length in your database (standard 100)

            $my_upload->rename_file = true;





            $my_upload->the_temp_file = $_FILES['fileimage']['tmp_name'];

            $my_upload->the_file = $_FILES['fileimage']['name'];

            $my_upload->http_error = $_FILES['fileimage']['error'];

            //$my_upload->replace = (isset($_POST['replace'])) ? $_POST['replace'] : "n"; // because only a checked checkboxes is true

            //$my_upload->do_filename_check …
mexabet 49 Good Learner

@diafol,
Thanks.

mexabet 49 Good Learner

@cereal;
A million thanks; I'll work on your suggestions and see what happens.

mexabet 49 Good Learner

@arunmagar,
There seems to be a syntax error somewhere else in the code, but not in the render portion (render("modifypass-form.php", ["title" => "Reset Password"]);), which you pointed.

mexabet 49 Good Learner

@arunmagar,
Sorry, but you don't know what you're talking about. There's no syntax error in the code section you pointed at.

mexabet 49 Good Learner

I'm having an issue with coding a script that enables a logged in user to change his/her password. But when the form is submitted, a strange, blank page is displayed. There's no error message. Can you guys please, help me to resolve this issue? I'm not yet proficient in PHP and need all the insight I can get, to get my script to work fine. Here is the modifypass.php file:

<?php

    // configuration
    require("../includes/config.php"); 

    // if form was submitted
    if ($_SERVER["REQUEST_METHOD"] == "POST")
    {
        // validate submission
        if (empty($_POST["curpassword"]))
        {
            apologize("You must provide your current password.");
        }
        else if (empty($_POST["newpassword"]))
        {
            apologize("You must enter a desired new password.");
        }
        else if (empty($_POST["confirmation"]))
        {
            apologize("You must confirm your new password.");
        }

        // query database for user
        $rows = query("SELECT * FROM users WHERE username = ?", $_SESSION["id"]);

        // if we found user, check password
        if (count($rows) == 1)
        {
            // first (and only) row
            $row = $rows[0];

            // compare hash of user's input against hash that's in database
            if (crypt($_POST["curpassword"], $row["hash"]) != $row["hash"])
            {
                apologize("You must provide your valid current password");
            }
            else if ($_POST["newpassword"] != $_POST["confirmation"])
            {
                apologize("Your new password and confirmation don't match.");
            }
            else if (query("UPDATE users SET hash = (?) WHERE username = (?)", crypt($_POST["newpassword"]), $_POST["username"]) === false)
            {
                apologize("Password update failed.");
            }
            else
            {
                // remember that user's now logged in by storing user's ID in session
                $_SESSION["id"] = $row["id"];

                // update the user's password to the new one
                crypt($_POST["newpassword"], $row["hash"] = $row["hash"]);

                // redirect to …
mexabet 49 Good Learner

I'm trying to prevent the user from purchasing any share, if the cash in his/her account is less than the desired stock cost (price * shares). However, I'm getting the following error:

Warning: mysql_query() expects parameter 1 to be string, array given in /home/jharvard/vhosts/pset7/public/buy.php on line 39

Here is the script:

<?php

    // include configuration file
    require("../includes/config.php");

    // check if form is submitted
    if ($_SERVER["REQUEST_METHOD"] == "POST")
    {
        // check if symbol or share is empty
        if (empty($_POST["symbol"]) || empty($_POST["shares"]))
        {
            // display error message
            apologize("Symbol and Stock must not be empty.");
        }

        // check if symbol is valid
        if (lookup($_POST["symbol"]) === false)
        {
            // display error message
            apologize("Invalid stock symbol.");
        }

        // ensure that shares are only positive integers
        if (preg_match("/^\d+$/", $_POST["shares"]) == false)
        {
            // display error message
            apologize("Only a whole number is allowed.");
        }

        // set the transaction type to display in history
        $transaction = 'Bought';

        if ($stock = lookup($_POST["symbol"]))
        {
            // calculate total cost (ie shares * price)
            $cost = $_POST["shares"] * $stock["price"];

            $cash = query("SELECT cash FROM users WHERE id = ?", $_SESSION["id"]);
            $viewchk = mysql_query($cash);
            $arrchk = $viewchk;

            if ($arrchk["cash"] < $cost)
            {
                // display error message
                apologize("You don't have enough funds to buy this share.");
            }
            // if user's cash >= cost of share, allow purchase
            else
            {
                // ensure symbols are saved in DB in uppercase
                $_POST["symbol"] = strtoupper($_POST["symbol"]);

                query("INSERT INTO portfolios (id, symbol, shares) VALUES (?, ?, ?)
                 ON DUPLICATE KEY UPDATE shares = shares + VALUES(shares)", $_SESSION["id"], $_POST["symbol"], $_POST["shares"]); …
mexabet 49 Good Learner

Found a fix. Resolved.

mexabet 49 Good Learner

My script has a two bugs, which I've been unable to fix. So, I need your help. Here is the file:

<?php
    // configuration
    require("../includes/config.php");

    // check if form was submitted
    if ($_SERVER["REQUEST_METHOD"] == "POST")
    {
        // type of transaction - for tracking history
        $transaction = 'SELL';

        // validate submission
        if (empty($_POST["symbol"]))
        {
            apologize("Select a stock to sell.");
        }
        else if (!empty($_POST["symbol"]))
        {
            if ($stock = lookup($_POST["symbol"]))
            {
                // select database
                $shares = query("SELECT shares FROM portfolios WHERE id = ?", $_SESSION["id"], $_POST["symbol"]);

                $value = $stock["price"] * $shares[0]["shares"];

                // delete stock's data from database table
                query("DELETE FROM portfolios WHERE id = ? AND symbol = ?", $_SESSION["id"], $_POST["symbol"]);

                // update users' DB table
                query("UPDATE users SET cash = cash + ? WHERE id = ?", $value, $_SESSION["id"]);

                // insert transaction into DB
                query("INSERT INTO history (id, transaction, symbol, shares, price) VALUES (?, ?, ?, ?, ?)", $_SESSION["id"], $transaction, $_POST["symbol"], $shares[0]["shares"], $stock["price"]);
            }
        }
        // redirect to portfolio
        redirect("/");
    }
    else
    {
        // query portfolio DB table
        $rows = query("SELECT * FROM portfolios WHERE id = ?", $_SESSION["id"]);

        // create an array to store current user's stock symbols
        $stocks = [];

        // iterate through each of the current user's stocks
        foreach ($rows as $row)
        {
            // save each stock symbol
            $stock = $row["symbol"];

            // add each stock symbol to the new array
            $stocks[] = $stock;
        }

        // render the sell form
        render("sell_form.php", ["title" => "Sell Stock", "stocks" => $stocks]);
    }

?>

The code doesn't update the user's cash as intended, …

mexabet 49 Good Learner

Thanks guys for your input. I've managed to resolve it on my own.

mexabet 49 Good Learner

Thanks for replying. As follows is the source code of the header file that defines GetFloat:

#ifndef _CS50_H
#define _CS50_H

#include <float.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>


/*
 * Our own data type for string variables.
 */

typedef char *string;


/*
 * Reads a line of text from standard input and returns the equivalent
 * char; if text does not represent a char, user is prompted to retry.
 * Leading and trailing whitespace is ignored.  If line can't be read,
 * returns CHAR_MAX.
 */

char 
GetChar(void);


/*
 * Reads a line of text from standard input and returns the equivalent
 * double as precisely as possible; if text does not represent a
 * double, user is prompted to retry.  Leading and trailing whitespace
 * is ignored.  For simplicity, overflow and underflow are not detected.
 * If line can't be read, returns DBL_MAX.
 */

double 
GetDouble(void);


/*
 * Reads a line of text from standard input and returns the equivalent
 * float as precisely as possible; if text does not represent a float,
 * user is prompted to retry.  Leading and trailing whitespace is ignored.
 * For simplicity, overflow and underflow are not detected.  If line can't
 * be read, returns FLT_MAX.
 */

float 
GetFloat(void);


/*
 * Reads a line of text from standard input and returns it as an
 * int in the range of [-2^31 + 1, 2^31 - 2], if possible; if text
 * does not represent such an int, user is prompted to retry.  Leading …
mexabet 49 Good Learner

Thanks for your response.
The program include custom library file that defines the GetFloat function, and this is what it does:

/*
 * Reads a line of text from standard input and returns the equivalent
 * float as precisely as possible; if text does not represent a float,
 * user is prompted to retry.  Leading and trailing whitespace is ignored.
 * For simplicity, overflow and underflow are not detected.  If line can't
 * be read, returns FLT_MAX.
 */

float 
GetFloat(void);

I really don't want to change GetFloat, for some reasons.

mexabet 49 Good Learner

I'm creating a basic C program that I want to accept both positive and negative inputs. However, as it is it doesn't accept negative inputs. Any help on how to fix it will be much appreciated. here is the code:

int main(void){

    // Here we declare integer and floating point number and assign values to them
    int change = 0;
    float fchange = 0.00;

    // Let's ask the user how much is owed and get his/her input
    printf("How much change do I owe you? ");
    fchange = GetFloat();

    // Let's multiply the Dollar value by 100
    change = (int)roundf(fchange*100.0);

    // Here we assign values to coin denominations
    int quarters = change/25;
    change = change % 25;

    int dimes = change/10;
    change = change % 10;

    int nickels = change/5;
    change = change % 5;
mexabet 49 Good Learner

Thanks everyone; I've managed to fix the issue.

mexabet 49 Good Learner

Yes, you're correct. I've changed it to (case WM_CREATE:{). I've further modified the initial code and was able to compile it. But I'm getting many warnings regarding "NULL". Moreover, there's a mysterious blank window called "main.exe" with black background that opens behind the program when I run it. The folowing is the modified code:

#include <windows.h>

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = "WindowsApp";

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&wincl))
        return 0;

    /* The class is registered, …
mexabet 49 Good Learner

I successfully created a C++ window but got an error message when I tried to add menus. I will surely appreciate any help to fix the issue. As follows is the code:

#include <windows.h>

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = "WindowsApp";

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           "New Software",       /* …
mexabet 49 Good Learner

See Python Wiki
http://wiki.python.org/moin/PythonSpeed

I so much appreciate your insightful help. I just bookmarked the link and will go through it diligently.

mexabet 49 Good Learner

Thanks pyTony for your time and contribution.

mexabet 49 Good Learner

Thanks Rashakil for your contribution. I will look into Scala to see what it really offers.

mexabet 49 Good Learner

Hi Jeff,

Thanks for your recommendation - I will discuss that with my programming team.

mexabet 49 Good Learner

My company is planning to develop a web search engine with a crawler, and we're considering using three languages, namely C++, Java and Python. Now we're a bit not sure which language is best suitable for features like web crawling, extracting keywords & indexing, ranking of indexed pages and searching.

We're aware that some programming languages are most suitable for performing certain tasks, and we want to make the right choices. Someone suggested we use C++ for features that require absolute speed and Python for glue code that isn't all that time-critical. But we're not sure of the exact features that require absolute speed.

Now my questions are:

  1. Which language (C++ or Java) is most suitable for developing a web crawler and why?
  2. Which language is best suited for developing a search ranking algorithm - C++ or Java?
  3. Which features of the search engine should C++ be used for?
  4. Which features should Java be used for?
  5. Where should Python come in? Which features should it be used for?
  6. Do these three languages make a good combination when developing a search application?

Getting some enlightenment on these issues will enable us to get down to work. And your suggestions will be much appreciated.

mexabet 49 Good Learner

Thanks for your reply and insight. I'm currently discussing with the SEOQuake Team to see if they will add my sites to the excluded domains by default. They have a great plug-in, but it's somewhat intrusive and sometimes annoying in some areas.

You cannot stop a firefox addon from loading on your site. The reason it doesn't load on those websites is because it is configured that way.

Your website runs in a security sandbox in the browser and cannot modify plugins. Only plugins are able to access the higher privileges required to do this.

mexabet 49 Good Learner

Please, I need a code that is capable of preventing SEOQuake from loading on my websites, even if a user has installed the plug-in.

For example, Google, Yahoo and Bing implements such feature. I just don't want it to load whenever anybody visits my sites.

mexabet 49 Good Learner

Thanks Graphix,

I have managed to fix it, but will keep your code in case of next time.

Something like this?:

$page = "mypage"; // You enter the page here
if ($page == "list-album") {
include('myfirst.tpl');
} 
elseif ($page == "list-image") 
{
include('myfirst.tpl');
} 
else 
{
include("somethingelse.html.inc");
}
mexabet 49 Good Learner

I need help to make an included template to appear only on two pages and not on other pages of a photo album. Can someone help me out on how to use the "elseif" statement to accomplish this?
Right now template file appears on every page, which is not what I want. This is what I've got so far:

<?php
//Display slide
include('myfirst.tpl');
?>

A hint of what I want to achieve is below:

<php
if "list-album"
include('myfirst.tpl')
elseif "list-image"
include('myfirst.tpl')
elseif "list-image"
do nothing
?>

The script uses $_GET method. The pages are "list-album", "list-image" and "image-detail". I want the template to be show on "list-album" and "list-image", but not on "image-detail". Any help will be appreciated.

mexabet 49 Good Learner

I need your help to rewrite the URLs generated dynamically by a PHP photo album software.
These are how the URLs currently show on the browser:

index.php?page=list-image&album=1 (The URL of "album 1" while I name the album "Tropical Trees") and index.php?page=list-image&album=2 (The URL of "album 2 while the name might be something like "Images In The Darkness" or "Beaches").

I need help to make the above-mentioned "album 1" URL to be: "Tropical_Trees/" and other albums to be in this form.

The following example is how the image URLs shows:
index.php?page=image-detail&album=1&image=1 (The URL of "image 1" of "album 1" while I name this image "Buddha Statue")

I want the image URLs to be in this form: "Tropical_Trees/Buddha_Statue/"

Can anyone please show me how to rewrite the album and image URLs in order to have search engine-friendly URLs. I have tried without success to achieve this. This is what I have done so far:

## mod_rewrite configuration
Options +FollowSymLinks

# Turn on the rewriting engine
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ - [F]

RewriteRule ^[a-zA-Z]$ index.php?page=list-image&album=$0
RewriteRule ^([a-zA-Z])\/$ /$1 [R]

RewriteRule ^([A-Z]+)([a-z)]+)([0-9)]+)\.html$ index.php?page=image-detail&album=1&image=$3

RewriteRule  ^([^/]+)/$ index.php?page=image-detail&album=1&image=$1

#Options -Indexes IncludesNOEXEC FollowSymLinks

I will appreciate your kind assistance.

mexabet 49 Good Learner

I really want to try this code out and see if it works for me. But can you enlighten me which spot exactly to insert this code? Please, use the sample below to give insight:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>
mexabet 49 Good Learner

I cannot say submitedge is a scam site. They specifically stated the money they charge is for submission and not for listing. The money is for helping clients to choose the right category, title and description. And of course, they profess to submit in accordance to DMOZ guidelines.

However, their site needs to be in DMOZ to convince people they bring good result.

The $49 they charge for the submission alone is too exorbitant. Even after spending that amount, your site can still not get listed. One can split that amount and use it to get listed in four or more other quality directories.

mexabet 49 Good Learner

Many free directories take long time to approve or reject links, whereas most pay-for-review directories approve or reject links within 24 or 48 hours of submission. Free directories get overwhelmed with submissions. Imagine when a single directory gets over 50 submissions a day and the editors have to work several hours everyday to review links they are not paid to review. So, they do it only when they have spare time.

Many free directories are set up as something on the side. The owners have to devote their time on their main businesses that fetch them money. If you cannot pay for review, you need to have the patience to wait. The saying, "you get what you pay for" comes into play here.

Another thing is to look at the pending links before submitting. This is assuming the directory in question has site statistics. This will help you to calculate how long approximately you have to wait. It is counter-productive to submit your site to a directory that has several thousands of pending links. Such directories are not looked after and probably not well promoted.

mexabet 49 Good Learner

Submitting your site to many quality directories will help your link popularity to grow, and subsequently bring your site up in SERPs. But directories bring little traffic, you have to note that. However, to find out the directories that will bring you traffic, visit Google and Yahoo and try out some keywords like "The best web directory", "high quality web directory", "quality directory", etc. The directories that come up in the first three or four pages have good ranking in SERPs and will bring you some traffic.

In actual sense, directories are not mainly for bringing too much traffic. But they help to bring your site to the notice of search engines.

When choosing directories to submit to, make sure their web pages are indexed by popular search engines. Also make sure the category or subcategory you're submitting to is cached.

Like mrandrei said, submit to only reputable directories that have good standing with search engines. A lot of directories these days are penalized by search engines because of some irregularities. And some are not well promoted to give your links in them the deserved exposure.

mexabet 49 Good Learner

Hi everyone, this issue still persists and I would be glad if someone can kindly come along to look into it and probably bring a solution. I'm literally stuck with this for a long time now. Thanks in advance.

mexabet 49 Good Learner

This is the one-line reply to my email, which I received yesterday from Daniweb's happygeek:

Apologies - the link directory has temporarily been removed.

It didn't say how long we're going to wait.

Even I am getting the same . Dani, did you remove it or it has become paid ?

mexabet 49 Good Learner

Install SeoQuake plugin for Firefox.

mexabet 49 Good Learner

http://www.daniweb.com/directory/ is giving me error 403, for many days now. But I haven't even received an email to let me know what is happening to my reciprocal link. I'm a devoted member here and so, I deserve to know. After-all, I didn't place my reciprocal link pointing to Daniweb on a junk page.

Where has the directory been moved to without notice?

mexabet 49 Good Learner

I wrote a similar code about image upload and gave a detailed explanation about what the code does at any given section. You can find it here at Daniweb: http://www.daniweb.com/forums/thread148350.html

I hope it would help you.

mexabet 49 Good Learner

Take a look at this thread where I gave a detailed explanation about the process: http://www.daniweb.com/forums/thread148350.html

mexabet 49 Good Learner

I guess you're talking about directory submitter, but I really don't know if it's an Online type or a desktop type is the one needed. It does pay to put your message across in a way others will understand.

mexabet 49 Good Learner

This thread is an interesting read! Good insight!

mexabet 49 Good Learner
mexabet 49 Good Learner

I know this can be achieved with PHP scripting. To do that your homepage needs to connect to your blog's MySQL database and extract the data from the table containing the latest blog posts.

But I'm afraid this is not the right forum. You might consider moving this thread to the PHP section. And to do that, click on the link, Flag Bad Post and that will take you to another page containing a web form. In the form politely ask the moderators to move your thread to the PHP Forum and give reason for your request. Your reason will likely be that you need proper attention to your thread. I believe that's the place you'll likely get quicker and more insightful response from knowledgeable PHP coders.

Please, do not cross-post (posting the same thread in another forum section), as that might seem tantamount to spamming the forum. The ideal thing is to use the Flag Bad Post option.

mexabet 49 Good Learner

You can as well hire a programmer to develop a unique cart right from the ground up. That way all the features you need in a shopping cart will be included, leaving out those features you would never use- the difference between custom-made and already-made.

mexabet 49 Good Learner

Try to get targeted back links from high PR websites with contents that relate to what your website is offering. And make sure you update your site's contents regularly.

mexabet 49 Good Learner

I have an image gallery that generates album and image URLs each time an album and/or image is added. The generated album URLs are like this:
index.php?page=list-image&album=1
index.php?page=list-image&album=40

In one of my SQL tables I have an Album Name row as `al_name`

I want URLs like index.php?page=list-image&album=1 to be rewritten by printing out /$row
So, the rewritten URL will look similar to /Best_Wedding_Photos/ if the Album Name is: Best Wedding Photos

Likewise, I need your help to rewrite the likes of the URLs below:
index.php?page=image-detail&album=1&image=1
index.php?page=image-detail&album=1&image=2

I would like the likes of the these image URLs to be rewritten as:
/Best_Wedding_Photos/image-1.html if the Album Name is: Best Wedding Photos and image=1

Your help is much appreciated in advance.

mexabet 49 Good Learner

To create a login page you need a server-side scripting language like PHP. And of course, you need a database like MySQL to store your data. Search Daniweb for helpful PHP Login and you'll find a lot of threads on this, to start with.