Forum Replies Created

Adelaid Member

1. HTML and Php can co-exist in the same page

Do this:










By working in that way, your html and your php can exist together right in front of your eyes, this means all is depending on your skills.

Adelaid Member

Best thing to start with, would be to read tutorials and get quite familiar with programming techniques.
Get yourself aquianted with MVC (Model –> View –> Controller), check php.net for available functions. Out of experience, start with a paper drawing or flipchart first that has all the elements you want need to have, think about the database layout, tables, field, etc.

Adelaid Member

The easy ways of using the PHP session are documented here:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11909-PHP-Sessions-Simpler-Than-You-May-Think.html

The PHP session_id() function returns a value:
http://php.net/manual/en/function.session-id.php

The return value will always be true with respect to isset(), but your release level of PHP may not allow you to test with isset() when your script tests the return value of a function.
http://php.net/manual/en/function.isset.php

Can you please tell us in plain language, what are you trying to achieve with this if() statement? The usual way of working with the session would just start the session at the beginning of the script and would never need to test to see if the session had been started!

Adelaid Member

i have on a code written for asp.net server to add a few words to a text file, but i’m not able to execute this code do you mean you can’t add more data to a text file? or that you cannot execute the text file?

You have to change the permissions on that folder (ntfs permissions) and add the user that is the app pool identity and give it write permissions the normal permissions are only read/execute.

Adelaid Member

We tried the same .htaccess setup on another server with the same results. Something doesnt like the code we’re using.

The server logs show repeated attempted logins to wp-login.php. Wordfence is blocking their access to the site, but not the access to the file forcing sql to say no hundreds of times.

Would be an easy fix if it were from a single IP, but i cant blacklist them all fast enough. So i am trying to but a buffer between the attacker and wp-login.php file by using httpauth.

The cloudflare activation was just a hail mary. It is mainly caching so if you force your “attack bot” not to cache you hit the server directly. That is only a guess though. I thought it would help as well.

This piece of code helped a little:

# Start DDOS Security

RewriteEngine on
RewriteCond %{REQUEST_METHOD} =POST
RewriteCond %{HTTP_REFERER} !^http://(.*)?.mysite.com [NC]
RewriteCond %{REQUEST_URI} ^/wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/wp-admin$
RewriteRule ^(.*)$ - [R=403,L]

It reduced the CPU load by 20% or so.

Adelaid Member

Option 1: this would mean updating the help files in multiple locations. During demo stage, the help file is likely to be the most volatile part of the app, which is why I would like to have just one copy of those files somewhere.

Option 2: I’ve thought through a separate “Help” application, that I can access with an encrypted URL query string, which should be sufficient security for this stage of development. So that’s currently the first choice.

Option 3: I’ve recently used the techniques for identifying domain name and modifying connection string, so I believe I can make that work, which would take care of the data separation.

A concern I have always had with multiple users using the same code base is my lack of understanding of how that works. Due to that lack of understanding, I have had the concern that if one user encounters an error that halts execution, then that would affect other users. (Now that I think about it, that couldn’t make sense, because obviously sites can be accessed by thousands of user simultaneously.)

Still, it would be helpful for me if I could understand how different users of the same code are separated so that that would not happen.

Adelaid Member

C or C++ should be about the same if you aren’t using inheritance or any of the “fancy” C++ stuff.

You probably could pull it off by thinking of “every possible hand” as “every possible type of hand” (straight, flush, one card off from straight, etc). Without knowing what variant, it’s tough to make precise suggestions. That should get your search space down into the millions or something else feasible.

Adelaid Member

the kick start for me was my brother who showed me how to make a website (in a site builder ofc.) at an age of 10. Ever since then, i evolved from site builder to html, css and since a year, PHP. Now i know XHTML/CSS, PHP, a bit of JavaScript, the basics of AJAX, and a bit of action script. Now i’m learning VB.NET at school. It all came fast if u knew that i started using css in websites almost 2 years ago. (i’m 16 now).

Adelaid Member

i was sitting at my computer thinking “i wish there was some sort of iTunes controller where you could type a song/artist/album and it would just play it, cudnt find one so I took up programming starting with Applescript and made it myself” That was before CoverSutra came out and totally pwn3d me, still I got like over 6000 downloads with the older one and some 3000 with the revamped one

Viewing 9 posts - 61 through 69 (of 69 total)
en_USEnglish