Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8123927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:18:46+00:00 2026-06-06T06:18:46+00:00

When a customer logs in, I want to create all the folders under his

  • 0

When a customer logs in, I want to create all the folders under his id. I am doing it like this:

<?php
include('connect.php');

$aid = $_SESSION['application_id'];

$sql = "select * from ApplicationRegister where application_id= $aid" ;
echo $sql;
$result = mysql_query($sql) or die (mysql_error());
while ($row = mysql_fetch_assoc($result))
{
  echo "<table width='65%' cellpadding='4' border='0'>";

  echo "<tr><td> <h4> Company Name:   </h4></td> <td>" . $row['CompanyName'] . "</td> </tr> ";

  echo "<tr><td> <h4> Company E-mail:   </h4></td> <td>" . $row['CompanyEmail'] . "</td> </tr>";

  echo "<tr><td> <h4> Registration Type:   </h4> </td> <td>". $row['RegistrationType'] . "</td></tr>";

  echo "<tr><td> <h4> Plan:   </h4> </td> <td>" . $row['ApplicationPlan'] . "</td></tr>";

  echo "<tr><td> <h4> Registered Date:   </h4> </td><td>" . $row['Createddate'] . "</td></tr>";

  echo "</table>";
}

$file = $_SERVER['DOCUMENT_ROOT']; 
echo $file;

mkdir("$file/opencart/images/$application_id/products/");
mkdir("$file/localhost/opencart/images/$application_id/category/");
mkdir("$file/localhost/opencart/$application_id/application/");

echo "directory created";
?>

I even checked the folder permissions. Its all read and write, but folders are not getting created. Please help me figure out how to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:18:48+00:00Added an answer on June 6, 2026 at 6:18 am

    Are you making sure the folders that you are putting folders in exist? Your first mkdir for example, make sure that opencart, images, $application_id exist and if not, do a mkdir on those before you mkdir inside those.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A customer has asked this morning why he isn't showing up at all in
I basically want to write a customer logger/tracer which also logs the class and
I'm trying to create an html table for order logs for customers. A customer
My customer doesn't want a database but would prefer to update their data in
tbl_customer.id is the customer's id tbl_order.customer_id a query that will select all customers with
I'm working on logs for a customer service application. Another guy who is not
I have a situation where a customer logs in my website with credentials. With
Today at a customer we analysed the logs of the previous weeks and we
I have a customer who has submitted to me about ten crash logs, and
I have built a website (A) which logs in to and retrieves customer data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.