All Questions

1
answer

Facebook login php Auth returning dialog / oauth? client_id in url

I am making my application for login on Facebook, however it returns with GET in url ?code=etc... Before it was working normally, I use Facebook's class . See: $facebook = new Facebook(array( 'appId' => APP_ID,...
asked on 23.02.2015 / 01:33
1
answer

Refresh page automatically when accessing the system

I have a project, where I need the user to access the system, the system updates the page automatically, only once. I've found how to do this from time to time (5 in 5 seconds, for example), but I need to update only once. To update every 5 s...
asked on 03.02.2015 / 22:52
1
answer

ToUpper () with accents

I have a string , where I want to return it in uppercase, to standardize the information. I'm using ToUpper() . However, when this string has accents the text gets scrambled. How do I receive the text with normal accents, o...
asked on 14.01.2015 / 13:07
1
answer

Saving data to a global array

I'm studying PHP, and so far I've developed a small system that "mounts" site views and so on. But I came across an extremely annoying problem that I can not solve. I need a function to show errors that occur in the system. The problem is...
asked on 23.12.2014 / 17:58
2
answers

How to free memory from an internal malloc to a function that returns a pointer?

How to release an inner% of% to a function that returns a pointer? In a simple way to try to exemplify my doubt, consider the following malloc function: int *f(int tam) { int *ptr = malloc(tam * sizeof *ptr); return ptr; } I...
asked on 22.02.2015 / 21:08
2
answers

File Upload Multiple via aJax - PHP

I'm trying to upload files via ajax and PHP with the following codes below and it's not working. I can not identify what I'm doing wrong. Page <div id="bsUpload"> <form action="" method="post" enctype="multipart/form-data">...
asked on 21.01.2015 / 19:36
3
answers

Picking value created at runtime

I'm trying to fetch a value contained in a tag ( span ) located in another domain using PHP and JavaScript. There are cases where I can get the required value but most of the value returned is null . I believe that when I give file_get_conte...
asked on 03.02.2015 / 11:41
2
answers

What exception should I post according to each situation?

In PHP, we have several types of exceptions that can be thrown. Among them: BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException LogicExc...
asked on 09.02.2015 / 19:29
1
answer

How to commit only one piece of a file in Git?

When modifying multiple parts of a file, is it possible to commit only one piece (for example, a new function)?     
asked on 11.02.2015 / 21:30
1
answer

ORA-00980: synonym translation is no longer valid

What does this error mean? What actions can be taken to remedy it?     
asked on 10.02.2015 / 21:21