Is it ever really appropriate to create resources on a GET? I've received the answer we've done it this way for all these other situations and "the UI shouldn't have to make extra calls" If I'm setting up a user in a 3rd party system is it really bad to be making a separate call to make that integration with our system?
Either I'm missing some kind of RESTful wisdom here or we're keeping the UI lighter from responsibilities it should bear. I'm not really sure which here.
Well, who doesn't release stuff like that ? Microsoft software is just as bad.
That's called seagull management (or sometimes pigeon management)... Fly in, flap your arms and squawk a lot, crap all over everything and fly out again... by _Damian S_
and, most important, action ... but when I click "Send", I get a response from server: You are not choosen any file" ... which is right, because on my file, on "action" tag I put the original file path ... do you know what I mean ?
I put all these into a VC++ app, where I used CHtmlView for handling all this ... but I am stuck here ... and I don't see any output ... it is mean a lot for me to solve this ... Can you give me a little help ?
You can't automatically upload files from the client machine. Would you want a website automatically uploading your files? I suspect not, so you can't do it to others.
If you want to automate this you'll need to do it my programatically constructing the appropriate html request to the server via your VC++ app, you won't be able to get a browser component to do this for you.
Ok. This is the scenario: I have a html page, with a input type file element (included in a form), let say page 1. If I manually choose a file from local HDD, and I submit that form, the server respond me with some values, listed on another html page, in my browser, let say page 2.
So, if I send to the server a VC++ request with all data inside, somehow in page 1, and I don't use the browser for that, how can get the expected data from server (expected page 2), inside of my (program) browser ? Because I need to collect that data (from page 2).
Depends how much you want to show. You could just extract the relevant data from the response and show that somehow, even in a browser if it allows you to show specific html rather than just load from files\urls. If you wanted to show the whole page you could convert any non-absolution resources to absolute ones, so
The code is probably just ignoring the response, but it should be possible to get the response with the same call. Maybe google for other examples using the same class (not necessarily to post a file, the code for getting the response should be the same regardless of what your request was)
I have a real problem to resolve, that's why I have to learn this CSS ?language?helper?
I have 1350 images to load into a single plain html page. The images, i made them as small as I could 150x120; barely to distinguish the message. And is taking 20 seconds until the page is finished loading. At higher resolution per image, higher load time!
I want the page to load close to instant.
It's not for a public website, its a local file only for me.
And I google-find that there are some ways to shorten load time.
The best one that suit my case are the sprites. I read about them all day. And this code is my practice on this thing. But I am worried about it. Probably i am so new to this thing.
This code here; every img# instance i have here, is loading !A NEW! png image?
If it does, it is loading a ton of images and it beats the purpose of using sprites.
I want to load one time the sprite image(in a string variable) and reference it in CSS code.
Again, i am new to this thing. Please make some sense for me.
This isn't really a CSS problem, but rather a latency/synchronous call one.
Here's the deal: your CSS operates in a synchronous manner, which means that it makes one request, receives a response, then makes the next, and so on. In your case it's doing that at least 1350 times. It's never ever going to be instant with your current design.
very cool response! - thank you mister Nathan Minier.
(Intuitively) I was afraid of this part actually. This sucks.
I was thinking to make multiple pages with fewer number of images to load (as my backup plan).
Your plan to load as I scroll, ugh, it's hard (for me as a beginner into html helper languages).
Is a good idea - dont take me wrong. It's not impossible, but hard for me at my level.
Another option: if you don't have an actual need for the images to be individual, make sheets, each of which has a lot of images. Now, each call will load hundreds of images at a time, depending upon how many you put on a sheet -
Then - if you need individual image access, have the option to load images from a single sheet as individual when (something, like a button) on that sheet is clicked.
You may even be able to put larger images on the image-sheets (first paragraph) for better visibility.
new to php and trying to understand the use of and management of sessions
assumptions are: The entire site would be https and users would have to login to do anything and clicking on a saved link would realise the user wasn't logged in and auto redirect to the login page
session seems to be the appropriate? way to control whether logged in or not by doing session_start() at the beginning of each page and then looking at the variables that are set by the login page
my searching and reading suggests that sessions can be copied/hijacked and used to access pages as a user and certainly closing the page and then re-opening doesn't crash the session although closing the browser does
question 1. providing my logout function clears the session using array() and then destroys it, is there any other reason/time for me to use session_regenerate_id() ?
question 2. if hijacking/copying is possible how does a regular (timed?) obliterate, destroy, regenerate help this in any way? because it seems to me that my target page wouldn't be able to tell the difference between a copy and a valid new session
question 3. is there anything else I need to do for good practice
Last Visit: 20-Nov-19 9:15 Last Update: 20-Nov-19 9:15