How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Averad Your Own Question

Averad
Averad, Web Designer
Category: Programming
Satisfied Customers: 698
Experience:  Freelance Python, HTML and PHP Programmer with 10+ years of experience.
Type Your Programming Question Here...
Averad is online now
A new question is answered every 9 seconds

I would prefer to wait until Joshua C is available

Customer Question

I would prefer to wait until Joshua C is available
Submitted: 1 year ago.
Category: Programming
Expert:  Lindie-mod replied 1 year ago.
Hi, I am a moderator for this topic. I sent your requested professional, Averad a message to follow up with you here, when they are back online. If I can help further, please let me know. Thank you for your continued patience.

Lindie
Customer: replied 1 year ago.

No, that's fine thank you Lindie. I'm happy to wait until he is available.

Expert:  Russell H. replied 1 year ago.
I note that it has been almost 20 hours and you have not gotten a response from your requested Expert... would anyone else be able to at least start the case going? even if you would still prefer Joshua C. to close the case, or to provide the main portion of the Answer you seek....

Thanks.
Expert:  Averad replied 1 year ago.
Bren this is JoshuaC sorry for the long wait, I am available and online to assist you today.
Customer: replied 1 year ago.

Hi JoshuaC. No problem.


 


I have moved to another host as Infinology failed to update their PhpMyAdmin software so, we should be rockin' and rollin' at Lecaff.fr soon. I'm going to need help to get it started, for sure.


 


To business; I've designed the site with summer visitors carrying small-screen hand-held devices in mind. If the visitor is sitting in front of her pc, I'd like to direct her to be directed to a set of files built for a wide screen.


 


 


 


 

Expert:  Averad replied 1 year ago.
Usually a website will have two versions (one for mobile and one for desktops). The mobile version will be stored in a subdomain (usually m.website_name.com) while the desktop version is located at website_name.com.

You can force mobile users to one website version and standard users to another with PHP. Read over the following website for information about Mobile Browser Detection.

http://mobile.tutsplus.com/tutorials/mobile-web-apps/mobile-browser-detection/

You will see that the trick is to use the php server command to locate the browser version and then use that information to send the customer/viewer to the website designed for them.
Customer: replied 1 year ago.

To get started; I need to put all of the present site's files in one folder called, say, mobile and make another folder with a new set of files called pc. Then upload mobile to lecaff.fr and pc to a sub-domain say, LecaffPC ? I haven't finished reading the article but I have an 11am meet about my (slow) progress so want to get on with it.

Expert:  Averad replied 1 year ago.
On your new host they will have a way of storing separate sub domains (Usually each subdomain is in a different folder). You will want to setup m.lecaff.fr for your mobile traffic.

So on your host you should (in most cases) have a folder structure that looks like:

Root Folder
|------- m.lecaff.fr
|--- Website Files
|------- lecaff.fr
|--- Website Files

If you don't want to deal with the code just use http://detectmobilebrowsers.com/ and follow the steps they have on using their code.
Customer: replied 1 year ago.

Thanks. That is the sort of answer I need just now, I've a huge amount of work to get done before 1st June.


I've got the script saved as index.html that covers mobile use where is the redirect for pc users?


 

Expert:  Averad replied 1 year ago.
You don't need one, you redirect the mobile users to the mobile website and everyone else sees the PC version.
Customer: replied 1 year ago.

This is the end of the script


 


'Location: http://detectmobilebrowser.com/mobile'


 


I'll change http://detectmobilebrowser.com/mobile to mobile.lecaff.fr Which will be a subdomain of lecaff.fr

Expert:  Averad replied 1 year ago.
http://detectmobilebrowser.com/mobile.lecaff.fr|lecaff.fr
Customer: replied 1 year ago.

Now I have


 


Root Folder



|------- mobile.lecaff.fr
|--- Website Files
|------- lecaff.fr
|--- Website Files


 


In lecaff.fr/index.php I'll paste the script from detectmobile into the header

Expert:  Averad replied 1 year ago.
You would just want to do a php include command

http://www.w3schools.com/php/php_includes.asp

And use the include command to include the detectmobilebrowser.php
Customer: replied 1 year ago.

Sorry JoshuaC, I know that makes sense to you. Are you saying that the answer to myquestion is


paste http://www.w3schools.com/php/php_includes.asp into the top of index.php

Expert:  Averad replied 1 year ago.
No I am saying read that website link, I would post the code here but the justanswer system sometimes has an issue with raw code being pasted. So I am linking you to an example of the include php code.
Customer: replied 1 year ago.

Okay, thank you, XXXXX XXXXX test it now as I'm so pressed for time. I need your help on other bits but I feel they will take more time than I'm paying for. What is the fairest way for both of us?

Customer: replied 1 year ago.

I have to go to the meeting now so, I'll be off line for a few hours. These are the items that I'll need help on, I'll need to upload the site to the new host so that you can see it:


Page Recevez nouvelles Previously, you recommended I do not allow visitors to send information to my database which is on phpMyAdmin. If the only way is via an email; I need the visitors choices to be sent to me via a form in Index.php. I have the form's action set to POST , to a file called contact.php. When I test it, the form seems to work (it vanishes when I submit) but then what? The data that I type in doesn't appear anywhere and I'm left on a blank "undefined" page. I would much prefer to enable the information to go directly and securely to phpmyadmin though. Are you sure I can't do that? How do sites like yours do it?
Page Leaders Event organisers currently send information to me by email which I then have to wade through and put on my database. I would like a form for them to fill in on the website so that at least the data would be in the right place or (dreams are made of this) a page that simply updates the database.
Page Evenements When a visitor clicks on the "choices" button, they see a list of the "type of event" that is on the database. I would like the data that displays on that page to be in accord with their choice.
Page Restaurant Only three headers(?) from the menu are shown, how do I show them all?

Customer: replied 1 year ago.

I've signed up as a regular client, I dare say I won't regret it.

Customer: replied 1 year ago.

Did you receive my replies from:


 


You replied
Saturday, May 11, 2013 9:00 AM (GMT+1)

Expert:  Averad replied 1 year ago.
You can have users submit data to your mysql database you just need to make sure that the data is clean and free from malicious code before allowing it to be submitted to the database.

Read over:

http://php.about.com/od/phpwithmysql/PHP_with_MySQL.htm

Each of the tutorials on the above website explain how to allow users to submit data to a mysql database.

Expert:  Averad replied 1 year ago.
Hi,


I'm just following up with you to see how everything is going. Did my answer help?


Let me know,
Joshua
Customer: replied 1 year ago.
Joshua

I’m involved in another project at the moment, as soon as I’m not needed, I’ll get back to you.

Bren
Expert:  Averad replied 1 year ago.
Bren,

Thanks for the update, I look forward to hearing back from you when you are available.

Josh
Customer: replied 1 year ago.
Hi Joshua
I have several hours free today so I'd like to get this site done, if that's possible.
The website host has said "
We have migrated your account to a server with php version 5.2.9. As of now you are using mysql version 5.0.26 and we are yet to update our system with newer version of the same. We will keep you posted once the updated version is available. "

What do I have to do to publish this as a working site?

Bren
Customer: replied 1 year ago.
Can I send the files to you? I'd like you to see the site working, then you will probably know why it doesn't work on the remote server. .
Customer: replied 1 year ago.
Relist: Other.
Joshua is unavailable and I'm in a hurry.
Expert:  Averad replied 1 year ago.
Bren I am online and available to assist you with the website.

You can transfer files to me by uploading them to http://sendspace.com and providing me with the download link that is created. Make sure to keep the delete link that is also created so you can delete the files after I let you know I have retrieved the files.

If sendspace does not work you can also use http://wikisend.com
Customer: replied 1 year ago.
Hi Joshua, the link is http://www.sendspace.com/file/hrplpg
I have to open the bar just now but I'll check my messages as soon as I can.
Bren
Expert:  Averad replied 1 year ago.
I have the file, you can click on the delete link now.
Expert:  Averad replied 1 year ago.
Any chance I can get an export of the database information so I can test what you have currently.
Customer: replied 1 year ago.
I didn't finish until quite late. http://www.sendspace.com/file/0remfk is a sql export from phpMyAdmin. It's just dummy data.
Expert:  Averad replied 1 year ago.
Thats ok I have a dev version of the website worked up at dev.averad.com I will import the sql data and get the test website online asap!

Go Ahead and delete the data using the link now!
Expert:  Averad replied 1 year ago.
http://dev.averad.com is setup and running with a connection to a test database.

Take a look at the website and let me know what issues that you see and need my help with.
Customer: replied 1 year ago.
The most frustrating problem is enabling the site on the Infinology server. The database connection is the problem, I think.

The Evenements page: I need the 'choose here' button to reveal all of the event types on the database and then, when a selection is made, to only show the events of that type. It should should default to 'choisir ici'.

The contacts page: When you select an address to view the details you are shown our address! I need to show the relevant address details.

The leaders page: This is where I had hoped the event organizers could list their events, securely.

The restaurant page: It would be good if all of the headings were shown instead of two or three at a time.

The nouvelles page: Is a subscription page, I would have liked that to put a subscriber on the database I see it doesn't do anything now.

At the end of the season I'm going to go on some website development courses, I have really jumped in at the deep-end and found it to be a struggle.If you have any thoughts on where to start looking Joshua, do tell.
Customer: replied 1 year ago.
This has just come in from the host :
On checking further with your issue, we found out that the software was incorrectly configured - it was connecting to mysql on localhost without any password> We have saved the old file as hsphere/local/home/lecaff/lecaff.fr/Connections/new.php_orig and added test mysql user and placed correct credentials into new.php - upon opening website it say some table column do not exists. It appears that website code is not ready yet and please inform your web developer to start working on this missing table and let us know if we can be any further help to you.
Expert:  Averad replied 1 year ago.
Then how is it working at dev.averad.com without the issues that they are discribing? I didn't make any changes to the code.
Customer: replied 1 year ago.
Maybe localhost works with your setup?
Expert:  Averad replied 1 year ago.
My host does allow for localhost but I changed the code to connect to the actual database address. I also entered the password XXX my test database in the field that was defined in the code.

I am glad that your host is actually being helpful at this point.
Customer: replied 1 year ago.
It's the first time they've been helpful in five years. Anyway, it looks like you agree regarding the connections file.
Expert:  Averad replied 1 year ago.
I agree for your host but, the connections file did have a password XX just wasn't the right one for your host.
Customer: replied 1 year ago.
Progress. Did you look at the Evenements page yet?
Customer: replied 1 year ago.

I'd still like to get the website working.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
< Last | Next >
  • http://ww2.justanswer.com/uploads/SP/spatlanta2010/2011-6-23_12450_photo.64x64.gif ATLPROG's Avatar

    ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Computer Software Engineer

    Satisfied Customers:

    5603
    Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
  • http://ww2.justanswer.com/uploads/unvadim/2010-11-15_210218_avatar.jpg unvadim's Avatar

    unvadim

    Computer Software Engineer

    Satisfied Customers:

    1158
    Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.
  • http://ww2.justanswer.com/uploads/lifesaver333/2010-10-17_191349_ls.jpeg lifesaver's Avatar

    lifesaver

    Computer Software Engineer

    Satisfied Customers:

    950
    Several years of intensive programming and application development experience in various platforms.
  • http://ww2.justanswer.com/uploads/EH/ehabtutor/2012-8-2_202016_1.64x64.jpg ehabtutor's Avatar

    ehabtutor

    Computer Software Engineer

    Satisfied Customers:

    864
    Bachelor of computer science, 5+ years experience in software development, software company owner
  • http://ww2.justanswer.com/uploads/RA/rajivsharma086/2012-6-6_17128_displaypic.64x64.jpg Raj's Avatar

    Raj

    Computer Engg.

    Satisfied Customers:

    860
    BE CS, 4+ Experience in Programming and Database (ERP)
  • http://ww2.justanswer.com/uploads/eljonis/2010-01-06_130406_eljon2.jpg Eljon's Avatar

    Eljon

    Consultant

    Satisfied Customers:

    590
    11 yrs of programming (PHP, WordPress, XSL, SQL, JavaScript)