What does an '@' in a php file string mean?

I am having trouble googling this, so please bear with me.

I have a code example that is about uploading files and there is the assignment of a temporary file to an array like this:

 $postparam['file1'] = '@../res/example.pdf';

I would like to know what the effect of the @ character is. I know about error suppression with @ but i am confused about the use inside the string.



I found the answer: The example uses cURL and that is why the @ is required as a prefix to the filename.

@filename This will make curl load data from the given file (including any newlines), URL-encode that data and pass it on in the POST.


Need Your Help

how to find path from where current binary running?

linux embedded-linux ps binaries

After somewhere searching finally not getting what i want.

Custom has_many?

ruby-on-rails ruby-on-rails-3 associations has-many

I have a Rule model that references a Question model using a question_id field.