Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
Read the question carefully
Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
I have an account form in which the all account are being pulled from my mysql database into a dropdown menu. The user selects the account from the dropdown menu then the account code field is automatically populated via the data-acc attribute. I have added a button to add more account.
I am using yii2 basic application template and developed an application.
I am using VPS server for hosting this application on a domain on Host gator.
Now I want that only office users should access this application i.e, (while accessing this application using domain, .htaccess file should check if the IP accessing this domain is allowed to have access. If yes, then that IP should be able to have access, else that IP should see a message containing Access Denied).
If we dothis then how to specify IP addresses in .htaccess file. Do we need to specify the static IP addresses of the employees in our organization?
If we write the foll code in .htaccess,
deny from all
Here, which IP address to be specified? Do we need to specify the Public IP or routers Private IP or static IP?
How to accomplish this?
Does IP address change from network to network. When I connect to my WiFi, i get my public IP. So this IP is unique in the world?
Message from Member 13935271 <email@example.com>:
Internal network meaning?
.htaccess sees only public IP
The application which we are developing will be hosted on a VPS server on a domain. Now it will be online, anybody can access it using the domain name. Now I want that only our office employees should be able to see or access this application using this domain.
Basically I want that i need to pre define their IP in .htaccess file in allow section. I want to allow only these IP and deny all.(meaning only our organizations employees will have access to this application)
So should I specify their public IP in .htaccess? Does this IP change from network to network?
I have no idea how your network is set up. But basically you need to allow access from any IP address owned by your allowed users. If they are on your internal network (192.168.1. addresses) then as I described. If external then you need to specify their external addresses. Check with your network administrator to be sure.
Note: Please use the "Reply" button, so your message is publicly visible.
I have been trying to follow the tutorial by passive income on how to set up ipn simulator and have entered all my details on paypal ipn simulator but when I tried to view my test.txt file, it doesn't show anything... here is my listener.php code:
<pre>I have a folder which has both .HTML and .php files. By default, the .HTML file is loading as expected and also if i click a link to a .php, it will not load the .php file of WordPress. It redirects to the .HTML file again .
This is a word press site
As the default, I need to run .html
If I click the link to the .php file it will go running WordPress
Please, anyone, guide me to write a .htaccess file to do that.
What I have tried:
i have intro.html and wordpress files in the same folder. by default intro.html would run then i click index.php, the wordpress will run. </pre>
I tried to set my timestamp to undefined as 0 and for some of my other tables, this is working but not for others.. Is it possible to do this? I even tried to do something like this in my php code: $date = 0; but that doesn't work all the time...
According to the php manual, I should use the mysqli_store_result()first before calling the mysqli_stmt_num_rows, whereas from my experience, I can always use mysqli_num_rows to check if the row exists?
I have read that in order to use mysqli_stmt_fetch, you must use mysqli_stmt_store() first otherwise it won't work, is this correct? I have always been using mysqli_stmt_get_result... I have read the php manual but it sounds almost the same to me except that for the mysqli_stmt_fetch(), you must bind the result first?
Please how can I use $_SERVER['PHP_SELF'] code to save record and print
simultaneouly using PHP. I need the data been submitted into the database to print on the POS printer. See form action used below. Please assist.
<form method="post" name="form1" action="<?php echo $editFormAction; ?> target="_parent">